changeset 22503:d536700e73e1

gtk_window_has_toplevel_focus() is new in Gtk 2.4, making pidgin_auto_parent_window() largely nonfunctional there
author Stu Tomlinson <stu@nosnilmot.com>
date Mon, 17 Mar 2008 14:39:03 +0000
parents d128201714e9
children a65a76072f31
files pidgin/gtkutils.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
 }