forked from AuroraMiddleware/gtk
gtk-demo: Cosmetic change
This commit is contained in:
parent
6a3e12cfae
commit
aa32613beb
@ -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));
|
g_assert (g_utf8_validate (g_bytes_get_data (bytes, NULL), g_bytes_get_size (bytes), NULL));
|
||||||
|
|
||||||
textview = gtk_text_view_new ();
|
textview = gtk_text_view_new ();
|
||||||
g_object_set (textview,
|
gtk_text_view_set_left_margin (GTK_TEXT_VIEW (textview), 20);
|
||||||
"left-margin", 20,
|
gtk_text_view_set_right_margin (GTK_TEXT_VIEW (textview), 20);
|
||||||
"right-margin", 20,
|
gtk_text_view_set_top_margin (GTK_TEXT_VIEW (textview), 20);
|
||||||
"top-margin", 20,
|
gtk_text_view_set_bottom_margin (GTK_TEXT_VIEW (textview), 20);
|
||||||
"bottom-margin", 20,
|
|
||||||
NULL);
|
|
||||||
gtk_text_view_set_editable (GTK_TEXT_VIEW (textview), FALSE);
|
gtk_text_view_set_editable (GTK_TEXT_VIEW (textview), FALSE);
|
||||||
gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (textview), FALSE);
|
gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (textview), FALSE);
|
||||||
/* Make it a bit nicer for text. */
|
/* Make it a bit nicer for text. */
|
||||||
|
Loading…
Reference in New Issue
Block a user