diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-09-14 16:20:52 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-09-14 16:20:52 -0400 |
commit | aa32613beb48f47bcfc19c6401ec26b09dccbf10 (patch) | |
tree | d4cf7ee50150ba05b2fb34572baf37a7f4b5032d | |
parent | 6a3e12cfaea65bfe4955cd1471637266643aa27f (diff) | |
download | gtk+-aa32613beb48f47bcfc19c6401ec26b09dccbf10.tar.gz |
gtk-demo: Cosmetic change
-rw-r--r-- | demos/gtk-demo/main.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/demos/gtk-demo/main.c b/demos/gtk-demo/main.c index 8cc809449a..db66928c88 100644 --- a/demos/gtk-demo/main.c +++ b/demos/gtk-demo/main.c @@ -341,12 +341,10 @@ display_text (const char *format, g_assert (g_utf8_validate (g_bytes_get_data (bytes, NULL), g_bytes_get_size (bytes), NULL)); textview = gtk_text_view_new (); - g_object_set (textview, - "left-margin", 20, - "right-margin", 20, - "top-margin", 20, - "bottom-margin", 20, - NULL); + gtk_text_view_set_left_margin (GTK_TEXT_VIEW (textview), 20); + gtk_text_view_set_right_margin (GTK_TEXT_VIEW (textview), 20); + gtk_text_view_set_top_margin (GTK_TEXT_VIEW (textview), 20); + gtk_text_view_set_bottom_margin (GTK_TEXT_VIEW (textview), 20); gtk_text_view_set_editable (GTK_TEXT_VIEW (textview), FALSE); gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (textview), FALSE); /* Make it a bit nicer for text. */ |