[gtk+/wip/matthiasc/font-variations] Improve the demo a bit
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/font-variations] Improve the demo a bit
- Date: Fri, 15 Sep 2017 12:37:58 +0000 (UTC)
commit 5e09925a841356a9a13a2685792da4eaca7e9890
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Sep 15 08:17:13 2017 -0400
Improve the demo a bit
Make the features string wrap nicely.
demos/gtk-demo/font-features.ui | 1 +
demos/gtk-demo/font_features.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/demos/gtk-demo/font-features.ui b/demos/gtk-demo/font-features.ui
index 87844a2..467971b 100644
--- a/demos/gtk-demo/font-features.ui
+++ b/demos/gtk-demo/font-features.ui
@@ -1665,6 +1665,7 @@
<child>
<object class="GtkLabel" id="settings">
<property name="visible">1</property>
+ <property name="wrap">1</property>
<property name="margin-start">20</property>
<property name="margin-end">20</property>
<property name="margin-bottom">20</property>
diff --git a/demos/gtk-demo/font_features.c b/demos/gtk-demo/font_features.c
index 4fd8ce9..a49e63a 100644
--- a/demos/gtk-demo/font_features.c
+++ b/demos/gtk-demo/font_features.c
@@ -101,9 +101,9 @@ update_display (void)
g_string_append (s, ", ");
g_string_append (s, gtk_buildable_get_name (GTK_BUILDABLE (toggle[i])));
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (toggle[i])))
- g_string_append (s, " 1");
+ g_string_append (s, " 1");
else
- g_string_append (s, " 0");
+ g_string_append (s, " 0");
has_feature = TRUE;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]