diff options
author | Timm Bäder <mail@baedert.org> | 2018-01-30 10:13:51 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2018-01-30 21:51:50 +0100 |
commit | c8a936cdccd678e4be0f813a955fcfc5c89fd79d (patch) | |
tree | d9034950f3d3e06b01cc0b79d3fb3d767890cf59 /gtk/gtkrange.c | |
parent | 6fd6ff2ea10f00ff27a3df638a135f9d7fb02152 (diff) | |
download | gtk+-c8a936cdccd678e4be0f813a955fcfc5c89fd79d.tar.gz |
range: Always queue an allocate if the adjustment changed
The slider gets its new size in size-allocate, so we have to do this
even if the range has no origin.
Diffstat (limited to 'gtk/gtkrange.c')
-rw-r--r-- | gtk/gtkrange.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c index 04ea0b8fe9..d6464e30f0 100644 --- a/gtk/gtkrange.c +++ b/gtk/gtkrange.c @@ -2805,9 +2805,7 @@ gtk_range_calc_slider (GtkRange *range) gtk_widget_set_visible (priv->slider_widget, visible); - if (priv->has_origin) - gtk_widget_queue_allocate (priv->trough_widget); - + gtk_widget_queue_allocate (priv->trough_widget); gtk_range_update_mouse_location (range); } |