range: Add a queue_resize call
authorMatthias Clasen <mclasen@redhat.com>
Mon, 6 Jun 2016 16:31:41 +0000 (12:31 -0400)
committerTimm Bäder <mail@baedert.org>
Wed, 1 Feb 2017 20:16:29 +0000 (21:16 +0100)
This is a workaround for a regression in updating scrollbars in
some applications; notably eog. We haven't fully tracked down yet
why a queue_allocation is not sufficient here, it should.

https://bugzilla.gnome.org/show_bug.cgi?id=765410

gtk/gtkrange.c

index e176bfccd5a30c108cbcc5e56082c6d7f5bc9a7e..71a2f0ad47bf0ad1ea8cc9e76c2703bfd70d4929 100644 (file)
@@ -3648,7 +3648,7 @@ gtk_range_calc_slider (GtkRange *range)
 
   gtk_css_gadget_set_visible (priv->slider_gadget, visible);
 
-  gtk_css_gadget_queue_allocate (priv->slider_gadget);
+  gtk_css_gadget_queue_resize (priv->slider_gadget);
 
   if (priv->has_origin)
     gtk_css_gadget_queue_allocate (priv->trough_gadget);