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



commit a3a26e6ca7bb65f0e2bc7f8daf50cf9f7f7a0657
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]