forked from AuroraMiddleware/gtk
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:
parent
49476053e3
commit
671c5ac434
@ -586,7 +586,7 @@ 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_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]);
|
||||
|
Loading…
Reference in New Issue
Block a user