[gtk+/gtk-3-20] color scale: Sync style classes with GtkScale



commit 61701493936ff96a52f09992847221327f26718f
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu May 19 11:05:28 2016 -0400

    color scale: Sync style classes with GtkScale
    
    We should use the same style classes here, to avoid theme
    confusion.

 gtk/gtkcoloreditor.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcoloreditor.c b/gtk/gtkcoloreditor.c
index 6e37fce..f45949c 100644
--- a/gtk/gtkcoloreditor.c
+++ b/gtk/gtkcoloreditor.c
@@ -373,10 +373,10 @@ gtk_color_editor_init (GtkColorEditor *editor)
 
   if (gtk_widget_get_direction (editor->priv->h_slider) == GTK_TEXT_DIR_RTL)
     gtk_style_context_add_class (gtk_widget_get_style_context (editor->priv->h_slider),
-                                 GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE);
+                                 "marks-before");
   else
     gtk_style_context_add_class (gtk_widget_get_style_context (editor->priv->h_slider),
-                                 GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW);
+                                 "marks-after");
 
   /* Create the scaled popup adjustments manually here because connecting user data is not
    * supported by template GtkBuilder xml (it would be possible to set this up in the xml


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]