diff options
author | Berke Viktor <bviktor@hexchat.org> | 2013-05-11 13:06:25 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2013-05-11 13:06:25 +0200 |
commit | 712eb5428e1b2aa2a9edfb3eb95375f0fca29ff5 (patch) | |
tree | 817e53bef3e34afc7be943c1b90cdf6b1cc5a6cd /src/fe-gtk/fe-gtk.c | |
parent | 5c663adf3518701db794e11c3d332423f51b9f0e (diff) |
GtkComboBoxText requires GTK+ 2.24, dump code for older versions
Diffstat (limited to 'src/fe-gtk/fe-gtk.c')
-rw-r--r-- | src/fe-gtk/fe-gtk.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c index 0c3583d3..d737b744 100644 --- a/src/fe-gtk/fe-gtk.c +++ b/src/fe-gtk/fe-gtk.c @@ -897,15 +897,15 @@ fe_gui_info (session *sess, int info_type) switch (info_type) { case 0: /* window status */ -#if GTK_CHECK_VERSION(2,20,0) if (!gtk_widget_get_visible (GTK_WIDGET (sess->gui->window))) -#else - if (!GTK_WIDGET_VISIBLE (GTK_WIDGET (sess->gui->window))) -#endif + { return 2; /* hidden (iconified or systray) */ + } if (gtk_window_is_active (GTK_WINDOW (sess->gui->window))) + { return 1; /* active/focused */ + } return 0; /* normal (no keyboard focus or behind a window) */ } @@ -920,12 +920,8 @@ fe_gui_info_ptr (session *sess, int info_type) { case 0: /* native window pointer (for plugins) */ #ifdef WIN32 -#if GTK_CHECK_VERSION(2,24,8) return gdk_win32_window_get_impl_hwnd (sess->gui->window->window); #else - return GDK_WINDOW_HWND (sess->gui->window->window); -#endif -#else return sess->gui->window; #endif break; |