diff options
author | Timm Bäder <mail@baedert.org> | 2017-01-19 10:02:04 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-01-20 21:37:04 +0100 |
commit | ea897c6df44c37f573b7ed8e81ad87a9fd5b1009 (patch) | |
tree | 02726659b57530b21a5e1f8625ddd6f381bb8824 /examples | |
parent | 13b001b77ca3907b4ff1246208755478421a7b32 (diff) | |
download | gtk+-ea897c6df44c37f573b7ed8e81ad87a9fd5b1009.tar.gz |
Remove gtk_widget_show_all
Diffstat (limited to 'examples')
-rw-r--r-- | examples/action-namespace.c | 4 | ||||
-rw-r--r-- | examples/bp/bloatpad.c | 4 | ||||
-rw-r--r-- | examples/drawing.c | 2 | ||||
-rw-r--r-- | examples/grid-packing.c | 7 | ||||
-rw-r--r-- | examples/hello-world.c | 2 | ||||
-rw-r--r-- | examples/plugman.c | 2 | ||||
-rw-r--r-- | examples/sunny.c | 2 | ||||
-rw-r--r-- | examples/window-default.c | 2 |
8 files changed, 10 insertions, 15 deletions
diff --git a/examples/action-namespace.c b/examples/action-namespace.c index 6a4c84ed44..da18e7828b 100644 --- a/examples/action-namespace.c +++ b/examples/action-namespace.c @@ -18,7 +18,7 @@ action_activated (GSimpleAction *action, g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog); - gtk_widget_show_all (dialog); + gtk_widget_show (dialog); } static GActionEntry doc_entries[] = { @@ -114,7 +114,7 @@ activate (GApplication *app, gtk_widget_set_halign (GTK_WIDGET (button), GTK_ALIGN_CENTER); gtk_widget_set_valign (GTK_WIDGET (button), GTK_ALIGN_START); gtk_container_add (GTK_CONTAINER (win), button); - gtk_widget_show_all (win); + gtk_widget_show (win); g_object_unref (button_menu); g_object_unref (doc_actions); diff --git a/examples/bp/bloatpad.c b/examples/bp/bloatpad.c index 13efdcb7eb..c6309d43e9 100644 --- a/examples/bp/bloatpad.c +++ b/examples/bp/bloatpad.c @@ -293,7 +293,7 @@ new_window (GApplication *app, G_CALLBACK (text_buffer_changed_cb), window); text_buffer_changed_cb (gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)), window); - gtk_widget_show_all (GTK_WIDGET (window)); + gtk_widget_show (GTK_WIDGET (window)); } static void @@ -430,7 +430,7 @@ edit_accels (GSimpleAction *action, g_object_set_data (G_OBJECT (dialog), "combo", combo); g_object_set_data (G_OBJECT (dialog), "entry", entry); - gtk_widget_show_all (dialog); + gtk_widget_show (dialog); } static gboolean diff --git a/examples/drawing.c b/examples/drawing.c index 2d4b9b47d2..338fc251bf 100644 --- a/examples/drawing.c +++ b/examples/drawing.c @@ -172,7 +172,7 @@ activate (GtkApplication *app, | GDK_BUTTON_PRESS_MASK | GDK_POINTER_MOTION_MASK); - gtk_widget_show_all (window); + gtk_widget_show (window); } int diff --git a/examples/grid-packing.c b/examples/grid-packing.c index 06cf95535c..b6cb0ba334 100644 --- a/examples/grid-packing.c +++ b/examples/grid-packing.c @@ -49,12 +49,7 @@ activate (GtkApplication *app, */ gtk_grid_attach (GTK_GRID (grid), button, 0, 1, 2, 1); - /* Now that we are done packing our widgets, we show them all - * in one go, by calling gtk_widget_show_all() on the window. - * This call recursively calls gtk_widget_show() on all widgets - * that are contained in the window, directly or indirectly. - */ - gtk_widget_show_all (window); + gtk_widget_show (window); } diff --git a/examples/hello-world.c b/examples/hello-world.c index 843b9b2d85..f6cb55bc3c 100644 --- a/examples/hello-world.c +++ b/examples/hello-world.c @@ -27,7 +27,7 @@ activate (GtkApplication *app, g_signal_connect_swapped (button, "clicked", G_CALLBACK (gtk_widget_destroy), window); gtk_container_add (GTK_CONTAINER (button_box), button); - gtk_widget_show_all (window); + gtk_widget_show (window); } int diff --git a/examples/plugman.c b/examples/plugman.c index 3ce91ab78f..e7a5272a91 100644 --- a/examples/plugman.c +++ b/examples/plugman.c @@ -117,7 +117,7 @@ new_window (GApplication *app, } } - gtk_widget_show_all (GTK_WIDGET (window)); + gtk_widget_show (GTK_WIDGET (window)); } static void diff --git a/examples/sunny.c b/examples/sunny.c index 62f51a9866..4b64c0148b 100644 --- a/examples/sunny.c +++ b/examples/sunny.c @@ -46,7 +46,7 @@ new_window (GApplication *app, } } - gtk_widget_show_all (GTK_WIDGET (window)); + gtk_widget_show (GTK_WIDGET (window)); } static void diff --git a/examples/window-default.c b/examples/window-default.c index 3bb80f5105..96d7cb85be 100644 --- a/examples/window-default.c +++ b/examples/window-default.c @@ -9,7 +9,7 @@ activate (GtkApplication* app, window = gtk_application_window_new (app); gtk_window_set_title (GTK_WINDOW (window), "Window"); gtk_window_set_default_size (GTK_WINDOW (window), 200, 200); - gtk_widget_show_all (window); + gtk_widget_show (window); } int |