# HG changeset patch # User Stu Tomlinson # Date 1205764743 0 # Node ID d536700e73e13aa2c7e4ece92b86bfdadbaa3eea # Parent d128201714e9739b11f75be9c4b9c16c9074f6b8 gtk_window_has_toplevel_focus() is new in Gtk 2.4, making pidgin_auto_parent_window() largely nonfunctional there diff -r d128201714e9 -r d536700e73e1 pidgin/gtkutils.c --- a/pidgin/gtkutils.c Mon Mar 17 14:35:33 2008 +0000 +++ b/pidgin/gtkutils.c Mon Mar 17 14:39:03 2008 +0000 @@ -3413,6 +3413,7 @@ return FALSE; #endif #else +#if GTK_CHECK_VERSION(2,4,0) /* This finds the currently active window and makes that the parent window. */ GList *windows = NULL; GtkWidget *parent = NULL; @@ -3455,6 +3456,7 @@ gtk_window_set_transient_for(GTK_WINDOW(widget), GTK_WINDOW(parent)); return TRUE; } +#endif return FALSE; #endif }