[gtk+/wip/baedert/drawing: 195/262] progressbar: Apply style classes when setting direction



commit 896f748d9353b4bf4fda63c6b16448830f22e32e
Author: Timm Bäder <mail baedert org>
Date:   Sun May 14 08:05:55 2017 +0200

    progressbar: Apply style classes when setting direction
    
    We might have to change .top to .left etc. when changing the direction
    of the progressbar.

 gtk/gtkprogressbar.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c
index b1449c0..3998f29 100644
--- a/gtk/gtkprogressbar.c
+++ b/gtk/gtkprogressbar.c
@@ -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");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]