diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-07-14 20:46:42 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-07-14 20:46:42 +0200 |
commit | c80cb47e5cf49c7aa0b162fc509ab08fd1b17e8a (patch) | |
tree | f16850554ffab9559826c96e728a0297777e7659 /src/fe-gtk/fe-gtk.c | |
parent | a5cc3b15d7eb98c25ff58063079b969ad3b56e3f (diff) |
Update XChat to r1516
Diffstat (limited to 'src/fe-gtk/fe-gtk.c')
-rw-r--r-- | src/fe-gtk/fe-gtk.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c index 8c7e515a..4a20006a 100644 --- a/src/fe-gtk/fe-gtk.c +++ b/src/fe-gtk/fe-gtk.c @@ -908,13 +908,8 @@ fe_gui_info (session *sess, int info_type) if (!GTK_WIDGET_VISIBLE (GTK_WIDGET (sess->gui->window))) #endif return 2; /* hidden (iconified or systray) */ -#if GTK_CHECK_VERSION(2,4,0) + if (gtk_window_is_active (GTK_WINDOW (sess->gui->window))) -#else -#if GTK_CHECK_VERSION(2,2,0) - if (GTK_WINDOW (sess->gui->window)->is_active) -#endif -#endif return 1; /* active/focused */ return 0; /* normal (no keyboard focus or behind a window) */ |