[gtk/new-text-attributes: 4/5] gtk-demo: Allow word breaking in the markup demo
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/new-text-attributes: 4/5] gtk-demo: Allow word breaking in the markup demo
- Date: Sat, 21 Mar 2020 04:00:05 +0000 (UTC)
commit 38f1dbaba366a37c339dd0e07e0de8e6438e9a2f
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Mar 20 23:51:08 2020 -0400
gtk-demo: Allow word breaking in the markup demo
We want to show hyphenation control here.
demos/gtk-demo/markup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/demos/gtk-demo/markup.c b/demos/gtk-demo/markup.c
index a4ad195c19..cb5ec505a0 100644
--- a/demos/gtk-demo/markup.c
+++ b/demos/gtk-demo/markup.c
@@ -78,7 +78,7 @@ do_markup (GtkWidget *do_widget)
view = gtk_text_view_new ();
gtk_text_view_set_editable (GTK_TEXT_VIEW (view), FALSE);
- gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (view), GTK_WRAP_WORD);
+ gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (view), GTK_WRAP_WORD_CHAR);
gtk_text_view_set_left_margin (GTK_TEXT_VIEW (view), 10);
gtk_text_view_set_right_margin (GTK_TEXT_VIEW (view), 10);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]