diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2016-05-08 14:30:43 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2016-05-08 14:30:43 +0000 |
| commit | c3ef09704c74df622967eb75d22288264553a69e (patch) | |
| tree | b847db35bcf8c7dad5027d241e92006a09cc8f57 /src/widgets/ruler.cpp | |
| parent | Start of GTK3 external style sheet support. (diff) | |
| download | inkscape-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.cpp | 4 |
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; |
