changeset 21755:5b0d9e08992d

Make sure that the buddy icon file chooser dialog appears onscreen on windows. Fixes #4065.
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 04 Dec 2007 05:03:49 +0000
parents 61725f2eb4a6
children abd0cd2b712a
files pidgin/gtkutils.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }