[gtk+] GtkStackSwitcher: unset tooltip



commit a8a41b52ad30f5d61c9160db5ed1b2960983609f
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Apr 24 20:10:05 2013 -0400

    GtkStackSwitcher: unset tooltip
    
    It was pointed out to me that we leave the tooltip behind
    when setting and unsetting an icon.

 gtk/gtkstackswitcher.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstackswitcher.c b/gtk/gtkstackswitcher.c
index cc603f1..833dfde 100644
--- a/gtk/gtkstackswitcher.c
+++ b/gtk/gtkstackswitcher.c
@@ -122,6 +122,8 @@ rebuild_child (GtkWidget   *self,
     {
       button_child = gtk_label_new (title);
 
+      gtk_widget_set_tooltip_text (GTK_WIDGET (self), NULL);
+
       gtk_style_context_remove_class (context, "image-button");
       gtk_style_context_add_class (context, "text-button");
     }


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