pidgin: 058ee765: gtk_window_has_toplevel_focus() is new i...

nosnilmot at pidgin.im nosnilmot at pidgin.im
Mon Mar 17 10:50:39 EDT 2008


-----------------------------------------------------------------
Revision: 058ee765cda4210b0bbd2e709b93a6e8bd956b21
Ancestor: 910544b6e9a6c1733f750587f39ca84b1ffe58e1
Author: nosnilmot at pidgin.im
Date: 2008-03-17T14:39:03
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/058ee765cda4210b0bbd2e709b93a6e8bd956b21

Modified files:
        pidgin/gtkutils.c

ChangeLog: 

gtk_window_has_toplevel_focus() is new in Gtk 2.4, making pidgin_auto_parent_window()
largely nonfunctional there

-------------- next part --------------
============================================================
--- pidgin/gtkutils.c	f97856e347a3079e0e816589d6bd3e1827caeb82
+++ pidgin/gtkutils.c	fdb7a916c4abfa38287eee66b1e4703f3f9fa4ac
@@ -3413,6 +3413,7 @@ gboolean pidgin_auto_parent_window(GtkWi
 	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 @@ gboolean pidgin_auto_parent_window(GtkWi
 		gtk_window_set_transient_for(GTK_WINDOW(widget), GTK_WINDOW(parent));
 		return TRUE;
 	}
+#endif
 	return FALSE;
 #endif
 }


More information about the Commits mailing list