Commit 0dd1102c authored by Matthias Clasen's avatar Matthias Clasen

GtkSeparator: Explicitly notify orientation

parent ed6f9c1e
......@@ -70,9 +70,13 @@ gtk_separator_set_property (GObject *object,
switch (prop_id)
{
case PROP_ORIENTATION:
private->orientation = g_value_get_enum (value);
_gtk_orientable_set_style_classes (GTK_ORIENTABLE (object));
gtk_widget_queue_resize (GTK_WIDGET (object));
if (private->orientation != g_value_get_enum (value))
{
private->orientation = g_value_get_enum (value);
_gtk_orientable_set_style_classes (GTK_ORIENTABLE (object));
gtk_widget_queue_resize (GTK_WIDGET (object));
g_object_notify_by_pspec (object, pspec);
}
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment