Workaround for line number color with GTK+ >= 3.3.14

This commit is contained in:
Wen-Yen Chuang
2012-02-20 14:28:35 +08:00
parent 94d4e259ad
commit b074af0ab3
3 changed files with 28 additions and 21 deletions

View File

@@ -197,7 +197,13 @@ DV({g_print("Painting line numbers %d - %d\n",
pango_layout_set_alignment (layout, PANGO_ALIGN_RIGHT);
alist = pango_attr_list_new();
/* TODO: should change line number color by conffile */
#if !GTK_CHECK_VERSION(3,3,14)
attr = pango_attr_foreground_new(0, 0, 0);
#endif
#if GTK_CHECK_VERSION(3,3,14)
attr = pango_attr_foreground_new(65535, 65535, 65535);
#endif
attr->start_index = 0;
attr->end_index = G_MAXUINT;
pango_attr_list_insert(alist, attr);