Workaround for line number color with GTK+ >= 3.3.14
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user