[gtk+] range: Changing the min slider size requires a resize
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] range: Changing the min slider size requires a resize
- Date: Sat, 29 Nov 2014 03:09:36 +0000 (UTC)
commit 1c9fdc1f1ffbd4b2c50e2f6f9152a6b7940d00da
Author: Benjamin Otte <otte redhat com>
Date: Sat Nov 29 01:15:36 2014 +0100
range: Changing the min slider size requires a resize
gtk/gtkrange.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 4988a60..8f3870e 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -1030,12 +1030,7 @@ gtk_range_set_min_slider_size (GtkRange *range,
{
priv->min_slider_size = min_size;
- if (gtk_widget_is_drawable (GTK_WIDGET (range)))
- {
- priv->need_recalc = TRUE;
- gtk_range_calc_layout (range);
- gtk_widget_queue_draw (GTK_WIDGET (range));
- }
+ gtk_widget_queue_resize (GTK_WIDGET (range));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]