Update XChat to r1516

This commit is contained in:
Berke Viktor
2012-07-14 20:46:42 +02:00
parent a5cc3b15d7
commit c80cb47e5c
8 changed files with 5 additions and 67 deletions

View File

@@ -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) */