From 1be928597fdd42d641cc0a04d772e82254e54483 Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Thu, 5 Apr 2007 01:48:09 +0000 Subject: [PATCH] 2007-04-04 Jim Evins * src/ui-property-bar.c: (gl_ui_property_bar_finalize), (gl_ui_property_bar_construct): Save copy of GladeXML tree so that we don't lose tooltips. git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@648 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- glabels2/ChangeLog | 6 ++++++ glabels2/src/ui-property-bar.c | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/glabels2/ChangeLog b/glabels2/ChangeLog index 6d404f08..abb20f87 100644 --- a/glabels2/ChangeLog +++ b/glabels2/ChangeLog @@ -1,3 +1,9 @@ +2007-04-04 Jim Evins + + * src/ui-property-bar.c: (gl_ui_property_bar_finalize), + (gl_ui_property_bar_construct): + Save copy of GladeXML tree so that we don't lose tooltips. + 2007-04-02 Jim Evins * src/merge-properties-dialog.c: diff --git a/glabels2/src/ui-property-bar.c b/glabels2/src/ui-property-bar.c index 56bf44ae..2dfbf3f8 100644 --- a/glabels2/src/ui-property-bar.c +++ b/glabels2/src/ui-property-bar.c @@ -55,6 +55,8 @@ struct _glUIPropertyBarPrivate { glView *view; + GladeXML *gui; + GtkWidget *tool_bar; /* Font selection */ @@ -192,6 +194,10 @@ gl_ui_property_bar_finalize (GObject *object) if (property_bar->priv->view) { g_object_unref (G_OBJECT(property_bar->priv->view)); } + if (property_bar->priv->gui) + { + g_object_unref (G_OBJECT(property_bar->priv->gui)); + } g_free (property_bar->priv); G_OBJECT_CLASS (gl_ui_property_bar_parent_class)->finalize (object); @@ -267,7 +273,8 @@ gl_ui_property_bar_construct (glUIPropertyBar *property_bar) property_bar->priv->line_width_spin = glade_xml_get_widget (gui, "line_width_spin"); - g_object_unref (gui); + /* Save reference to gui tree so we don't lose tooltips */ + property_bar->priv->gui = gui; set_doc_items_sensitive (property_bar, FALSE); -- 2.39.5