mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
gtk-demo: Fix iconscroll complex text
We changed the way fontify works. Adapt the iconscroll use.
This commit is contained in:
parent
57a213a4ea
commit
112883186c
@ -75,7 +75,7 @@ populate_icons (void)
|
|||||||
static char *content;
|
static char *content;
|
||||||
static gsize content_len;
|
static gsize content_len;
|
||||||
|
|
||||||
extern void fontify (GtkTextBuffer *buffer);
|
extern void fontify (const char *format, GtkTextBuffer *buffer);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
populate_text (gboolean hilight)
|
populate_text (gboolean hilight)
|
||||||
@ -95,7 +95,7 @@ populate_text (gboolean hilight)
|
|||||||
gtk_text_buffer_set_text (buffer, content, (int)content_len);
|
gtk_text_buffer_set_text (buffer, content, (int)content_len);
|
||||||
|
|
||||||
if (hilight)
|
if (hilight)
|
||||||
fontify (buffer);
|
fontify ("c", buffer);
|
||||||
|
|
||||||
textview = gtk_text_view_new ();
|
textview = gtk_text_view_new ();
|
||||||
gtk_text_view_set_buffer (GTK_TEXT_VIEW (textview), buffer);
|
gtk_text_view_set_buffer (GTK_TEXT_VIEW (textview), buffer);
|
||||||
|
Loading…
Reference in New Issue
Block a user