comparison pidgin/gtkutils.c @ 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 665e04562de0
children e8e9a53b7694
comparison
equal deleted inserted replaced
21754:61725f2eb4a6 21755:5b0d9e08992d
2449 "clicked", 2449 "clicked",
2450 G_CALLBACK(icon_filesel_delete_cb), dialog); 2450 G_CALLBACK(icon_filesel_delete_cb), dialog);
2451 g_signal_connect(G_OBJECT(dialog->icon_filesel), "destroy", 2451 g_signal_connect(G_OBJECT(dialog->icon_filesel), "destroy",
2452 G_CALLBACK(icon_filesel_delete_cb), dialog); 2452 G_CALLBACK(icon_filesel_delete_cb), dialog);
2453 #endif /* FILECHOOSER */ 2453 #endif /* FILECHOOSER */
2454 return dialog->icon_filesel; 2454
2455 #ifdef _WIN32
2456 g_signal_connect(G_OBJECT(dialog->icon_filesel), "show",
2457 G_CALLBACK(winpidgin_ensure_onscreen), dialog->icon_filesel);
2458 #endif
2459
2460 return dialog->icon_filesel;
2455 } 2461 }
2456 2462
2457 2463
2458 #if GTK_CHECK_VERSION(2,2,0) 2464 #if GTK_CHECK_VERSION(2,2,0)
2459 static gboolean 2465 static gboolean