diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-07-16 21:08:27 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-07-16 21:08:27 -0400 |
commit | bb6057bfb709786bcc7c8dea71ee37f6fa53ec5e (patch) | |
tree | de0a0de118612ddb853ce83e8f35033b3dc25ba6 /gtk/gtkstackswitcher.c | |
parent | e084e5c67e9241b479ef5fc7fff857445a7d9956 (diff) | |
download | gtk+-bb6057bfb709786bcc7c8dea71ee37f6fa53ec5e.tar.gz |
GtkStackSwitcher: Simplify setting of .needs-attention
Always add the .needs-attention style class, even if the button
is active. Themes can already avoid showing anything in this case.
Diffstat (limited to 'gtk/gtkstackswitcher.c')
-rw-r--r-- | gtk/gtkstackswitcher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkstackswitcher.c b/gtk/gtkstackswitcher.c index 418f2fe8ef..35d82b8be2 100644 --- a/gtk/gtkstackswitcher.c +++ b/gtk/gtkstackswitcher.c @@ -156,7 +156,7 @@ update_needs_attention (GtkWidget *widget, GtkWidget *button, gpointer data) NULL); context = gtk_widget_get_style_context (button); - if (needs_attention && !gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button))) + if (needs_attention) gtk_style_context_add_class (context, GTK_STYLE_CLASS_NEEDS_ATTENTION); else gtk_style_context_remove_class (context, GTK_STYLE_CLASS_NEEDS_ATTENTION); |