GtkStackSwitcher: unset tooltip

It was pointed out to me that we leave the tooltip behind
when setting and unsetting an icon.
This commit is contained in:
Matthias Clasen 2013-04-24 20:10:05 -04:00
parent af49dd33cf
commit a8a41b52ad

View File

@ -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");
}