[gtk+/gtk-2-22] GtkRange: Redraw if GtkRange is a GtkScale and value is drawn.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-22] GtkRange: Redraw if GtkRange is a GtkScale and value is drawn.
- Date: Tue, 18 May 2010 06:55:08 +0000 (UTC)
commit 96986af5b4e7a578c0a735d04c940b849a7c5060
Author: Jan Arne Petersen <jap gnome org>
Date: Tue May 18 08:46:42 2010 +0200
GtkRange: Redraw if GtkRange is a GtkScale and value is drawn.
* gtk/gtkrange.c: (gtk_range_adjustment_value_change):
Queue the draw also if the range is a scale and the value is drawn,
fixing bug #533946 (Markus Brinkmann), when two HScales use one
adjustment.
gtk/gtkrange.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 552eac7..a4fcee4 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -35,6 +35,7 @@
#include "gtkmarshalers.h"
#include "gtkorientable.h"
#include "gtkrange.h"
+#include "gtkscale.h"
#include "gtkscrollbar.h"
#include "gtkprivate.h"
#include "gtkintl.h"
@@ -2618,7 +2619,8 @@ gtk_range_adjustment_value_changed (GtkAdjustment *adjustment,
gtk_range_calc_layout (range, range->adjustment->value);
/* now check whether the layout changed */
- if (layout_changed (range->layout, &layout))
+ if (layout_changed (range->layout, &layout) ||
+ (GTK_IS_SCALE (range) && GTK_SCALE (range)->draw_value))
{
gtk_widget_queue_draw (GTK_WIDGET (range));
/* setup a timer to ensure the range isn't lagging too much behind the scroll position */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]