Make sure that the buddy icon file chooser dialog appears onscreen on windows. Fixes #4065.

Tue, 04 Dec 2007 05:03:49 +0000

author
Daniel Atallah <datallah@pidgin.im>
date
Tue, 04 Dec 2007 05:03:49 +0000
changeset 21875
d21cfed2af93
parent 21872
fed885de0ffc
child 21876
35db2a7af5f4

Make sure that the buddy icon file chooser dialog appears onscreen on windows. Fixes #4065.

pidgin/gtkutils.c file | annotate | diff | comparison | revisions
--- a/pidgin/gtkutils.c	Tue Dec 04 02:50:44 2007 +0000
+++ b/pidgin/gtkutils.c	Tue Dec 04 05:03:49 2007 +0000
@@ -2451,7 +2451,13 @@
 	g_signal_connect(G_OBJECT(dialog->icon_filesel), "destroy",
 					 G_CALLBACK(icon_filesel_delete_cb), dialog);
 #endif /* FILECHOOSER */
-	return 	dialog->icon_filesel;
+
+#ifdef _WIN32
+	g_signal_connect(G_OBJECT(dialog->icon_filesel), "show",
+		G_CALLBACK(winpidgin_ensure_onscreen), dialog->icon_filesel);
+#endif
+
+	return dialog->icon_filesel;
 }
 
 

mercurial