[gtk+] scale: render scale mark lines with separator style class
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] scale: render scale mark lines with separator style class
- Date: Fri, 7 Dec 2012 16:42:39 +0000 (UTC)
commit 26ea8e710abc86ff623ca90a8f882c53a1b3f440
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Dec 7 11:41:03 2012 -0500
scale: render scale mark lines with separator style class
So that the theme can distinguish them from the mark text.
gtk/gtkscale.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index be388c9..1af2f53 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -1196,7 +1196,9 @@ gtk_scale_draw (GtkWidget *widget,
gtk_style_context_save (context);
gtk_style_context_add_class (context, GTK_STYLE_CLASS_MARK);
+ gtk_style_context_add_class (context, GTK_STYLE_CLASS_SEPARATOR);
gtk_render_line (context, cr, x1, y1, x1, y2);
+ gtk_style_context_remove_class (context, GTK_STYLE_CLASS_SEPARATOR);
if (mark->markup)
{
@@ -1247,7 +1249,9 @@ gtk_scale_draw (GtkWidget *widget,
gtk_style_context_save (context);
gtk_style_context_add_class (context, GTK_STYLE_CLASS_MARK);
+ gtk_style_context_add_class (context, GTK_STYLE_CLASS_SEPARATOR);
gtk_render_line (context, cr, x1, y1, x2, y1);
+ gtk_style_context_remove_class (context, GTK_STYLE_CLASS_SEPARATOR);
if (mark->markup)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]