Commit 0922f2de authored by Tavmjong Bah's avatar Tavmjong Bah Committed by Tavmjong Bah

Attempt to fix ruler background for GTK 3.20.

(bzr r14879)
parents da4a2d17 c3ef0970
......@@ -9,6 +9,8 @@
* Left -> Right
*
* We need a standardized naming scheme.
*
* As of Gtk 3.20, you cannot use widget names.
*/
/* Lightest to darkest based on linear rgb */
......@@ -27,10 +29,16 @@ GtkWidget {
/* font-size: 12pt; */
}
/* Gtk <= 3.18 */
SPRuler {
background-color: @bg_color05;
}
/* Gtk > 3.18 */
ruler-widget {
background-color: @bg_color05;
}
SPCanvas {
background-color: @bg_color0;
}
......
......@@ -168,6 +168,10 @@ sp_ruler_class_init (SPRulerClass *klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
#if GTK_CHECK_VERSION(3,20,0)
gtk_widget_class_set_css_name (widget_class, "ruler-widget");
#endif
object_class->dispose = sp_ruler_dispose;
object_class->set_property = sp_ruler_set_property;
object_class->get_property = sp_ruler_get_property;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment