coloreditor: Stop adding marks style to color scales
authorAlexander Mikhaylenko <alexm@gnome.org>
Wed, 11 May 2022 22:21:34 +0000 (02:21 +0400)
committerAlexander Mikhaylenko <alexm@gnome.org>
Wed, 11 May 2022 22:21:34 +0000 (02:21 +0400)
gtk/gtkcoloreditor.c
gtk/ui/gtkcoloreditor.ui

index 84f2fe490b710f956860cdd1c74d14d233d1efcd..5f7faa5e03be9bdf49bee454c7bfd6fb533b6f1b 100644 (file)
@@ -401,11 +401,6 @@ gtk_color_editor_init (GtkColorEditor *editor)
   g_type_ensure (GTK_TYPE_COLOR_SWATCH);
   gtk_widget_init_template (GTK_WIDGET (editor));
 
-  if (gtk_widget_get_direction (editor->h_slider) == GTK_TEXT_DIR_RTL)
-    gtk_widget_add_css_class (editor->h_slider, "marks-before");
-  else
-    gtk_widget_add_css_class (editor->h_slider, "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
    * but require 4 separate callbacks and would be rather ugly).
index 20581431280fa1c51226eccdb3e8280f77db1e22..010e353617526a2b5ebbc9b669650b47cc90cd48 100644 (file)
                 <property name="adjustment">a_adj</property>
                 <property name="scale-type">1</property>
                 <property name="has-origin">False</property>
-                <style>
-                  <class name="marks-before"/>
-                </style>
                 <layout>
                   <property name="column">1</property>
                   <property name="row">2</property>