[gtk+] range: don't set junction sides on scrollbar steppers
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] range: don't set junction sides on scrollbar steppers
- Date: Thu, 3 Mar 2011 22:48:59 +0000 (UTC)
commit 11f07f9bdcc34861368faa8b54775157bbd0d9e6
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Feb 26 19:28:33 2011 -0500
range: don't set junction sides on scrollbar steppers
gtk/gtkrange.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index ad6af8b..624875e 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -1842,7 +1842,6 @@ _gtk_range_update_context_for_stepper (GtkRange *range,
}
gtk_style_context_set_junction_sides (context, sides);
- gtk_style_context_add_class (context, GTK_STYLE_CLASS_BUTTON);
}
static void
@@ -1912,7 +1911,14 @@ draw_stepper (GtkRange *range,
context = gtk_widget_get_style_context (widget);
gtk_style_context_save (context);
- _gtk_range_update_context_for_stepper (range, context, stepper);
+
+ /* don't set juction sides on scrollbar steppers */
+ if (gtk_style_context_has_class (context, GTK_STYLE_CLASS_SCROLLBAR))
+ gtk_style_context_set_junction_sides (context, GTK_JUNCTION_NONE);
+ else
+ _gtk_range_update_context_for_stepper (range, context, stepper);
+
+ gtk_style_context_add_class (context, GTK_STYLE_CLASS_BUTTON);
gtk_style_context_set_state (context, state);
gtk_render_background (context, cr,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]