[gtk: 1/2] progressbar: Queue allocate when setting "inverted"




commit 4b19dd46ddfe4276771d757aec8b46a81f72c60f
Author: Marco Melorio <marco melorio protonmail com>
Date:   Sat Dec 18 18:45:28 2021 +0100

    progressbar: Queue allocate when setting "inverted"

 gtk/gtkprogressbar.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c
index d49c7f4868..ba5897821c 100644
--- a/gtk/gtkprogressbar.c
+++ b/gtk/gtkprogressbar.c
@@ -1025,6 +1025,7 @@ gtk_progress_bar_set_inverted (GtkProgressBar *pbar,
 
   pbar->inverted = inverted;
 
+  gtk_widget_queue_allocate (pbar->trough_widget);
   update_node_classes (pbar);
 
   g_object_notify_by_pspec (G_OBJECT (pbar), progress_props[PROP_INVERTED]);


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