[gnumeric] GUI: fix non-modal dialog.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] GUI: fix non-modal dialog.
- Date: Tue, 19 Oct 2010 20:01:33 +0000 (UTC)
commit 39446e44544038c41cdba59355458a92552c145e
Author: Morten Welinder <terra gnome org>
Date: Tue Oct 19 16:01:16 2010 -0400
GUI: fix non-modal dialog.
src/dialogs/dialog-preferences.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/dialogs/dialog-preferences.c b/src/dialogs/dialog-preferences.c
index 1330802..3ebb120 100644
--- a/src/dialogs/dialog-preferences.c
+++ b/src/dialogs/dialog-preferences.c
@@ -1257,8 +1257,6 @@ cb_preferences_destroy (PrefState *state)
state->app_wb_removed_sig = 0;
}
g_object_set_data (gnm_app_get_app (), PREF_DIALOG_KEY, NULL);
-
- g_free (state);
}
static void
@@ -1332,9 +1330,13 @@ dialog_preferences (WBCGtk *wbcg, gint page)
gnumeric_init_help_button (
gnm_xml_get_widget (state->gui, "help_button"),
GNUMERIC_HELP_LINK_PREFERENCES);
+ g_signal_connect_swapped (G_OBJECT (state->dialog),
+ "destroy",
+ G_CALLBACK(cb_preferences_destroy),
+ state);
g_object_set_data_full (G_OBJECT (state->dialog),
"state", state,
- (GDestroyNotify)cb_preferences_destroy);
+ (GDestroyNotify)g_free);
g_object_set_data (gnm_app_get_app (), PREF_DIALOG_KEY, state->dialog);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]