changeset 15257:b380e326d602

[gaim-migrate @ 18047] Make sure the file-select dialogs (for execute-a-command or play-a-sound) are closed when the pounce-dialog is closed. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 22 Dec 2006 08:41:29 +0000
parents 7a94d65a8f6a
children cfdd47296dbc
files gtk/gtkpounce.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/gtkpounce.c	Fri Dec 22 08:33:12 2006 +0000
+++ b/gtk/gtkpounce.c	Fri Dec 22 08:41:29 2006 +0000
@@ -154,6 +154,8 @@
 
 	gaim_request_file(entry, _("Select a file"), name, FALSE,
 					  G_CALLBACK(pounce_update_entry_fields), NULL, entry);
+	g_signal_connect_swapped(G_OBJECT(entry), "destroy",
+			G_CALLBACK(gaim_request_close_with_handle), entry);
 }
 
 static void