[gtk/matthiasc/for-master] gtk-demo: Fix iconscroll complex text



commit 112883186c603332dff628cdfc0789ea09b19add
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Aug 8 14:38:18 2020 -0400

    gtk-demo: Fix iconscroll complex text
    
    We changed the way fontify works.
    Adapt the iconscroll use.

 demos/gtk-demo/iconscroll.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/demos/gtk-demo/iconscroll.c b/demos/gtk-demo/iconscroll.c
index 09ed6c1258..f7cdc13b6a 100644
--- a/demos/gtk-demo/iconscroll.c
+++ b/demos/gtk-demo/iconscroll.c
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]