]> git.sur5r.net Git - glabels/commitdiff
2007-04-04 Jim Evins <evins@snaught.com>
authorJim Evins <evins@snaught.com>
Thu, 5 Apr 2007 01:48:09 +0000 (01:48 +0000)
committerJim Evins <evins@snaught.com>
Thu, 5 Apr 2007 01:48:09 +0000 (01:48 +0000)
* 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
glabels2/src/ui-property-bar.c

index 6d404f0886bcc3e64f923b4013ec61cb149a35b8..abb20f874f1fab1c6e94f60fe6934dc1bc2b235c 100644 (file)
@@ -1,3 +1,9 @@
+2007-04-04  Jim Evins  <evins@snaught.com>
+
+       * 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  <evins@snaught.com>
 
        * src/merge-properties-dialog.c:
index 56bf44ae3b632e9bdb153c89cf3b2ef27b9f62d2..2dfbf3f822bbadb7216f6f49ffac10737c5e09ac 100644 (file)
@@ -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);