frame: Fix copy&paste bug in shadow-type handling

If the given shadow_type is none NONE, we have to remove the .flat style
class of course, not add it.
This commit is contained in:
Timm Bäder 2017-05-05 11:51:06 +02:00 committed by Matthias Clasen
parent 49476053e3
commit 671c5ac434

View File

@ -586,8 +586,8 @@ gtk_frame_set_shadow_type (GtkFrame *frame,
gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (frame)),
GTK_STYLE_CLASS_FLAT);
else
gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (frame)),
GTK_STYLE_CLASS_FLAT);
gtk_style_context_remove_class (gtk_widget_get_style_context (GTK_WIDGET (frame)),
GTK_STYLE_CLASS_FLAT);
g_object_notify_by_pspec (G_OBJECT (frame), frame_props[PROP_SHADOW_TYPE]);
}