diff options
author | Timm Bäder <mail@baedert.org> | 2019-08-09 19:36:01 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2019-08-10 19:51:45 +0200 |
commit | 0a96c3f06213bef4f46f4357a4dd786d97518d83 (patch) | |
tree | 18fab2694e73a10beb82ad6f41887e669dd9955d /gtk/gtkscale.c | |
parent | 42e6630c3e89367d4334f5a7a4d1e0c866bcfab7 (diff) | |
download | gtk+-0a96c3f06213bef4f46f4357a4dd786d97518d83.tar.gz |
scale: Properly update when inverted
Just queue_resize()ing the range itself doesn't work as it will just
re-allocate all the child widgets (i.e. just the trough) to its old
position and size.
Diffstat (limited to 'gtk/gtkscale.c')
-rw-r--r-- | gtk/gtkscale.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index 538b86ac59..c7922e8591 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -304,6 +304,12 @@ gtk_scale_notify (GObject *object, _gtk_range_set_stop_values (GTK_RANGE (scale), values, n); + if (priv->top_marks_widget) + gtk_widget_queue_resize (priv->top_marks_widget); + + if (priv->bottom_marks_widget) + gtk_widget_queue_resize (priv->bottom_marks_widget); + g_free (values); } else if (strcmp (pspec->name, "adjustment")) |