gtk-demo: Fix iconscroll complex text

We changed the way fontify works.
Adapt the iconscroll use.
This commit is contained in:
Matthias Clasen 2020-08-08 14:38:18 -04:00
parent 57a213a4ea
commit 112883186c

View File

@ -75,7 +75,7 @@ populate_icons (void)
static char *content;
static gsize content_len;
extern void fontify (GtkTextBuffer *buffer);
extern void fontify (const char *format, GtkTextBuffer *buffer);
static void
populate_text (gboolean hilight)
@ -95,7 +95,7 @@ populate_text (gboolean hilight)
gtk_text_buffer_set_text (buffer, content, (int)content_len);
if (hilight)
fontify (buffer);
fontify ("c", buffer);
textview = gtk_text_view_new ();
gtk_text_view_set_buffer (GTK_TEXT_VIEW (textview), buffer);