[gtksourceview] map: track CSS changes in gtk+ master
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] map: track CSS changes in gtk+ master
- Date: Sat, 31 Oct 2015 05:36:29 +0000 (UTC)
commit 830011c2123b82a732ca030cf2acc72826ac1a0d
Author: Christian Hergert <christian hergert me>
Date: Fri Oct 30 22:32:54 2015 -0700
map: track CSS changes in gtk+ master
This uses "textview" instead of "GtkSourceMap" when generating custom CSS
for the GtkSourceMap widget. This is required due to element names
changing in gtk+ as of commit 844f60f1f22722b3c27a72e1c981cf499ff945c0.
gtksourceview/gtksourcemap.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/gtksourcemap.c b/gtksourceview/gtksourcemap.c
index 5640405..f8513fa 100644
--- a/gtksourceview/gtksourcemap.c
+++ b/gtksourceview/gtksourcemap.c
@@ -300,7 +300,7 @@ gtk_source_map_rebuild_css (GtkSourceMap *map)
gchar *css;
css = _gtk_source_pango_font_description_to_css (priv->font_desc);
- g_string_append_printf (gstr, "GtkSourceMap { %s }\n", css != NULL ? css : "");
+ g_string_append_printf (gstr, "textview { %s }\n", css != NULL ? css : "");
g_free (css);
}
@@ -374,7 +374,7 @@ gtk_source_map_rebuild_css (GtkSourceMap *map)
if (background != NULL)
{
g_string_append_printf (gstr,
- "GtkSourceMap.scrubber {\n"
+ "textview.scrubber {\n"
"\tbackground-color: %s;\n"
"\tborder-top: 1px solid shade(%s,0.9);\n"
"\tborder-bottom: 1px solid shade(%s,0.9);\n"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]