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



commit 48deddc556667c2b29753294de9c7ac3e721dcdd
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]