summaryrefslogtreecommitdiff
path: root/examples/application7
diff options
context:
space:
mode:
authorMohammed Sadiq <sadiq@sadiqpk.org>2018-05-08 19:53:27 +0530
committerMohammed Sadiq <sadiq@sadiqpk.org>2018-05-09 15:27:55 +0530
commit88ddda6d603dc065d229361934252ae1d7515eeb (patch)
tree5f24cbcd29b71e83ad4e1a1f84aadff645a3b956 /examples/application7
parente95eeaeef18540d20dad80b824399593c650b346 (diff)
downloadgtk+-88ddda6d603dc065d229361934252ae1d7515eeb.tar.gz
examples: Remove explicit gtk_widget_show()
In gtk4, widgets are visible by default.
Diffstat (limited to 'examples/application7')
-rw-r--r--examples/application7/exampleappwin.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/application7/exampleappwin.c b/examples/application7/exampleappwin.c
index 38ec027128..3dc75e5beb 100644
--- a/examples/application7/exampleappwin.c
+++ b/examples/application7/exampleappwin.c
@@ -120,13 +120,11 @@ example_app_window_open (ExampleAppWindow *win,
basename = g_file_get_basename (file);
scrolled = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_show (scrolled);
gtk_widget_set_hexpand (scrolled, TRUE);
gtk_widget_set_vexpand (scrolled, TRUE);
view = gtk_text_view_new ();
gtk_text_view_set_editable (GTK_TEXT_VIEW (view), FALSE);
gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (view), FALSE);
- gtk_widget_show (view);
gtk_container_add (GTK_CONTAINER (scrolled), view);
gtk_stack_add_titled (GTK_STACK (win->stack), scrolled, basename, basename);