progressbar: Apply style classes when setting direction

We might have to change .top to .left etc. when changing the direction
of the progressbar.
This commit is contained in:
Timm Bäder
2017-05-14 08:05:55 +02:00
committed by Matthias Clasen
parent fe9833a2f8
commit 2d29183aa8

View File

@@ -1132,6 +1132,7 @@ gtk_progress_bar_set_orientation (GtkProgressBar *pbar,
priv->orientation = orientation;
_gtk_orientable_set_style_classes (GTK_ORIENTABLE (pbar));
update_node_classes (pbar);
gtk_widget_queue_resize (GTK_WIDGET (pbar));
g_object_notify (G_OBJECT (pbar), "orientation");