summaryrefslogtreecommitdiffstats
path: root/src/widgets/ruler.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2016-05-08 14:30:43 +0000
committertavmjong-free <tavmjong@free.fr>2016-05-08 14:30:43 +0000
commitc3ef09704c74df622967eb75d22288264553a69e (patch)
treeb847db35bcf8c7dad5027d241e92006a09cc8f57 /src/widgets/ruler.cpp
parentStart of GTK3 external style sheet support. (diff)
downloadinkscape-c3ef09704c74df622967eb75d22288264553a69e.tar.gz
inkscape-c3ef09704c74df622967eb75d22288264553a69e.zip
Attemt to fix ruler background for GTK 3.20.
(bzr r14876.1.1)
Diffstat (limited to 'src/widgets/ruler.cpp')
-rw-r--r--src/widgets/ruler.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/ruler.cpp b/src/widgets/ruler.cpp
index bcab535f9..deffd384a 100644
--- a/src/widgets/ruler.cpp
+++ b/src/widgets/ruler.cpp
@@ -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;