diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2013-12-03 13:55:59 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2013-12-03 13:55:59 +0000 |
| commit | 049944c91026016596ef14de947837300da1f8da (patch) | |
| tree | 509e54b57a0791268b710ffd13349fdeac7a425e /src/widgets/ruler.cpp | |
| parent | Restore original file format with added metadata. (diff) | |
| download | inkscape-049944c91026016596ef14de947837300da1f8da.tar.gz inkscape-049944c91026016596ef14de947837300da1f8da.zip | |
Fix for Bug #1094511 (GTK3: rulers render with solid black bg).
Fixed bugs:
- https://launchpad.net/bugs/1094511
(bzr r12835)
Diffstat (limited to 'src/widgets/ruler.cpp')
| -rw-r--r-- | src/widgets/ruler.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/widgets/ruler.cpp b/src/widgets/ruler.cpp index 2604ebf22..5d5151343 100644 --- a/src/widgets/ruler.cpp +++ b/src/widgets/ruler.cpp @@ -269,11 +269,17 @@ sp_ruler_init (SPRuler *ruler) priv->font_scale = DEFAULT_RULER_FONT_SCALE; #if GTK_CHECK_VERSION(3,0,0) + #if GTK_CHECK_VERSION(3,8,0) + const gchar *str = + "SPRuler {\n" + " background-color: @theme_bg_color;\n" + "}\n"; + #else const gchar *str = "SPRuler {\n" " background-color: @bg_color;\n" "}\n"; - + #endif GtkCssProvider *css = gtk_css_provider_new (); gtk_css_provider_load_from_data (css, str, -1, NULL); gtk_style_context_add_provider (gtk_widget_get_style_context (GTK_WIDGET (ruler)), |
