[Frugalware-git] gfpm: Don't destroy the prefs window on delete-event

Priyank priyank at frugalware.org
Thu Mar 19 07:13:35 CET 2009


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=gfpm.git;a=commitdiff;h=8f77da00cc354e3d4858af387598dfaf52ed0d0e

commit 8f77da00cc354e3d4858af387598dfaf52ed0d0e
Author: Priyank <priyank at frugalware.org>
Date:   Thu Mar 19 11:36:37 2009 +0530

Don't destroy the prefs window on delete-event
* Fixes #3686

diff --git a/src/gfpm-prefs.c b/src/gfpm-prefs.c
index 1c27407..b16be71 100644
--- a/src/gfpm-prefs.c
+++ b/src/gfpm-prefs.c
@@ -235,7 +235,9 @@ gfpm_prefs_init (void)
G_CALLBACK(cb_gfpm_prefs_edit_cachedir_btn_clicked), NULL);
g_signal_connect (G_OBJECT(gfpm_prefs_pasvftp_check), "toggled",
G_CALLBACK(cb_gfpm_prefs_pasvftp_check_toggled), NULL);
-
+	g_signal_connect (G_OBJECT(gfpm_get_widget("gfpm_prefs")), "delete-event",
+			G_CALLBACK(gtk_widget_hide), (gpointer)gfpm_get_widget("gfpm_prefs"));
+
gfpm_prefs_populate_holdpkg_tvw ();
gfpm_prefs_populate_ignorepkg_tvw ();


More information about the Frugalware-git mailing list