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).
<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>