[gtk+] range: Always queue an allocate if the adjustment changed
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] range: Always queue an allocate if the adjustment changed
- Date: Tue, 30 Jan 2018 20:55:21 +0000 (UTC)
commit c8a936cdccd678e4be0f813a955fcfc5c89fd79d
Author: Timm Bäder <mail baedert org>
Date: Tue Jan 30 10:13:51 2018 +0100
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.
gtk/gtkrange.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 04ea0b8..d6464e3 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]