[gtk/css-line-height2: 86/87] gtk-demo: Improve markup demo




commit 010d09bf514476d926ebd46727b9f57e494e82c1
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Aug 9 11:17:48 2021 -0400

    gtk-demo: Improve markup demo
    
    The font sizes demo had the space between the font-size spans,
    causing us to have a run with just a default sized space between
    the words, which in turn leads to wobbly cursor sizes. Avoid that
    by including the space in the preceding span.
    
    Also, make it bigger.

 demos/gtk-demo/markup.c   | 2 +-
 demos/gtk-demo/markup.txt | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/demos/gtk-demo/markup.c b/demos/gtk-demo/markup.c
index 8d19529f30..487ffdd079 100644
--- a/demos/gtk-demo/markup.c
+++ b/demos/gtk-demo/markup.c
@@ -58,7 +58,7 @@ do_markup (GtkWidget *do_widget)
       window = gtk_window_new ();
       gtk_window_set_display (GTK_WINDOW (window),
                               gtk_widget_get_display (do_widget));
-      gtk_window_set_default_size (GTK_WINDOW (window), 450, 450);
+      gtk_window_set_default_size (GTK_WINDOW (window), 600, 680);
       g_object_add_weak_pointer (G_OBJECT (window), (gpointer *)&window);
 
       stack = gtk_stack_new ();
diff --git a/demos/gtk-demo/markup.txt b/demos/gtk-demo/markup.txt
index 79b857f295..c850fd8c0b 100644
--- a/demos/gtk-demo/markup.txt
+++ b/demos/gtk-demo/markup.txt
@@ -1,5 +1,5 @@
 
-Text sizes: <span size="xx-small">tiny</span> <span size="x-small">very small</span> <span 
size="small">small</span> <span size="medium">normal</span> <span size="large">large</span> <span 
size="x-large">very large</span> <span size="xx-large">huge</span>
+Text sizes: <span size="xx-small">tiny </span><span size="x-small">very small </span><span 
size="small">small </span><span size="medium">normal </span><span size="large">large </span><span 
size="x-large">very large </span><span size="xx-large">huge</span>
 
 Text <span color="gray">c<span color="green">o</span>l<span color="tomato">o</span>rs</span> and <span 
background="pink">backgrounds</span>
 


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