[gtk+] color scale: Sync style classes with GtkScale
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] color scale: Sync style classes with GtkScale
- Date: Thu, 19 May 2016 16:15:45 +0000 (UTC)
commit 6293a50501c20d25663ebfe170b0acfec3c96d2b
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]