[gnumeric] Do not prematurely destroy the GtkBuilder for the Header/Footer setup dialog.
- From: Jean Bréfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Do not prematurely destroy the GtkBuilder for the Header/Footer setup dialog.
- Date: Sun, 24 Oct 2010 09:32:52 +0000 (UTC)
commit e22b6ef22bee6b2baa52971bf491911a591c7fe4
Author: Jean Brefort <jean brefort normalesup org>
Date: Sun Oct 24 11:32:58 2010 +0200
Do not prematurely destroy the GtkBuilder for the Header/Footer setup dialog.
src/dialogs/ChangeLog | 5 +++++
src/dialogs/dialog-printer-setup.c | 8 +++++++-
2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 1ef391d..326d076 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,3 +1,8 @@
+2010-10-24 Jean Brefort <jean brefort normalesup org>
+
+ * dialog-printer-setup.c: do not destroy the GtkBuilder after intializing
+ the Header/Footer setup dialog. [See #632999]
+
2010-10-19 Morten Welinder <terra gnome org>
* dialog-preferences.c (dialog_preferences): Use
diff --git a/src/dialogs/dialog-printer-setup.c b/src/dialogs/dialog-printer-setup.c
index 5a208b4..edc0703 100644
--- a/src/dialogs/dialog-printer-setup.c
+++ b/src/dialogs/dialog-printer-setup.c
@@ -1664,6 +1664,11 @@ hf_attach_insert_cell_menu (GtkMenuToolButton *button, HFCustomizeState* hf_stat
gtk_widget_show_all (menu);
}
+static void
+cb_hf_destroyed (GObject *obj) {
+ g_object_set_data (obj, "gui", NULL);
+}
+
/*
* Open up a DIALOG to allow the user to customize the header
* or the footer.
@@ -1824,9 +1829,10 @@ do_hf_customize (gboolean header, PrinterSetupState *state)
/* The following would cause the dialog to be below the page setup dialog: */
/* go_gtk_window_set_transient (GTK_WINDOW (dialog), GTK_WINDOW (state->dialog)); */
+ g_object_set_data_full (G_OBJECT (dialog), "gui", gui, g_object_unref);
+ g_signal_connect (G_OBJECT (dialog), "destroy", G_CALLBACK (cb_hf_destroyed), NULL);
gtk_widget_show_all (dialog);
- g_object_unref (gui);
}
/************* Header Footer Customization *********** End *************/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]