[gtk/css-line-height2: 10/12] gtk-demo: Improve markup demo
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/css-line-height2: 10/12] gtk-demo: Improve markup demo
- Date: Sun, 22 Aug 2021 18:25:09 +0000 (UTC)
commit 6274ce1cca7bda6760b8b31299a0ef11d9dec167
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]