[gnumeric] GUI: Fix tab color problem.



commit 412dffbadbe12c9a2850a026dd5e308364435c79
Author: Morten Welinder <terra gnome org>
Date:   Wed Apr 3 16:27:51 2013 -0400

    GUI: Fix tab color problem.

 src/widgets/ChangeLog      |    2 ++
 src/widgets/gnm-notebook.c |    3 +++
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/widgets/ChangeLog b/src/widgets/ChangeLog
index a47ce10..c17600f 100644
--- a/src/widgets/ChangeLog
+++ b/src/widgets/ChangeLog
@@ -2,6 +2,8 @@
 
        * gnm-notebook.c (GnmNoteBookButton): New widget for use as
        notebook tab.
+       (gnm_notebook_button_set_property): Clear the layouts for
+       background changes.
 
        * Makefile.am: Remove editable-widget.
 
diff --git a/src/widgets/gnm-notebook.c b/src/widgets/gnm-notebook.c
index 7da07b8..b132dd1 100644
--- a/src/widgets/gnm-notebook.c
+++ b/src/widgets/gnm-notebook.c
@@ -78,6 +78,8 @@ gnm_notebook_button_set_property (GObject      *obj,
                gdk_rgba_free (nbb->bg);
                nbb->bg = g_value_dup_boxed (value);
                gtk_widget_queue_draw (GTK_WIDGET (obj));
+               g_clear_object (&nbb->layout);
+               g_clear_object (&nbb->layout_active);
                break;
        case NBB_PROP_TEXT_COLOR:
                gdk_rgba_free (nbb->fg);
@@ -155,6 +157,7 @@ gnm_notebook_button_screen_changed (GtkWidget *widget, G_GNUC_UNUSED GdkScreen *
 {
        GnmNotebookButton *nbb = GNM_NOTEBOOK_BUTTON (widget);
        g_clear_object (&nbb->layout);
+       g_clear_object (&nbb->layout_active);
 }
 
 static gboolean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]