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 | |
parent | 13b001b77ca3907b4ff1246208755478421a7b32 (diff) | |
download | gtk+-ea897c6df44c37f573b7ed8e81ad87a9fd5b1009.tar.gz |
Remove gtk_widget_show_all
225 files changed, 307 insertions, 450 deletions
diff --git a/demos/gtk-demo/assistant.c b/demos/gtk-demo/assistant.c index 22b2cb4ae9..cdceb4cd05 100644 --- a/demos/gtk-demo/assistant.c +++ b/demos/gtk-demo/assistant.c @@ -105,7 +105,6 @@ create_page1 (GtkWidget *assistant) g_signal_connect (G_OBJECT (entry), "changed", G_CALLBACK (on_entry_changed), assistant); - gtk_widget_show_all (box); gtk_assistant_append_page (GTK_ASSISTANT (assistant), box); gtk_assistant_set_page_title (GTK_ASSISTANT (assistant), box, "Page 1"); gtk_assistant_set_page_type (GTK_ASSISTANT (assistant), box, GTK_ASSISTANT_PAGE_INTRO); @@ -122,7 +121,6 @@ create_page2 (GtkWidget *assistant) "even if you do not check this"); gtk_box_pack_start (GTK_BOX (box), checkbutton, FALSE, FALSE); - gtk_widget_show_all (box); gtk_assistant_append_page (GTK_ASSISTANT (assistant), box); gtk_assistant_set_page_complete (GTK_ASSISTANT (assistant), box, TRUE); gtk_assistant_set_page_title (GTK_ASSISTANT (assistant), box, "Page 2"); diff --git a/demos/gtk-demo/builder.c b/demos/gtk-demo/builder.c index 83399f24cc..c6fec17ea2 100644 --- a/demos/gtk-demo/builder.c +++ b/demos/gtk-demo/builder.c @@ -116,7 +116,7 @@ do_builder (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/button_box.c b/demos/gtk-demo/button_box.c index 180d63997d..a5d22571da 100644 --- a/demos/gtk-demo/button_box.c +++ b/demos/gtk-demo/button_box.c @@ -131,7 +131,7 @@ do_button_box (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/changedisplay.c b/demos/gtk-demo/changedisplay.c index f8137c895e..8f7d16446d 100644 --- a/demos/gtk-demo/changedisplay.c +++ b/demos/gtk-demo/changedisplay.c @@ -123,7 +123,7 @@ query_for_toplevel (GdkScreen *screen, g_object_set (label, "margin", 10, NULL); gtk_container_add (GTK_CONTAINER (frame), label); - gtk_widget_show_all (popup); + gtk_widget_show (popup); cursor = gdk_cursor_new_from_name (display, "crosshair"); device = gtk_get_current_event_device (); @@ -224,7 +224,6 @@ open_display_cb (GtkWidget *button, gtk_container_add (GTK_CONTAINER (content_area), display_entry); gtk_widget_grab_focus (display_entry); - gtk_widget_show_all (gtk_bin_get_child (GTK_BIN (dialog))); while (!result) { @@ -547,7 +546,7 @@ do_changedisplay (GtkWidget *do_widget) initialize_displays (info); - gtk_widget_show_all (info->window); + gtk_widget_show (info->window); return info->window; } else diff --git a/demos/gtk-demo/clipboard.c b/demos/gtk-demo/clipboard.c index 4a038d6cfb..444ac89271 100644 --- a/demos/gtk-demo/clipboard.c +++ b/demos/gtk-demo/clipboard.c @@ -323,7 +323,7 @@ do_clipboard (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/colorsel.c b/demos/gtk-demo/colorsel.c index 29f0857682..7f85c4e38e 100644 --- a/demos/gtk-demo/colorsel.c +++ b/demos/gtk-demo/colorsel.c @@ -53,7 +53,7 @@ change_color_callback (GtkWidget *button, g_signal_connect (dialog, "response", G_CALLBACK (response_cb), NULL); - gtk_widget_show_all (dialog); + gtk_widget_show (dialog); } GtkWidget * @@ -107,7 +107,7 @@ do_colorsel (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/combobox.c b/demos/gtk-demo/combobox.c index 930a3b550a..0607866833 100644 --- a/demos/gtk-demo/combobox.c +++ b/demos/gtk-demo/combobox.c @@ -433,7 +433,7 @@ do_combobox (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/css_accordion.c b/demos/gtk-demo/css_accordion.c index bb91b66426..40c664f4ed 100644 --- a/demos/gtk-demo/css_accordion.c +++ b/demos/gtk-demo/css_accordion.c @@ -61,7 +61,7 @@ do_css_accordion (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/css_basics.c b/demos/gtk-demo/css_basics.c index 81e11ce303..8ac7eb90a4 100644 --- a/demos/gtk-demo/css_basics.c +++ b/demos/gtk-demo/css_basics.c @@ -110,7 +110,7 @@ do_css_basics (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/css_blendmodes.c b/demos/gtk-demo/css_blendmodes.c index 1071b5b32c..9965bf6709 100644 --- a/demos/gtk-demo/css_blendmodes.c +++ b/demos/gtk-demo/css_blendmodes.c @@ -138,7 +138,7 @@ do_css_blendmodes (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/css_multiplebgs.c b/demos/gtk-demo/css_multiplebgs.c index 047a29b96d..2d8d935d0e 100644 --- a/demos/gtk-demo/css_multiplebgs.c +++ b/demos/gtk-demo/css_multiplebgs.c @@ -157,7 +157,7 @@ do_css_multiplebgs (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/css_pixbufs.c b/demos/gtk-demo/css_pixbufs.c index 7155ad712e..1309094569 100644 --- a/demos/gtk-demo/css_pixbufs.c +++ b/demos/gtk-demo/css_pixbufs.c @@ -116,7 +116,7 @@ do_css_pixbufs (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/css_shadows.c b/demos/gtk-demo/css_shadows.c index 53ce92267a..bbc6e5fadb 100644 --- a/demos/gtk-demo/css_shadows.c +++ b/demos/gtk-demo/css_shadows.c @@ -138,7 +138,7 @@ do_css_shadows (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/cursors.c b/demos/gtk-demo/cursors.c index cab6333347..580342e73e 100644 --- a/demos/gtk-demo/cursors.c +++ b/demos/gtk-demo/cursors.c @@ -152,7 +152,7 @@ do_cursors (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/dialog.c b/demos/gtk-demo/dialog.c index b89156db4e..983e455099 100644 --- a/demos/gtk-demo/dialog.c +++ b/demos/gtk-demo/dialog.c @@ -80,7 +80,6 @@ interactive_dialog_clicked (GtkButton *button, gtk_grid_attach (GTK_GRID (table), local_entry2, 1, 1, 1, 1); gtk_label_set_mnemonic_widget (GTK_LABEL (label), local_entry2); - gtk_widget_show_all (hbox); response = gtk_dialog_run (GTK_DIALOG (dialog)); if (response == GTK_RESPONSE_OK) @@ -163,7 +162,7 @@ do_dialog (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/drawingarea.c b/demos/gtk-demo/drawingarea.c index f3790745ee..6908a84449 100644 --- a/demos/gtk-demo/drawingarea.c +++ b/demos/gtk-demo/drawingarea.c @@ -277,7 +277,7 @@ do_drawingarea (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/editable_cells.c b/demos/gtk-demo/editable_cells.c index a45bd52c13..c890e6438b 100644 --- a/demos/gtk-demo/editable_cells.c +++ b/demos/gtk-demo/editable_cells.c @@ -403,7 +403,7 @@ do_editable_cells (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/entry_buffer.c b/demos/gtk-demo/entry_buffer.c index 497d51db2b..5bae1a6df4 100644 --- a/demos/gtk-demo/entry_buffer.c +++ b/demos/gtk-demo/entry_buffer.c @@ -52,7 +52,7 @@ do_entry_buffer (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/entry_completion.c b/demos/gtk-demo/entry_completion.c index c502b12c55..306d590bb4 100644 --- a/demos/gtk-demo/entry_completion.c +++ b/demos/gtk-demo/entry_completion.c @@ -83,7 +83,7 @@ do_entry_completion (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/event_axes.c b/demos/gtk-demo/event_axes.c index 9d088e62cb..e1539f88f1 100644 --- a/demos/gtk-demo/event_axes.c +++ b/demos/gtk-demo/event_axes.c @@ -654,7 +654,7 @@ do_event_axes (GtkWidget *toplevel) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/expander.c b/demos/gtk-demo/expander.c index 9ec710c506..d4f18586b4 100644 --- a/demos/gtk-demo/expander.c +++ b/demos/gtk-demo/expander.c @@ -86,7 +86,6 @@ do_expander (GtkWidget *do_widget) gtk_container_add (GTK_CONTAINER (sw), tv); gtk_container_add (GTK_CONTAINER (expander), sw); gtk_box_pack_end (GTK_BOX (area), expander, TRUE, TRUE); - gtk_widget_show_all (expander); g_signal_connect (expander, "notify::expanded", G_CALLBACK (expander_cb), window); @@ -94,7 +93,7 @@ do_expander (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/filtermodel.c b/demos/gtk-demo/filtermodel.c index bb8ed45920..bbaa1e080f 100644 --- a/demos/gtk-demo/filtermodel.c +++ b/demos/gtk-demo/filtermodel.c @@ -198,7 +198,7 @@ do_filtermodel (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/flowbox.c b/demos/gtk-demo/flowbox.c index 2f4dab0157..21cd3882b8 100644 --- a/demos/gtk-demo/flowbox.c +++ b/demos/gtk-demo/flowbox.c @@ -38,7 +38,6 @@ color_swatch_new (const gchar *color) gtk_drawing_area_set_content_height (GTK_DRAWING_AREA (area), 24); gtk_drawing_area_set_draw_func (GTK_DRAWING_AREA (area), draw_color, (gpointer) color, NULL); gtk_container_add (GTK_CONTAINER (button), area); - gtk_widget_show_all (button); return button; } @@ -741,8 +740,6 @@ do_flowbox (GtkWidget *do_widget) for (i = 0; colors[i]; i++) gtk_container_add (GTK_CONTAINER (flowbox), color_swatch_new (colors[i])); - - gtk_widget_show_all (scrolled); } if (!gtk_widget_get_visible (window)) diff --git a/demos/gtk-demo/foreigndrawing.c b/demos/gtk-demo/foreigndrawing.c index 1dec450f41..716f61f280 100644 --- a/demos/gtk-demo/foreigndrawing.c +++ b/demos/gtk-demo/foreigndrawing.c @@ -977,7 +977,7 @@ do_foreigndrawing (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/gestures.c b/demos/gtk-demo/gestures.c index a7eac6ddff..8ef19b077e 100644 --- a/demos/gtk-demo/gestures.c +++ b/demos/gtk-demo/gestures.c @@ -184,7 +184,7 @@ do_gestures (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/glarea.c b/demos/gtk-demo/glarea.c index b1d14ef469..68b1a96685 100644 --- a/demos/gtk-demo/glarea.c +++ b/demos/gtk-demo/glarea.c @@ -436,7 +436,7 @@ do_glarea (GtkWidget *do_widget) demo_window = create_glarea_window (do_widget); if (!gtk_widget_get_visible (demo_window)) - gtk_widget_show_all (demo_window); + gtk_widget_show (demo_window); else gtk_widget_destroy (demo_window); diff --git a/demos/gtk-demo/headerbar.c b/demos/gtk-demo/headerbar.c index 2bf99a2f9c..ca5ce43c13 100644 --- a/demos/gtk-demo/headerbar.c +++ b/demos/gtk-demo/headerbar.c @@ -58,7 +58,7 @@ do_headerbar (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/hypertext.c b/demos/gtk-demo/hypertext.c index 0aa1b2349c..c655453dee 100644 --- a/demos/gtk-demo/hypertext.c +++ b/demos/gtk-demo/hypertext.c @@ -289,8 +289,6 @@ do_hypertext (GtkWidget *do_widget) gtk_container_add (GTK_CONTAINER (sw), view); show_page (buffer, 1); - - gtk_widget_show_all (sw); } if (!gtk_widget_get_visible (window)) diff --git a/demos/gtk-demo/iconview.c b/demos/gtk-demo/iconview.c index 2ebe54f1e8..bf65f4ed5b 100644 --- a/demos/gtk-demo/iconview.c +++ b/demos/gtk-demo/iconview.c @@ -326,7 +326,7 @@ do_iconview (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/iconview_edit.c b/demos/gtk-demo/iconview_edit.c index 3d626fddb7..5fc5575a3f 100644 --- a/demos/gtk-demo/iconview_edit.c +++ b/demos/gtk-demo/iconview_edit.c @@ -150,7 +150,7 @@ do_iconview_edit (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/images.c b/demos/gtk-demo/images.c index 4397647482..1b2c166a99 100644 --- a/demos/gtk-demo/images.c +++ b/demos/gtk-demo/images.c @@ -434,7 +434,7 @@ do_images (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/infobar.c b/demos/gtk-demo/infobar.c index 3e6d08853c..9b71794d44 100644 --- a/demos/gtk-demo/infobar.c +++ b/demos/gtk-demo/infobar.c @@ -34,7 +34,7 @@ on_bar_response (GtkInfoBar *info_bar, G_CALLBACK (gtk_widget_destroy), dialog); - gtk_widget_show_all (dialog); + gtk_widget_show (dialog); } GtkWidget * @@ -140,12 +140,11 @@ do_infobar (GtkWidget *do_widget) label = gtk_label_new ("An example of different info bars"); gtk_box_pack_start (GTK_BOX (vbox2), label, FALSE, FALSE); - gtk_widget_show_all (actions); gtk_box_pack_start (GTK_BOX (vbox2), actions, FALSE, FALSE); } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/list_store.c b/demos/gtk-demo/list_store.c index 3ca17b9938..c0c37ae29d 100644 --- a/demos/gtk-demo/list_store.c +++ b/demos/gtk-demo/list_store.c @@ -301,7 +301,7 @@ do_list_store (GtkWidget *do_widget) if (!gtk_widget_get_visible (window)) { - gtk_widget_show_all (window); + gtk_widget_show (window); if (timeout == 0) { /* FIXME this should use the animation-duration instead */ timeout = g_timeout_add (80, spinner_timeout, NULL); diff --git a/demos/gtk-demo/listbox.c b/demos/gtk-demo/listbox.c index 798be03e95..24b679c63a 100644 --- a/demos/gtk-demo/listbox.c +++ b/demos/gtk-demo/listbox.c @@ -370,8 +370,6 @@ do_listbox (GtkWidget *do_widget) gtk_list_box_set_activate_on_single_click (GTK_LIST_BOX (listbox), FALSE); g_signal_connect (listbox, "row-activated", G_CALLBACK (row_activated), NULL); - gtk_widget_show_all (vbox); - data = g_resources_lookup_data ("/listbox/messages.txt", 0, NULL); lines = g_strsplit (g_bytes_get_data (data, NULL), "\n", 0); diff --git a/demos/gtk-demo/main.c b/demos/gtk-demo/main.c index f08416caf6..a38981221f 100644 --- a/demos/gtk-demo/main.c +++ b/demos/gtk-demo/main.c @@ -592,7 +592,6 @@ add_data_tab (const gchar *demoname) g_bytes_unref (bytes); } - gtk_widget_show_all (widget); label = gtk_label_new (resources[i]); gtk_widget_show (label); gtk_notebook_append_page (GTK_NOTEBOOK (notebook), widget, label); @@ -1022,8 +1021,6 @@ activate (GApplication *app) g_signal_connect (item, "activate", G_CALLBACK (end_cb), scrollbar); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); - gtk_widget_show_all (menu); - g_signal_connect (scrollbar, "popup-menu", G_CALLBACK (scrollbar_popup), menu); load_file (gtk_demos[0].name, gtk_demos[0].filename); @@ -1040,7 +1037,7 @@ activate (GApplication *app) gtk_tree_view_collapse_all (GTK_TREE_VIEW (treeview)); - gtk_widget_show_all (GTK_WIDGET (window)); + gtk_widget_show (GTK_WIDGET (window)); g_object_unref (builder); } diff --git a/demos/gtk-demo/markup.c b/demos/gtk-demo/markup.c index 486b4543db..859bbfd5d4 100644 --- a/demos/gtk-demo/markup.c +++ b/demos/gtk-demo/markup.c @@ -70,7 +70,6 @@ do_markup (GtkWidget *do_widget) header = gtk_header_bar_new (); gtk_header_bar_set_show_close_button (GTK_HEADER_BAR (header), TRUE); gtk_header_bar_pack_start (GTK_HEADER_BAR (header), show_source); - gtk_widget_show_all (header); gtk_window_set_titlebar (GTK_WINDOW (window), header); gtk_window_set_title (GTK_WINDOW (window), "Markup"); @@ -86,7 +85,6 @@ do_markup (GtkWidget *do_widget) GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add (GTK_CONTAINER (sw), view); - gtk_widget_show_all (sw); gtk_stack_add_named (GTK_STACK (stack), sw, "formatted"); @@ -100,7 +98,6 @@ do_markup (GtkWidget *do_widget) GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add (GTK_CONTAINER (sw), view2); - gtk_widget_show_all (sw); gtk_stack_add_named (GTK_STACK (stack), sw, "source"); diff --git a/demos/gtk-demo/modelbutton.c b/demos/gtk-demo/modelbutton.c index 8dafda89c3..045a911059 100644 --- a/demos/gtk-demo/modelbutton.c +++ b/demos/gtk-demo/modelbutton.c @@ -59,7 +59,7 @@ do_modelbutton (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/overlay.c b/demos/gtk-demo/overlay.c index 4f64347124..f3b836d6be 100644 --- a/demos/gtk-demo/overlay.c +++ b/demos/gtk-demo/overlay.c @@ -76,8 +76,6 @@ do_overlay (GtkWidget *do_widget) g_signal_connect (window, "destroy", G_CALLBACK (gtk_widget_destroyed), &window); - - gtk_widget_show_all (overlay); } if (!gtk_widget_get_visible (window)) diff --git a/demos/gtk-demo/overlay2.c b/demos/gtk-demo/overlay2.c index a119c92ca7..eeef1b699b 100644 --- a/demos/gtk-demo/overlay2.c +++ b/demos/gtk-demo/overlay2.c @@ -92,8 +92,6 @@ do_overlay2 (GtkWidget *do_widget) gtk_widget_set_tooltip_text (scale, "Margin"); gtk_adjustment_set_value (adjustment, 100); - - gtk_widget_show_all (overlay); } if (!gtk_widget_get_visible (window)) diff --git a/demos/gtk-demo/panes.c b/demos/gtk-demo/panes.c index e6b2cd4a66..cdfb5a9063 100644 --- a/demos/gtk-demo/panes.c +++ b/demos/gtk-demo/panes.c @@ -186,8 +186,6 @@ do_panes (GtkWidget *do_widget) "Top", "Bottom"), FALSE, FALSE); - - gtk_widget_show_all (vbox); } if (!gtk_widget_get_visible (window)) diff --git a/demos/gtk-demo/pickers.c b/demos/gtk-demo/pickers.c index 1fdceb9b2f..c096169594 100644 --- a/demos/gtk-demo/pickers.c +++ b/demos/gtk-demo/pickers.c @@ -73,7 +73,7 @@ do_pickers (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/pixbufs.c b/demos/gtk-demo/pixbufs.c index 7b5f2c7ba8..4f7f4b5242 100644 --- a/demos/gtk-demo/pixbufs.c +++ b/demos/gtk-demo/pixbufs.c @@ -219,7 +219,7 @@ do_pixbufs (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else { gtk_widget_destroy (window); diff --git a/demos/gtk-demo/popover.c b/demos/gtk-demo/popover.c index c3425a97b7..8f0573de96 100644 --- a/demos/gtk-demo/popover.c +++ b/demos/gtk-demo/popover.c @@ -167,7 +167,7 @@ do_popover (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/revealer.c b/demos/gtk-demo/revealer.c index 2cccb7a7ed..811359e0a8 100644 --- a/demos/gtk-demo/revealer.c +++ b/demos/gtk-demo/revealer.c @@ -82,7 +82,7 @@ do_revealer (GtkWidget *do_widget) { count = 0; timeout = g_timeout_add (690, reveal_one, window); - gtk_widget_show_all (window); + gtk_widget_show (window); } else { diff --git a/demos/gtk-demo/rotated_text.c b/demos/gtk-demo/rotated_text.c index 554da8e416..fbbf7004b9 100644 --- a/demos/gtk-demo/rotated_text.c +++ b/demos/gtk-demo/rotated_text.c @@ -217,7 +217,7 @@ do_rotated_text (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/scale.c b/demos/gtk-demo/scale.c index 6f4d8d4f2c..717ba5ba12 100644 --- a/demos/gtk-demo/scale.c +++ b/demos/gtk-demo/scale.c @@ -29,7 +29,7 @@ do_scale (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/search_entry.c b/demos/gtk-demo/search_entry.c index cc93e2395e..62045edf81 100644 --- a/demos/gtk-demo/search_entry.c +++ b/demos/gtk-demo/search_entry.c @@ -145,8 +145,6 @@ create_search_menu (GtkWidget *entry) G_CALLBACK (search_by_file), entry); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); - gtk_widget_show_all (menu); - return menu; } @@ -290,7 +288,7 @@ do_search_entry (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else { gtk_widget_destroy (menu); diff --git a/demos/gtk-demo/search_entry2.c b/demos/gtk-demo/search_entry2.c index eabac96909..376c34e663 100644 --- a/demos/gtk-demo/search_entry2.c +++ b/demos/gtk-demo/search_entry2.c @@ -152,7 +152,7 @@ do_search_entry2 (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/shortcuts.c b/demos/gtk-demo/shortcuts.c index dbe02f66e5..c3a3483df9 100644 --- a/demos/gtk-demo/shortcuts.c +++ b/demos/gtk-demo/shortcuts.c @@ -106,7 +106,7 @@ do_shortcuts (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/sidebar.c b/demos/gtk-demo/sidebar.c index b7061adf38..14b5851236 100644 --- a/demos/gtk-demo/sidebar.c +++ b/demos/gtk-demo/sidebar.c @@ -80,7 +80,7 @@ do_sidebar (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/sizegroup.c b/demos/gtk-demo/sizegroup.c index e690ec8d16..c32fcb942f 100644 --- a/demos/gtk-demo/sizegroup.c +++ b/demos/gtk-demo/sizegroup.c @@ -150,7 +150,7 @@ do_sizegroup (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/spinbutton.c b/demos/gtk-demo/spinbutton.c index f504ba5474..487903d8f9 100644 --- a/demos/gtk-demo/spinbutton.c +++ b/demos/gtk-demo/spinbutton.c @@ -245,7 +245,7 @@ do_spinbutton (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/spinner.c b/demos/gtk-demo/spinner.c index 3dbb8c958d..e9232e8cc2 100644 --- a/demos/gtk-demo/spinner.c +++ b/demos/gtk-demo/spinner.c @@ -88,7 +88,7 @@ do_spinner (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/stack.c b/demos/gtk-demo/stack.c index 6a82cb7c72..a99e084836 100644 --- a/demos/gtk-demo/stack.c +++ b/demos/gtk-demo/stack.c @@ -29,7 +29,7 @@ do_stack (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/tabs.c b/demos/gtk-demo/tabs.c index 18d15deabc..0361ac3268 100644 --- a/demos/gtk-demo/tabs.c +++ b/demos/gtk-demo/tabs.c @@ -48,8 +48,6 @@ do_tabs (GtkWidget *do_widget) GTK_POLICY_AUTOMATIC); gtk_container_add (GTK_CONTAINER (window), sw); gtk_container_add (GTK_CONTAINER (sw), view); - - gtk_widget_show_all (sw); } if (!gtk_widget_get_visible (window)) diff --git a/demos/gtk-demo/textmask.c b/demos/gtk-demo/textmask.c index f383310937..0bc18aa30c 100644 --- a/demos/gtk-demo/textmask.c +++ b/demos/gtk-demo/textmask.c @@ -74,7 +74,7 @@ do_textmask (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/textscroll.c b/demos/gtk-demo/textscroll.c index 1931e69ace..07d33b810d 100644 --- a/demos/gtk-demo/textscroll.c +++ b/demos/gtk-demo/textscroll.c @@ -195,7 +195,7 @@ do_textscroll (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/textview.c b/demos/gtk-demo/textview.c index 474fdbf9d6..49cba65505 100644 --- a/demos/gtk-demo/textview.c +++ b/demos/gtk-demo/textview.c @@ -452,8 +452,6 @@ attach_widgets (GtkTextView *text_view) widget, anchor); - gtk_widget_show_all (widget); - ++i; } } @@ -515,8 +513,6 @@ do_textview (GtkWidget *do_widget) attach_widgets (GTK_TEXT_VIEW (view1)); attach_widgets (GTK_TEXT_VIEW (view2)); - - gtk_widget_show_all (vpaned); } if (!gtk_widget_get_visible (window)) @@ -601,5 +597,5 @@ easter_egg_callback (GtkWidget *button, gtk_window_set_default_size (GTK_WINDOW (window), 300, 400); - gtk_widget_show_all (window); + gtk_widget_show (window); } diff --git a/demos/gtk-demo/theming_style_classes.c b/demos/gtk-demo/theming_style_classes.c index afb9dcdaf2..0580c01de9 100644 --- a/demos/gtk-demo/theming_style_classes.c +++ b/demos/gtk-demo/theming_style_classes.c @@ -31,7 +31,6 @@ do_theming_style_classes (GtkWidget *do_widget) builder = gtk_builder_new_from_resource ("/theming_style_classes/theming.ui"); grid = (GtkWidget *)gtk_builder_get_object (builder, "grid"); - gtk_widget_show_all (grid); gtk_container_add (GTK_CONTAINER (window), grid); g_object_unref (builder); } diff --git a/demos/gtk-demo/toolpalette.c b/demos/gtk-demo/toolpalette.c index da6dfa2571..b0f474e360 100644 --- a/demos/gtk-demo/toolpalette.c +++ b/demos/gtk-demo/toolpalette.c @@ -535,8 +535,6 @@ do_toolpalette (GtkWidget *do_widget) gtk_container_add (GTK_CONTAINER (palette_scroller), palette); gtk_container_add (GTK_CONTAINER (hbox), palette_scroller); - gtk_widget_show_all (box); - /* Connect signals: */ g_signal_connect (combo_orientation, "changed", G_CALLBACK (on_combo_orientation_changed), palette); @@ -620,7 +618,7 @@ do_toolpalette (GtkWidget *do_widget) if (!gtk_widget_get_visible (window)) { - gtk_widget_show_all (window); + gtk_widget_show (window); } else { diff --git a/demos/gtk-demo/transparent.c b/demos/gtk-demo/transparent.c index bd7a363159..c307de4508 100644 --- a/demos/gtk-demo/transparent.c +++ b/demos/gtk-demo/transparent.c @@ -229,7 +229,7 @@ do_transparent (GtkWidget *do_widget) gtk_widget_set_halign (entry, GTK_ALIGN_CENTER); gtk_widget_set_valign (entry, GTK_ALIGN_START); - gtk_widget_show_all (overlay); + gtk_widget_show (overlay); } if (!gtk_widget_get_visible (window)) diff --git a/demos/gtk-demo/tree_store.c b/demos/gtk-demo/tree_store.c index 87c28e4562..70c69686ce 100644 --- a/demos/gtk-demo/tree_store.c +++ b/demos/gtk-demo/tree_store.c @@ -433,7 +433,7 @@ do_tree_store (GtkWidget *do_widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); diff --git a/demos/widget-factory/widget-factory.c b/demos/widget-factory/widget-factory.c index f18acd8ee3..1f2ab2e78e 100644 --- a/demos/widget-factory/widget-factory.c +++ b/demos/widget-factory/widget-factory.c @@ -816,7 +816,6 @@ overshot (GtkScrolledWindow *sw, GtkPositionType pos, GtkWidget *widget) box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_add (GTK_CONTAINER (box), swatch); gtk_box_pack_start (GTK_BOX (row), box, FALSE, FALSE); - gtk_widget_show_all (row); gtk_list_box_insert (GTK_LIST_BOX (widget), row, -1); row = gtk_widget_get_parent (row); gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (row), FALSE); @@ -927,7 +926,6 @@ populate_colors (GtkWidget *widget, GtkWidget *chooser) box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_add (GTK_CONTAINER (box), swatch); gtk_box_pack_start (GTK_BOX (row), box, FALSE, FALSE); - gtk_widget_show_all (row); gtk_list_box_insert (GTK_LIST_BOX (widget), row, -1); row = gtk_widget_get_parent (row); gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (row), FALSE); @@ -1893,7 +1891,7 @@ activate (GApplication *app) g_signal_connect (adj, "value-changed", G_CALLBACK (adjustment3_value_changed), widget); g_signal_connect (adj, "value-changed", G_CALLBACK (adjustment3_value_changed), widget2); - gtk_widget_show_all (GTK_WIDGET (window)); + gtk_widget_show (GTK_WIDGET (window)); g_object_unref (builder); } diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt index a9bfe562de..6afd7663ab 100644 --- a/docs/reference/gtk/gtk4-sections.txt +++ b/docs/reference/gtk/gtk4-sections.txt @@ -4496,7 +4496,6 @@ gtk_widget_unparent gtk_widget_show gtk_widget_show_now gtk_widget_hide -gtk_widget_show_all gtk_widget_map gtk_widget_unmap gtk_widget_realize diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c index 412fa9bfeb..9625ed3901 100644 --- a/docs/tools/widgets.c +++ b/docs/tools/widgets.c @@ -37,7 +37,7 @@ new_widget_info (const char *name, { info->window = gtk_window_new (GTK_WINDOW_TOPLEVEL); info->include_decorations = FALSE; - gtk_widget_show_all (widget); + gtk_widget_show (widget); gtk_container_add (GTK_CONTAINER (info->window), widget); } info->no_focus = TRUE; @@ -1262,7 +1262,6 @@ create_headerbar (void) button = gtk_button_new (); gtk_container_add (GTK_CONTAINER (button), gtk_image_new_from_icon_name ("bookmark-new-symbolic", GTK_ICON_SIZE_BUTTON)); gtk_header_bar_pack_end (GTK_HEADER_BAR (bar), button); - gtk_widget_show_all (bar); return new_widget_info ("headerbar", window, ASIS); } 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 diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c index a01b4eabb3..eab010764c 100644 --- a/gtk/gtkapplicationwindow.c +++ b/gtk/gtkapplicationwindow.c @@ -266,7 +266,6 @@ gtk_application_window_update_menubar (GtkApplicationWindow *window) window->priv->menubar = gtk_menu_bar_new_from_model (G_MENU_MODEL (combined)); gtk_widget_set_parent (window->priv->menubar, GTK_WIDGET (window)); - gtk_widget_show_all (window->priv->menubar); g_object_unref (combined); gtk_widget_queue_resize (GTK_WIDGET (window)); diff --git a/gtk/gtkcellrendereraccel.c b/gtk/gtkcellrendereraccel.c index e8fce86053..b08a0259cc 100644 --- a/gtk/gtkcellrendereraccel.c +++ b/gtk/gtkcellrendereraccel.c @@ -489,7 +489,6 @@ gtk_cell_renderer_accel_start_editing (GtkCellRenderer *cell, gtk_container_add (GTK_CONTAINER (eventbox), label); - gtk_widget_show_all (eventbox); gtk_grab_add (eventbox); return GTK_CELL_EDITABLE (eventbox); diff --git a/gtk/gtkcolorchooserwidget.c b/gtk/gtkcolorchooserwidget.c index 00de9dc121..c7e8e671d9 100644 --- a/gtk/gtkcolorchooserwidget.c +++ b/gtk/gtkcolorchooserwidget.c @@ -414,8 +414,6 @@ add_palette (GtkColorChooserWidget *cc, gtk_grid_attach (GTK_GRID (grid), p, line, pos, 1, 1); } } - - gtk_widget_show_all (grid); } static void @@ -595,9 +593,7 @@ gtk_color_chooser_widget_init (GtkColorChooserWidget *cc) if (selected) gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (cc), &color); - gtk_widget_show_all (GTK_WIDGET (cc)); gtk_widget_hide (GTK_WIDGET (cc->priv->editor)); - gtk_widget_hide (GTK_WIDGET (cc)); gtk_widget_set_no_show_all (cc->priv->palette, TRUE); gtk_widget_set_no_show_all (cc->priv->editor, TRUE); diff --git a/gtk/gtkcolorswatch.c b/gtk/gtkcolorswatch.c index 7a4c5e36ca..d3465b3169 100644 --- a/gtk/gtkcolorswatch.c +++ b/gtk/gtkcolorswatch.c @@ -376,7 +376,6 @@ do_popup (GtkColorSwatch *swatch) g_signal_connect_swapped (item, "clicked", G_CALLBACK (emit_customize), swatch); gtk_container_add (GTK_CONTAINER (box), item); - gtk_widget_show_all (box); } gtk_popover_popup (GTK_POPOVER (swatch->priv->popover)); diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index a554cc9e84..589693a7a6 100644 --- a/gtk/gtkdialog.c +++ b/gtk/gtkdialog.c @@ -126,7 +126,7 @@ * // Add the label, and show everything we’ve added * * gtk_container_add (GTK_CONTAINER (content_area), label); - * gtk_widget_show_all (dialog); + * gtk_widget_show (dialog); * } * ]| * diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c index 54c598492b..ed6837dc83 100644 --- a/gtk/gtkentrycompletion.c +++ b/gtk/gtkentrycompletion.c @@ -1636,7 +1636,7 @@ gtk_entry_completion_popup (GtkEntryCompletion *completion) completion->priv->ignore_enter = TRUE; - gtk_widget_show_all (completion->priv->vbox); + gtk_widget_show (completion->priv->vbox); /* default on no match */ completion->priv->current_selected = -1; diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c index 59026b5c67..93bdd03661 100644 --- a/gtk/gtkfilechooserdialog.c +++ b/gtk/gtkfilechooserdialog.c @@ -541,7 +541,6 @@ setup_save_entry (GtkFileChooserDialog *dialog) gtk_label_set_mnemonic_widget (GTK_LABEL (label), entry); gtk_container_add (GTK_CONTAINER (box), label); gtk_container_add (GTK_CONTAINER (box), entry); - gtk_widget_show_all (box); gtk_header_bar_set_custom_title (GTK_HEADER_BAR (header), box); gtk_file_chooser_widget_set_save_entry (GTK_FILE_CHOOSER_WIDGET (dialog->priv->widget), entry); diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 4f5af5b67f..77727be3b4 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -8726,7 +8726,6 @@ gtk_file_chooser_widget_add_choice (GtkFileChooser *chooser, widget = check; } - gtk_widget_show_all (widget); gtk_container_add (GTK_CONTAINER (priv->choice_box), widget); } diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c index 985a6f9e29..a90d6dfafa 100644 --- a/gtk/gtkheaderbar.c +++ b/gtk/gtkheaderbar.c @@ -379,7 +379,6 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar) image = gtk_image_new (); gtk_container_add (GTK_CONTAINER (button), image); gtk_widget_set_can_focus (button, FALSE); - gtk_widget_show_all (button); accessible = gtk_widget_get_accessible (button); if (GTK_IS_ACCESSIBLE (accessible)) atk_object_set_name (accessible, _("Application menu")); @@ -399,7 +398,6 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar) g_object_set (image, "use-fallback", TRUE, NULL); gtk_container_add (GTK_CONTAINER (button), image); gtk_widget_set_can_focus (button, FALSE); - gtk_widget_show_all (button); g_signal_connect_swapped (button, "clicked", G_CALLBACK (gtk_window_iconify), window); accessible = gtk_widget_get_accessible (button); @@ -422,7 +420,6 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar) g_object_set (image, "use-fallback", TRUE, NULL); gtk_container_add (GTK_CONTAINER (button), image); gtk_widget_set_can_focus (button, FALSE); - gtk_widget_show_all (button); g_signal_connect_swapped (button, "clicked", G_CALLBACK (_gtk_window_toggle_maximized), window); accessible = gtk_widget_get_accessible (button); @@ -440,7 +437,6 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar) g_object_set (image, "use-fallback", TRUE, NULL); gtk_container_add (GTK_CONTAINER (button), image); gtk_widget_set_can_focus (button, FALSE); - gtk_widget_show_all (button); g_signal_connect_swapped (button, "clicked", G_CALLBACK (gtk_window_close), window); accessible = gtk_widget_get_accessible (button); diff --git a/gtk/gtklistbox.h b/gtk/gtklistbox.h index e796b981ab..72ee8df0a2 100644 --- a/gtk/gtklistbox.h +++ b/gtk/gtklistbox.h @@ -103,7 +103,7 @@ struct _GtkListBoxRow /** * GtkListBoxRowClass: * @parent_class: The parent class. - * @activate: + * @activate: */ struct _GtkListBoxRowClass { @@ -177,11 +177,6 @@ typedef void (*GtkListBoxUpdateHeaderFunc) (GtkListBoxRow *row, * Called for list boxes that are bound to a #GListModel with * gtk_list_box_bind_model() for each item that gets added to the model. * - * Versions of GTK+ prior to 3.18 called gtk_widget_show_all() on the rows - * created by the GtkListBoxCreateWidgetFunc, but this forced all widgets - * inside the row to be shown, and is no longer the case. Applications should - * be updated to show the desired row widgets. - * * Returns: (transfer full): a #GtkWidget that represents @item * * Since: 3.16 diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index a64e98f6a6..69d71f8088 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -74,7 +74,7 @@ * ... * * // Show the application window - * gtk_widget_show_all (mainwin); + * gtk_widget_show (mainwin); * * // Enter the main event loop, and wait for user interaction * gtk_main (); @@ -1653,7 +1653,7 @@ gtk_main_do_event (GdkEvent *event) * win); * gtk_container_add (GTK_CONTAINER (win), but); * - * gtk_widget_show_all (win); + * gtk_widget_show (win); * * gtk_main (); * diff --git a/gtk/gtkmenubutton.c b/gtk/gtkmenubutton.c index 4534b4de5a..ddb17895d1 100644 --- a/gtk/gtkmenubutton.c +++ b/gtk/gtkmenubutton.c @@ -834,7 +834,7 @@ gtk_menu_button_set_menu_model (GtkMenuButton *menu_button, GtkWidget *menu; menu = gtk_menu_new_from_model (menu_model); - gtk_widget_show_all (menu); + gtk_widget_show (menu); gtk_menu_button_set_popup (menu_button, menu); } } diff --git a/gtk/gtkmenusectionbox.c b/gtk/gtkmenusectionbox.c index 77db0ccf88..b5608e94c3 100644 --- a/gtk/gtkmenusectionbox.c +++ b/gtk/gtkmenusectionbox.c @@ -533,8 +533,6 @@ gtk_menu_section_box_new_section (GtkMenuTrackerItem *item, separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); gtk_widget_set_valign (separator, GTK_ALIGN_CENTER); gtk_box_pack_start (GTK_BOX (box->separator), separator, TRUE, TRUE); - - gtk_widget_show_all (box->separator); } else { diff --git a/gtk/gtkmenutoolbutton.c b/gtk/gtkmenutoolbutton.c index 847d893a3c..4f498c57a6 100644 --- a/gtk/gtkmenutoolbutton.c +++ b/gtk/gtkmenutoolbutton.c @@ -167,7 +167,6 @@ gtk_menu_tool_button_construct_contents (GtkMenuToolButton *button) priv->box = box; gtk_container_add (GTK_CONTAINER (button), priv->box); - gtk_widget_show_all (priv->box); gtk_widget_queue_resize (GTK_WIDGET (button)); } @@ -292,8 +291,6 @@ gtk_menu_tool_button_init (GtkMenuToolButton *button) /* the arrow button is insentive until we set a menu */ gtk_widget_set_sensitive (arrow_button, FALSE); - gtk_widget_show_all (box); - gtk_container_add (GTK_CONTAINER (button), box); gtk_menu_button_set_align_widget (GTK_MENU_BUTTON (arrow_button), GTK_WIDGET (button)); diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c index d4f55d9478..8119094bcf 100644 --- a/gtk/gtkmountoperation.c +++ b/gtk/gtkmountoperation.c @@ -724,7 +724,7 @@ gtk_mount_operation_ask_password_do_gtk (GtkMountOperation *operation, else if (priv->screen) gtk_window_set_screen (GTK_WINDOW (dialog), priv->screen); - gtk_widget_show_all (GTK_WIDGET (dialog)); + gtk_widget_show (GTK_WIDGET (dialog)); g_object_ref (operation); } @@ -1270,7 +1270,7 @@ on_end_process_activated (GtkMenuItem *item, "%s", error->message); - gtk_widget_show_all (dialog); + gtk_widget_show (dialog); response = gtk_dialog_run (GTK_DIALOG (dialog)); /* GTK_RESPONSE_NONE means the dialog were programmatically destroy, e.g. that @@ -1304,7 +1304,7 @@ do_popup_menu_for_process_tree_view (GtkWidget *widget, G_CALLBACK (on_end_process_activated), op); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); - gtk_widget_show_all (menu); + gtk_widget_show (menu); if (event && gdk_event_triggers_context_menu (event)) { @@ -1591,7 +1591,7 @@ gtk_mount_operation_show_processes_do_gtk (GtkMountOperation *op, if (dialog != NULL) { - gtk_widget_show_all (dialog); + gtk_widget_show (dialog); } } diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c index fdb422351e..b3f102f253 100644 --- a/gtk/gtkpathbar.c +++ b/gtk/gtkpathbar.c @@ -702,7 +702,7 @@ gtk_path_bar_size_allocate (GtkWidget *widget, gtk_widget_size_allocate (path_bar->priv->up_slider_button, &child_allocation); gtk_widget_set_child_visible (path_bar->priv->up_slider_button, TRUE); - gtk_widget_show_all (path_bar->priv->up_slider_button); + gtk_widget_show (path_bar->priv->up_slider_button); if (direction == GTK_TEXT_DIR_LTR) down_slider_offset += path_bar->priv->slider_width; @@ -720,7 +720,7 @@ gtk_path_bar_size_allocate (GtkWidget *widget, gtk_widget_size_allocate (path_bar->priv->down_slider_button, &child_allocation); gtk_widget_set_child_visible (path_bar->priv->down_slider_button, TRUE); - gtk_widget_show_all (path_bar->priv->down_slider_button); + gtk_widget_show (path_bar->priv->down_slider_button); gtk_path_bar_update_slider_buttons (path_bar); } else @@ -1494,7 +1494,6 @@ make_directory_button (GtkPathBar *path_bar, button_data->file_is_hidden = file_is_hidden; gtk_container_add (GTK_CONTAINER (button_data->button), child); - gtk_widget_show_all (button_data->button); gtk_path_bar_update_button_appearance (path_bar, button_data, current_dir); diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index 07a7250017..0665ae1375 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -473,7 +473,6 @@ add_place (GtkPlacesSidebar *sidebar, G_CALLBACK (on_button_release_event), row); gtk_container_add (GTK_CONTAINER (sidebar->list_box), GTK_WIDGET (row)); - gtk_widget_show_all (row); return row; } @@ -1334,7 +1333,7 @@ update_places (GtkPlacesSidebar *sidebar) g_object_unref (icon); } - gtk_widget_show_all (GTK_WIDGET (sidebar)); + gtk_widget_show (GTK_WIDGET (sidebar)); /* We want this hidden by default, but need to do it after the show_all call */ gtk_sidebar_row_hide (GTK_SIDEBAR_ROW (sidebar->new_bookmark_row), TRUE); @@ -1575,7 +1574,7 @@ drag_begin_callback (GtkWidget *widget, gtk_widget_set_size_request (window, allocation.width, allocation.height); gtk_container_add (GTK_CONTAINER (window), drag_widget); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_widget_set_opacity (window, 0.8); gtk_drag_set_icon_widget (context, @@ -2506,7 +2505,6 @@ create_rename_popover (GtkPlacesSidebar *sidebar) gtk_grid_attach (GTK_GRID (grid), entry, 0, 1, 1, 1); gtk_grid_attach (GTK_GRID (grid), button,1, 1, 1, 1); gtk_grid_attach (GTK_GRID (grid), error, 0, 2, 2, 1); - gtk_widget_show_all (grid); gtk_popover_set_default_widget (GTK_POPOVER (popover), button); sidebar->rename_popover = popover; diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c index 2275809fba..fe2aade66a 100644 --- a/gtk/gtkplacesview.c +++ b/gtk/gtkplacesview.c @@ -613,8 +613,6 @@ populate_servers (GtkPlacesView *view) G_CALLBACK (on_remove_server_button_clicked), data); - gtk_widget_show_all (row); - g_free (name); } @@ -886,14 +884,14 @@ update_network_state (GtkPlacesView *view) * otherwise just show the spinner in the header */ if (!has_networks (view)) { - gtk_widget_show_all (priv->network_placeholder); + gtk_widget_show (priv->network_placeholder); gtk_label_set_text (GTK_LABEL (priv->network_placeholder_label), _("Searching for network locations")); } } else if (!has_networks (view)) { - gtk_widget_show_all (priv->network_placeholder); + gtk_widget_show (priv->network_placeholder); gtk_label_set_text (GTK_LABEL (priv->network_placeholder_label), _("No network locations found")); } @@ -2037,7 +2035,6 @@ listbox_header_func (GtkListBoxRow *row, } gtk_container_add (GTK_CONTAINER (header), separator); - gtk_widget_show_all (header); gtk_list_box_row_set_header (row, header); diff --git a/gtk/gtkprintbackend.c b/gtk/gtkprintbackend.c index 79581ac3ba..5440fd6ba9 100644 --- a/gtk/gtkprintbackend.c +++ b/gtk/gtkprintbackend.c @@ -852,7 +852,7 @@ request_password (GtkPrintBackend *backend, g_signal_connect (G_OBJECT (dialog), "response", G_CALLBACK (password_dialog_response), backend); - gtk_widget_show_all (dialog); + gtk_widget_show (dialog); } void diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c index d38fe95d91..b351227d6b 100644 --- a/gtk/gtkradiobutton.c +++ b/gtk/gtkradiobutton.c @@ -117,7 +117,7 @@ * gtk_box_pack_start (GTK_BOX (box), radio1, TRUE, TRUE, 2); * gtk_box_pack_start (GTK_BOX (box), radio2, TRUE, TRUE, 2); * gtk_container_add (GTK_CONTAINER (window), box); - * gtk_widget_show_all (window); + * gtk_widget_show (window); * return; * } * ]| diff --git a/gtk/gtkrecentchoosermenu.c b/gtk/gtkrecentchoosermenu.c index 82f59be4d8..4d30091917 100644 --- a/gtk/gtkrecentchoosermenu.c +++ b/gtk/gtkrecentchoosermenu.c @@ -828,7 +828,6 @@ gtk_recent_chooser_menu_create_item (GtkRecentChooserMenu *menu, item = gtk_menu_item_new (); gtk_container_add (GTK_CONTAINER (box), label); - gtk_widget_show_all (box); gtk_container_add (GTK_CONTAINER (item), box); g_signal_connect (item, "activate", diff --git a/gtk/gtksidebarrow.c b/gtk/gtksidebarrow.c index f8e25b44ab..d60ef4db62 100644 --- a/gtk/gtksidebarrow.c +++ b/gtk/gtksidebarrow.c @@ -261,7 +261,7 @@ on_child_revealed (GObject *self, void gtk_sidebar_row_reveal (GtkSidebarRow *self) { - gtk_widget_show_all (GTK_WIDGET (self)); + gtk_widget_show (GTK_WIDGET (self)); gtk_revealer_set_reveal_child (GTK_REVEALER (self->revealer), TRUE); } diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c index 4fbb655ec6..c0babe6dc4 100644 --- a/gtk/gtkspinbutton.c +++ b/gtk/gtkspinbutton.c @@ -139,7 +139,7 @@ * button = gtk_spin_button_new (adjustment, 1.0, 0); * gtk_container_add (GTK_CONTAINER (window), button); * - * gtk_widget_show_all (window); + * gtk_widget_show (window); * } * ]| * @@ -170,7 +170,7 @@ * button = gtk_spin_button_new (adjustment, 0.001, 3); * gtk_container_add (GTK_CONTAINER (window), button); * - * gtk_widget_show_all (window); + * gtk_widget_show (window); * } * ]| */ diff --git a/gtk/gtkstackswitcher.c b/gtk/gtkstackswitcher.c index fb8a9a95d6..723900ed7f 100644 --- a/gtk/gtkstackswitcher.c +++ b/gtk/gtkstackswitcher.c @@ -154,7 +154,6 @@ rebuild_child (GtkWidget *self, if (button_child) { gtk_widget_set_halign (GTK_WIDGET (button_child), GTK_ALIGN_CENTER); - gtk_widget_show_all (button_child); gtk_container_add (GTK_CONTAINER (self), button_child); } } diff --git a/gtk/gtktogglebutton.c b/gtk/gtktogglebutton.c index cb6394c46d..3a20c778e3 100644 --- a/gtk/gtktogglebutton.c +++ b/gtk/gtktogglebutton.c @@ -96,7 +96,7 @@ * gtk_box_pack_start (GTK_BOX (content_area), * toggle2, FALSE, FALSE, 2); * - * gtk_widget_show_all (dialog); + * gtk_widget_show (dialog); * } * ]| */ diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c index c8000779a3..8e8d9e0c0d 100644 --- a/gtk/gtktoolbar.c +++ b/gtk/gtktoolbar.c @@ -2473,7 +2473,7 @@ show_menu (GtkToolbar *toolbar, rebuild_menu (toolbar); - gtk_widget_show_all (GTK_WIDGET (priv->menu)); + gtk_widget_show (GTK_WIDGET (priv->menu)); switch (priv->orientation) { diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c index ffdcd9af25..75c128e428 100644 --- a/gtk/gtktoolitemgroup.c +++ b/gtk/gtktoolitemgroup.c @@ -406,7 +406,6 @@ gtk_tool_item_group_init (GtkToolItemGroup *group) frame = gtk_frame_new (NULL); gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_NONE); gtk_container_add (GTK_CONTAINER (frame), priv->label_widget); - gtk_widget_show_all (frame); priv->header = gtk_button_new (); g_object_ref_sink (priv->header); diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 00188ec662..7811a0ab40 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -4194,9 +4194,7 @@ gtk_widget_destroyed (GtkWidget *widget, * @widget: a #GtkWidget * * Flags a widget to be displayed. Any widget that isn’t shown will - * not appear on the screen. If you want to show all the widgets in a - * container, it’s easier to call gtk_widget_show_all() on the - * container, instead of individually showing the widgets. + * not appear on the screen. * * Remember that you have to show the containers containing a widget, * in addition to the widget itself, before it will appear onscreen. @@ -4385,19 +4383,6 @@ gtk_widget_hide_on_delete (GtkWidget *widget) } /** - * gtk_widget_show_all: - * @widget: a #GtkWidget - * - * Recursively shows a widget, and any child widgets (if the widget is - * a container). - **/ -void -gtk_widget_show_all (GtkWidget *widget) -{ - gtk_widget_show (widget); -} - -/** * gtk_widget_map: * @widget: a #GtkWidget * diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h index 67622c1944..8e6e1dd3b6 100644 --- a/gtk/gtkwidget.h +++ b/gtk/gtkwidget.h @@ -509,8 +509,6 @@ void gtk_widget_hide (GtkWidget *widget); GDK_AVAILABLE_IN_ALL void gtk_widget_show_now (GtkWidget *widget); GDK_AVAILABLE_IN_ALL -void gtk_widget_show_all (GtkWidget *widget); -GDK_AVAILABLE_IN_ALL void gtk_widget_set_no_show_all (GtkWidget *widget, gboolean no_show_all); GDK_AVAILABLE_IN_ALL diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index ee9798ec9b..66e804ce06 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -5869,7 +5869,6 @@ create_decoration (GtkWidget *widget) { priv->titlebar = create_titlebar (window); gtk_widget_set_parent (priv->titlebar, widget); - gtk_widget_show_all (priv->titlebar); priv->title_box = priv->titlebar; } diff --git a/gtk/inspector/action-editor.c b/gtk/inspector/action-editor.c index d1fb99227a..a9eff81274 100644 --- a/gtk/inspector/action-editor.c +++ b/gtk/inspector/action-editor.c @@ -115,8 +115,6 @@ variant_editor_new (const GVariantType *type, d->editor = editor; g_object_set_data_full (G_OBJECT (editor), "callback", d, g_free); - gtk_widget_show_all (editor); - return editor; } @@ -312,8 +310,6 @@ constructed (GObject *object) G_CALLBACK (action_enabled_changed_cb), r); g_signal_connect (r->priv->group, "action-state-changed", G_CALLBACK (action_state_changed_cb), r); - - gtk_widget_show_all (GTK_WIDGET (r)); } static void diff --git a/gtk/inspector/general.c b/gtk/inspector/general.c index 04df6500e6..6a7bd4e3a0 100644 --- a/gtk/inspector/general.c +++ b/gtk/inspector/general.c @@ -149,7 +149,6 @@ add_check_row (GtkInspectorGeneral *gen, row = gtk_list_box_row_new (); gtk_container_add (GTK_CONTAINER (row), box); gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (row), FALSE); - gtk_widget_show_all (row); gtk_list_box_insert (list, row, -1); @@ -189,7 +188,6 @@ add_label_row (GtkInspectorGeneral *gen, row = gtk_list_box_row_new (); gtk_container_add (GTK_CONTAINER (row), box); gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (row), FALSE); - gtk_widget_show_all (row); gtk_list_box_insert (GTK_LIST_BOX (list), row, -1); diff --git a/gtk/inspector/prop-editor.c b/gtk/inspector/prop-editor.c index 823efdb9c5..e1f1452435 100644 --- a/gtk/inspector/prop-editor.c +++ b/gtk/inspector/prop-editor.c @@ -1239,7 +1239,6 @@ attribute_editor (GObject *object, G_CALLBACK (attribute_mapping_changed), editor); gtk_container_add (GTK_CONTAINER (box), combo); gtk_container_add (GTK_CONTAINER (vbox), box); - gtk_widget_show_all (vbox); return vbox; } @@ -1337,7 +1336,6 @@ action_editor (GObject *object, G_CALLBACK (show_action_owner), editor); gtk_container_add (GTK_CONTAINER (box), button); gtk_container_add (GTK_CONTAINER (vbox), box); - gtk_widget_show_all (vbox); } return vbox; @@ -1448,7 +1446,6 @@ add_binding_info (GtkInspectorPropEditor *editor) G_CALLBACK (binding_object_properties), editor); gtk_container_add (GTK_CONTAINER (row), button); - gtk_widget_show_all (row); gtk_container_add (GTK_CONTAINER (editor), row); } } @@ -1574,7 +1571,6 @@ add_settings_info (GtkInspectorPropEditor *editor) gtk_container_add (GTK_CONTAINER (row), label); g_free (str); - gtk_widget_show_all (row); gtk_container_add (GTK_CONTAINER (editor), row); } @@ -1632,7 +1628,6 @@ add_gtk_settings_info (GtkInspectorPropEditor *editor) } gtk_container_add (GTK_CONTAINER (row), gtk_label_new (source)); - gtk_widget_show_all (row); gtk_container_add (GTK_CONTAINER (editor), row); } diff --git a/gtk/inspector/size-groups.c b/gtk/inspector/size-groups.c index 8db1d35803..e77dda193b 100644 --- a/gtk/inspector/size-groups.c +++ b/gtk/inspector/size-groups.c @@ -247,8 +247,6 @@ add_size_group (GtkInspectorSizeGroups *sl, widgets = gtk_size_group_get_widgets (group); for (l = widgets; l; l = l->next) add_widget (sl, GTK_LIST_BOX (listbox), GTK_WIDGET (l->data)); - - gtk_widget_show_all (frame); } void diff --git a/tests/animated-resizing.c b/tests/animated-resizing.c index 5f686cef59..939840c8b3 100644 --- a/tests/animated-resizing.c +++ b/tests/animated-resizing.c @@ -212,7 +212,7 @@ main(int argc, char **argv) monitor_bounds.x + (monitor_bounds.width - window_width) / 2, monitor_bounds.y + (monitor_bounds.height - window_height) / 2); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/animated-revealing.c b/tests/animated-revealing.c index febfc00262..72e28459f4 100644 --- a/tests/animated-revealing.c +++ b/tests/animated-revealing.c @@ -68,7 +68,7 @@ main(int argc, char **argv) } } - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/listmodel.c b/tests/listmodel.c index 1d98bc7fba..c1bd0f933d 100644 --- a/tests/listmodel.c +++ b/tests/listmodel.c @@ -224,7 +224,7 @@ main (int argc, char *argv[]) g_signal_connect (button, "clicked", G_CALLBACK (remove_some), store); gtk_grid_attach (GTK_GRID (grid), button, 0, 2, 1, 1); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/motion-compression.c b/tests/motion-compression.c index a49147ce60..8521dd92e1 100644 --- a/tests/motion-compression.c +++ b/tests/motion-compression.c @@ -69,7 +69,7 @@ main (int argc, char **argv) g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); return 0; diff --git a/tests/overlayscroll.c b/tests/overlayscroll.c index e1ec8b8272..2e7d3bfd13 100644 --- a/tests/overlayscroll.c +++ b/tests/overlayscroll.c @@ -90,7 +90,7 @@ main (int argc, char *argv[]) sb2 = gtk_scrollbar_new (GTK_ORIENTATION_VERTICAL, adj); gtk_container_add (GTK_CONTAINER (box), sb2); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/print-editor.c b/tests/print-editor.c index cf79140f6b..c55978969a 100644 --- a/tests/print-editor.c +++ b/tests/print-editor.c @@ -772,7 +772,7 @@ activate (GApplication *app) update_ui (); - gtk_widget_show_all (main_window); + gtk_widget_show (main_window); } int diff --git a/tests/scrolling-performance.c b/tests/scrolling-performance.c index 99b0fa47d9..bfba4acc74 100644 --- a/tests/scrolling-performance.c +++ b/tests/scrolling-performance.c @@ -140,7 +140,7 @@ main (int argc, char **argv) NULL, NULL); - gtk_widget_show_all (window); + gtk_widget_show (window); g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); gtk_main (); diff --git a/tests/stresstest-toolbar.c b/tests/stresstest-toolbar.c index bab169f76b..8bce079719 100644 --- a/tests/stresstest-toolbar.c +++ b/tests/stresstest-toolbar.c @@ -37,7 +37,6 @@ add_random (GtkToolbar *toolbar, gint n) gtk_tool_item_set_tooltip_text (toolitem, "Bar"); g_free (label); - gtk_widget_show_all (GTK_WIDGET (toolitem)); n_items = gtk_toolbar_get_n_items (toolbar); if (n_items == 0) @@ -145,7 +144,7 @@ main (gint argc, gchar **argv) gdk_threads_add_idle (stress_test_old_api, &info); - gtk_widget_show_all (GTK_WIDGET (info.window)); + gtk_widget_show (GTK_WIDGET (info.window)); gtk_main (); diff --git a/tests/syncscroll.c b/tests/syncscroll.c index 7797194edf..7062efa8fb 100644 --- a/tests/syncscroll.c +++ b/tests/syncscroll.c @@ -61,7 +61,7 @@ main (int argc, char *argv[]) gtk_container_add (GTK_CONTAINER (box), sb); - gtk_widget_show_all (win); + gtk_widget_show (win); gtk_main (); diff --git a/tests/testaccel.c b/tests/testaccel.c index 4f5c1fc4b4..712d3eca54 100644 --- a/tests/testaccel.c +++ b/tests/testaccel.c @@ -125,7 +125,7 @@ main (gint argc, gchar **argv) dialog = key_test (); - gtk_widget_show_all (dialog); + gtk_widget_show (dialog); gtk_main (); diff --git a/tests/testactionbar.c b/tests/testactionbar.c index b99ce8f95c..6b1eb6046a 100644 --- a/tests/testactionbar.c +++ b/tests/testactionbar.c @@ -149,7 +149,7 @@ activate (GApplication *gapp) gtk_box_pack_end (GTK_BOX (box), bar, FALSE, FALSE); gtk_container_add (GTK_CONTAINER (window), box); - gtk_widget_show_all (window); + gtk_widget_show (window); } int diff --git a/tests/testadjustsize.c b/tests/testadjustsize.c index ac4fddbe6e..160d6a5ee6 100644 --- a/tests/testadjustsize.c +++ b/tests/testadjustsize.c @@ -92,7 +92,7 @@ open_test_window (void) gtk_grid_attach (GTK_GRID (grid), test_widgets[i], i % 3, i / 3, 1, 1); } - gtk_widget_show_all (test_window); + gtk_widget_show (test_window); } static void @@ -160,7 +160,7 @@ open_control_window (void) gtk_container_add (GTK_CONTAINER (box), toggle); - gtk_widget_show_all (window); + gtk_widget_show (window); } #define TEST_WIDGET(outer) (gtk_bin_get_child (GTK_BIN (gtk_bin_get_child (GTK_BIN(outer))))) @@ -192,8 +192,6 @@ create_widget_visible_border (const char *text) g_assert (TEST_WIDGET (outer_box) == test_widget); - gtk_widget_show_all (outer_box); - return outer_box; } @@ -268,7 +266,7 @@ open_alignment_window (void) } } - gtk_widget_show_all (test_window); + gtk_widget_show (test_window); } static GtkWidget* @@ -320,7 +318,7 @@ open_margin_window (void) gtk_container_add (GTK_CONTAINER (box), child); } - gtk_widget_show_all (test_window); + gtk_widget_show (test_window); } static void diff --git a/tests/testanimation.c b/tests/testanimation.c index 8c039516ae..a42d856c16 100644 --- a/tests/testanimation.c +++ b/tests/testanimation.c @@ -354,7 +354,7 @@ do_image (const char *filename) g_signal_connect (window, "delete_event", G_CALLBACK (gtk_main_quit), NULL); - gtk_widget_show_all (window); + gtk_widget_show (window); return window; } @@ -401,7 +401,7 @@ do_nonprogressive (const gchar *filename) g_signal_connect (window, "delete_event", G_CALLBACK (gtk_main_quit), NULL); - gtk_widget_show_all (window); + gtk_widget_show (window); } int diff --git a/tests/testappchooser.c b/tests/testappchooser.c index f4c3ff0548..1030f92482 100644 --- a/tests/testappchooser.c +++ b/tests/testappchooser.c @@ -220,7 +220,7 @@ main (int argc, char **argv) gtk_container_add (GTK_CONTAINER (toplevel), grid); - gtk_widget_show_all (toplevel); + gtk_widget_show (toplevel); g_signal_connect (toplevel, "delete-event", G_CALLBACK (gtk_main_quit), NULL); diff --git a/tests/testappchooserbutton.c b/tests/testappchooserbutton.c index 6ff01d11f8..7d3ed69166 100644 --- a/tests/testappchooserbutton.c +++ b/tests/testappchooserbutton.c @@ -126,7 +126,7 @@ main (int argc, gtk_app_chooser_button_set_active_custom_item (GTK_APP_CHOOSER_BUTTON (combobox), CUSTOM_ITEM); #endif - gtk_widget_show_all (toplevel); + gtk_widget_show (toplevel); g_signal_connect (toplevel, "delete-event", G_CALLBACK (gtk_main_quit), NULL); diff --git a/tests/testassistant.c b/tests/testassistant.c index fd4074bf67..fa966d892f 100644 --- a/tests/testassistant.c +++ b/tests/testassistant.c @@ -73,8 +73,7 @@ add_completion_test_page (GtkWidget *assistant, G_CALLBACK (complete_cb), pdata); - if (visible) - gtk_widget_show_all (page); + gtk_widget_set_visible (page, visible); gtk_assistant_append_page (GTK_ASSISTANT (assistant), page); gtk_assistant_set_page_title (GTK_ASSISTANT (assistant), page, text); @@ -294,7 +293,6 @@ create_generous_assistant (GtkWidget *widget) gtk_widget_set_valign (page, GTK_ALIGN_CENTER); gtk_widget_set_margin_start (page, 20); gtk_widget_set_margin_end (page, 20); - gtk_widget_show_all (page); gtk_assistant_append_page (GTK_ASSISTANT (assistant), page); gtk_assistant_set_page_title (GTK_ASSISTANT (assistant), page, "Progress"); gtk_assistant_set_page_type (GTK_ASSISTANT (assistant), page, GTK_ASSISTANT_PAGE_PROGRESS); @@ -388,7 +386,6 @@ create_nonlinear_assistant (GtkWidget *widget) gtk_box_pack_start (GTK_BOX (page), button, FALSE, FALSE); g_signal_connect (G_OBJECT (button), "toggled", G_CALLBACK (select_branch), GINT_TO_POINTER ('B')); - gtk_widget_show_all (page); gtk_assistant_append_page (GTK_ASSISTANT (assistant), page); gtk_assistant_set_page_title (GTK_ASSISTANT (assistant), page, "Page 1"); gtk_assistant_set_page_complete (GTK_ASSISTANT (assistant), page, TRUE); @@ -607,7 +604,7 @@ flip_pages (GtkButton *button, GtkAssistant *assistant) gtk_assistant_remove_page (assistant, 1); gtk_assistant_insert_page (assistant, page, 2); - gtk_widget_show_all (page); + gtk_widget_show (page); gtk_assistant_set_page_title (GTK_ASSISTANT (assistant), page, title); gtk_assistant_set_page_complete (GTK_ASSISTANT (assistant), page, TRUE); @@ -655,7 +652,6 @@ create_page_flipping_assistant (GtkWidget *widget) get_test_page ("Page 2"), TRUE, TRUE); - gtk_widget_show_all (page); gtk_assistant_append_page (GTK_ASSISTANT (assistant), page); gtk_assistant_set_page_title (GTK_ASSISTANT (assistant), page, "Page 2"); gtk_assistant_set_page_complete (GTK_ASSISTANT (assistant), page, TRUE); @@ -729,7 +725,7 @@ main (int argc, gchar *argv[]) gtk_box_pack_start (GTK_BOX (box), button, TRUE, TRUE); } - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); return 0; diff --git a/tests/testbaseline.c b/tests/testbaseline.c index d402665b7c..95b951602d 100644 --- a/tests/testbaseline.c +++ b/tests/testbaseline.c @@ -382,7 +382,7 @@ main (int argc, } } - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testbbox.c b/tests/testbbox.c index d137eb774c..5fc76db7bb 100644 --- a/tests/testbbox.c +++ b/tests/testbbox.c @@ -164,7 +164,7 @@ main (int argc, gtk_box_pack_start (GTK_BOX (hbox), option, FALSE, FALSE); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_widget_hide (vbbox); gtk_main (); diff --git a/tests/testbox.c b/tests/testbox.c index 1215d9c793..0a1b391bb7 100644 --- a/tests/testbox.c +++ b/tests/testbox.c @@ -93,8 +93,6 @@ edit_widget (GtkWidget *button) gtk_grid_attach (GTK_GRID (grid), label, 0, 3, 1, 1); gtk_grid_attach (GTK_GRID (grid), check, 1, 3, 1, 1); - gtk_widget_show_all (grid); - g_object_set_data (G_OBJECT (button), "dialog", dialog); } @@ -174,7 +172,7 @@ main (int argc, char *argv[]) gtk_box_pack_start (GTK_BOX (b), spin, FALSE, TRUE); gtk_container_add (GTK_CONTAINER (vbox), b); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testboxcss.c b/tests/testboxcss.c index 451dbf2f9f..3fee69534a 100644 --- a/tests/testboxcss.c +++ b/tests/testboxcss.c @@ -230,7 +230,7 @@ main (gint argc, gchar **argv) add_button (GTK_BOX (box)); add_button (GTK_BOX (box)); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testbuttons.c b/tests/testbuttons.c index 6c58cb3b70..d597e4be2c 100644 --- a/tests/testbuttons.c +++ b/tests/testbuttons.c @@ -113,7 +113,7 @@ int main (int argc, char *argv[]) g_free (text); gtk_container_add (GTK_CONTAINER (hbox), label); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testcairo.c b/tests/testcairo.c index e482bb33e9..08b4552927 100644 --- a/tests/testcairo.c +++ b/tests/testcairo.c @@ -203,7 +203,7 @@ main (int argc, char **argv) g_signal_connect (window, "destroy-event", G_CALLBACK (gtk_main_quit), NULL); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testcalendar.c b/tests/testcalendar.c index 4162a769d2..886e711c8a 100644 --- a/tests/testcalendar.c +++ b/tests/testcalendar.c @@ -694,7 +694,7 @@ create_calendar(void) gtk_widget_grab_default (button); gtk_window_set_default_size (GTK_WINDOW (window), 600, 0); - gtk_widget_show_all (window); + gtk_widget_show (window); } diff --git a/tests/testcellrenderertext.c b/tests/testcellrenderertext.c index 1c82eb8e15..9d295241ad 100644 --- a/tests/testcellrenderertext.c +++ b/tests/testcellrenderertext.c @@ -279,7 +279,7 @@ main (int argc, char **argv) tree = create_tree (TRUE); gtk_box_pack_start (GTK_BOX (vbox), tree, TRUE, TRUE); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); return 0; diff --git a/tests/testclipboard.c b/tests/testclipboard.c index 2ab4441ac2..29cc5b9be9 100644 --- a/tests/testclipboard.c +++ b/tests/testclipboard.c @@ -132,7 +132,7 @@ main (int argc, char **argv) update_display (); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testcolorchooser.c b/tests/testcolorchooser.c index 9457632a88..0a6fb1d5bc 100644 --- a/tests/testcolorchooser.c +++ b/tests/testcolorchooser.c @@ -94,7 +94,7 @@ main (int argc, char *argv[]) g_signal_connect (dialog, "notify::color", G_CALLBACK (color_changed), NULL); g_signal_connect (dialog, "response", G_CALLBACK (dialog_response), NULL); - gtk_widget_show_all (dialog); + gtk_widget_show (dialog); gtk_main (); diff --git a/tests/testcombo.c b/tests/testcombo.c index b374e19aae..f7befc3cdb 100644 --- a/tests/testcombo.c +++ b/tests/testcombo.c @@ -1412,7 +1412,7 @@ main (int argc, char **argv) gtk_combo_box_set_active (GTK_COMBO_BOX (combobox), 53); gtk_container_add (GTK_CONTAINER (tmp), combobox); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testcombochange.c b/tests/testcombochange.c index 4c8a8fa34f..fb4656af22 100644 --- a/tests/testcombochange.c +++ b/tests/testcombochange.c @@ -300,7 +300,7 @@ main (int argc, char **argv) gtk_box_pack_start (GTK_BOX (button_vbox), button, FALSE, FALSE); g_signal_connect (button, "clicked", G_CALLBACK (on_animate), NULL); - gtk_widget_show_all (dialog); + gtk_widget_show (dialog); gtk_dialog_run (GTK_DIALOG (dialog)); return 0; diff --git a/tests/testdnd.c b/tests/testdnd.c index 083d0e2dba..c93c2e9e7f 100644 --- a/tests/testdnd.c +++ b/tests/testdnd.c @@ -521,8 +521,6 @@ popup_cb (gpointer data) g_signal_connect (button, "drag_leave", G_CALLBACK (popup_leave), NULL); } - - gtk_widget_show_all (grid); gtk_container_add (GTK_CONTAINER (popup_window), grid); } @@ -672,7 +670,7 @@ main (int argc, char **argv) g_signal_connect (button, "drag_data_delete", G_CALLBACK (source_drag_data_delete), NULL); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testdnd2.c b/tests/testdnd2.c index 029c24d9f9..da5c7432f6 100644 --- a/tests/testdnd2.c +++ b/tests/testdnd2.c @@ -381,7 +381,7 @@ main (int argc, char *Argv[]) gtk_grid_attach (GTK_GRID (grid), make_image2 ("dialog-information", CENTER), 1, 3, 1, 1); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); return 0; diff --git a/tests/testellipsise.c b/tests/testellipsise.c index 7749c8675b..b2a9e8147d 100644 --- a/tests/testellipsise.c +++ b/tests/testellipsise.c @@ -167,7 +167,7 @@ main (int argc, char *argv[]) g_signal_connect (scale, "value-changed", G_CALLBACK (scale_changed_cb), label); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testemblems.c b/tests/testemblems.c index 171d2a7f3a..849d0cffbe 100644 --- a/tests/testemblems.c +++ b/tests/testemblems.c @@ -33,7 +33,7 @@ int main (int argc, char **argv) button = gtk_image_new_from_gicon (icon2, GTK_ICON_SIZE_MENU); gtk_grid_attach (GTK_GRID (grid), button, 2, 2, 1, 1); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testentrycompletion.c b/tests/testentrycompletion.c index 6bb4468da8..0ce5bf7220 100644 --- a/tests/testentrycompletion.c +++ b/tests/testentrycompletion.c @@ -405,7 +405,7 @@ main (int argc, char *argv[]) gtk_container_add (GTK_CONTAINER (vbox), entry); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testentryicons.c b/tests/testentryicons.c index d5b20d5b12..a6e21c060d 100644 --- a/tests/testentryicons.c +++ b/tests/testentryicons.c @@ -250,7 +250,7 @@ main (int argc, char **argv) g_signal_connect (button4, "toggled", G_CALLBACK (set_pixbuf), entry); gtk_container_add (GTK_CONTAINER (box), button4); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main(); diff --git a/tests/testexpand.c b/tests/testexpand.c index 750020bde1..88483d28c6 100644 --- a/tests/testexpand.c +++ b/tests/testexpand.c @@ -104,7 +104,7 @@ create_box_window (void) gtk_box_pack_start (GTK_BOX (box3), colorbox, FALSE, TRUE); gtk_container_add (GTK_CONTAINER (window), box1); - gtk_widget_show_all (window); + gtk_widget_show (window); } static void @@ -150,7 +150,7 @@ create_grid_window (void) gtk_grid_attach (GTK_GRID (grid), colorbox, 1, 2, 1, 1); gtk_container_add (GTK_CONTAINER (window), grid); - gtk_widget_show_all (window); + gtk_widget_show (window); } int diff --git a/tests/testexpander.c b/tests/testexpander.c index 286e479009..6852b2975c 100644 --- a/tests/testexpander.c +++ b/tests/testexpander.c @@ -73,7 +73,6 @@ main (int argc, char *argv[]) gtk_container_add (GTK_CONTAINER (sw), tv); gtk_container_add (GTK_CONTAINER (expander), sw); gtk_box_pack_end (GTK_BOX (area), expander, TRUE, TRUE); - gtk_widget_show_all (expander); g_signal_connect (expander, "notify::expanded", G_CALLBACK (expander_cb), dialog); diff --git a/tests/testfilechooser.c b/tests/testfilechooser.c index 5cb628a1e2..2906a2428f 100644 --- a/tests/testfilechooser.c +++ b/tests/testfilechooser.c @@ -699,7 +699,7 @@ main (int argc, char **argv) set_current_folder (GTK_FILE_CHOOSER (dialog), initial_folder); /* show_all() to reveal bugs in composite widget handling */ - gtk_widget_show_all (dialog); + gtk_widget_show (dialog); /* Extra controls for manipulating the test environment */ @@ -757,7 +757,7 @@ main (int argc, char **argv) g_signal_connect (button, "clicked", G_CALLBACK (unmap_and_remap_cb), dialog); - gtk_widget_show_all (control_window); + gtk_widget_show (control_window); g_object_ref (control_window); g_signal_connect (dialog, "destroy", diff --git a/tests/testfilechooserbutton.c b/tests/testfilechooserbutton.c index 74bc80a030..4bc2185190 100644 --- a/tests/testfilechooserbutton.c +++ b/tests/testfilechooserbutton.c @@ -318,7 +318,7 @@ main (int argc, g_object_unref (label_group); - gtk_widget_show_all (win); + gtk_widget_show (win); gtk_window_present (GTK_WINDOW (win)); gtk_main (); diff --git a/tests/testflowbox.c b/tests/testflowbox.c index 156a933d00..070eea37e4 100644 --- a/tests/testflowbox.c +++ b/tests/testflowbox.c @@ -104,8 +104,6 @@ populate_flowbox_focus (GtkFlowBox *flowbox) if (i % 5 == 0) gtk_container_add (GTK_CONTAINER (box), gtk_switch_new ()); - gtk_widget_show_all (frame); - gtk_container_add (GTK_CONTAINER (flowbox), frame); if (!sensitive) gtk_widget_set_sensitive (gtk_widget_get_parent (frame), FALSE); @@ -185,7 +183,6 @@ populate_flowbox_images (GtkFlowBox *flowbox) gtk_container_add (GTK_CONTAINER (widget), image); gtk_container_add (GTK_CONTAINER (widget), label); - gtk_widget_show_all (widget); if (text_orientation == GTK_ORIENTATION_VERTICAL) gtk_label_set_angle (GTK_LABEL (widget), 90); diff --git a/tests/testfontchooser.c b/tests/testfontchooser.c index 13d19b3b33..d89d1544d1 100644 --- a/tests/testfontchooser.c +++ b/tests/testfontchooser.c @@ -71,7 +71,7 @@ main (int argc, char *argv[]) gtk_container_add (GTK_CONTAINER (window), box); gtk_container_add (GTK_CONTAINER (box), fontchooser); - gtk_widget_show_all (window); + gtk_widget_show (window); g_signal_connect (window, "delete-event", G_CALLBACK (gtk_main_quit), NULL); diff --git a/tests/testfontchooserdialog.c b/tests/testfontchooserdialog.c index 43ecaf067d..4c31e29a58 100644 --- a/tests/testfontchooserdialog.c +++ b/tests/testfontchooserdialog.c @@ -96,7 +96,7 @@ main (int argc, char *argv[]) window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_add (GTK_CONTAINER (window), font_button); - gtk_widget_show_all (window); + gtk_widget_show (window); g_signal_connect (font_button, "notify::font", G_CALLBACK (notify_font_cb), NULL); diff --git a/tests/testfontoptions.c b/tests/testfontoptions.c index 5e29ebc046..4043146199 100644 --- a/tests/testfontoptions.c +++ b/tests/testfontoptions.c @@ -83,7 +83,7 @@ main (int argc, char *argv[]) gtk_combo_box_set_active (GTK_COMBO_BOX (subpixel), 0); gtk_combo_box_set_active (GTK_COMBO_BOX (hintstyle), 0); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testframe.c b/tests/testframe.c index 8d6ea09086..416380d4a6 100644 --- a/tests/testframe.c +++ b/tests/testframe.c @@ -199,7 +199,7 @@ int main (int argc, char **argv) gtk_spin_button_set_value (GTK_SPIN_BUTTON (yalign_spin), yalign); gtk_grid_attach (GTK_GRID (grid), yalign_spin, 1, 3, 1, 1); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testfullscreen.c b/tests/testfullscreen.c index 9059f3b077..7dbfbd4fba 100644 --- a/tests/testfullscreen.c +++ b/tests/testfullscreen.c @@ -66,7 +66,7 @@ main (int argc, char *argv[]) g_signal_connect (button, "clicked", G_CALLBACK (remove_fullscreen_cb), NULL); gtk_container_add (GTK_CONTAINER (vbox), button); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testgaction.c b/tests/testgaction.c index c45e3c45e3..6eacede580 100644 --- a/tests/testgaction.c +++ b/tests/testgaction.c @@ -142,7 +142,7 @@ int main (int argc, char **argv) - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); return 0; } diff --git a/tests/testgiconpixbuf.c b/tests/testgiconpixbuf.c index 5c406aac66..9deb53300e 100644 --- a/tests/testgiconpixbuf.c +++ b/tests/testgiconpixbuf.c @@ -61,7 +61,7 @@ main (int argc, gtk_label_set_label (GTK_LABEL (label), str); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE); - gtk_widget_show_all (toplevel); + gtk_widget_show (toplevel); g_signal_connect (toplevel, "delete-event", G_CALLBACK (gtk_main_quit), NULL); diff --git a/tests/testglblending.c b/tests/testglblending.c index d220ff8f03..25991c3c6a 100644 --- a/tests/testglblending.c +++ b/tests/testglblending.c @@ -85,7 +85,7 @@ main (int argc, char *argv[]) gtk_widget_set_size_request (spinner, 50, 50); gtk_fixed_put (GTK_FIXED (fixed), spinner, 110, 150); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testgmenu.c b/tests/testgmenu.c index a0943c9ceb..e5366aa247 100644 --- a/tests/testgmenu.c +++ b/tests/testgmenu.c @@ -689,7 +689,7 @@ main (int argc, char *argv[]) gtk_container_add (GTK_CONTAINER (box), button); } - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testgrid.c b/tests/testgrid.c index eb0af50a78..78ded8663f 100644 --- a/tests/testgrid.c +++ b/tests/testgrid.c @@ -79,7 +79,7 @@ simple_grid (void) g_assert (gtk_grid_get_child_at (GTK_GRID (grid), -1, 0) == test6); g_assert (gtk_grid_get_child_at (GTK_GRID (grid), -1, 1) == test6); g_assert (gtk_grid_get_child_at (GTK_GRID (grid), -1, 2) == NULL); - gtk_widget_show_all (window); + gtk_widget_show (window); } static void @@ -121,7 +121,7 @@ text_grid (void) gtk_label_set_width_chars (GTK_LABEL (label), 10); gtk_grid_attach (GTK_GRID (grid), label, 1, 1, 1, 1); - gtk_widget_show_all (window); + gtk_widget_show (window); } static void @@ -186,7 +186,7 @@ box_comparison (void) gtk_container_add (GTK_CONTAINER (vbox), gtk_separator_new (GTK_ORIENTATION_HORIZONTAL)); gtk_container_add (GTK_CONTAINER (vbox), gtk_label_new ("Below")); - gtk_widget_show_all (window); + gtk_widget_show (window); } static void @@ -214,7 +214,7 @@ empty_line (void) gtk_grid_attach (GTK_GRID (grid), test_widget ("(10, 0)", "green"), 10, 0, 1, 1); gtk_grid_attach (GTK_GRID (grid), test_widget ("(10, 1)", "magenta"), 10, 1, 1, 1); - gtk_widget_show_all (window); + gtk_widget_show (window); } static void @@ -238,7 +238,7 @@ empty_grid (void) gtk_widget_set_hexpand (child, TRUE); gtk_widget_set_vexpand (child, TRUE); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_widget_hide (child); } @@ -287,7 +287,7 @@ scrolling (void) g_free (color); } - gtk_widget_show_all (window); + gtk_widget_show (window); } static void @@ -332,7 +332,7 @@ insert_cb (GtkButton *button, GtkWidget *window) gtk_grid_attach (g4, test_widget ("(1, 0)", "red"), 1, 0, 1, 1); gtk_grid_attach (g4, test_widget ("(1, 2)", "red"), 1, 2, 1, 1); - gtk_widget_show_all (GTK_WIDGET (g)); + gtk_widget_show (GTK_WIDGET (g)); } gtk_button_set_label (button, inserted ? "Insert" : "Remove"); @@ -398,7 +398,7 @@ insert (void) g_signal_connect (button, "clicked", G_CALLBACK (insert_cb), window); gtk_grid_attach (GTK_GRID (g), button, 0, 2, 2, 1); - gtk_widget_show_all (window); + gtk_widget_show (window); } static void @@ -447,7 +447,7 @@ spanning_grid (void) c = test_widget ("7", "cyan"); gtk_grid_attach (GTK_GRID (g), c, 1, 0, 1, 1); - gtk_widget_show_all (window); + gtk_widget_show (window); } int diff --git a/tests/testgrouping.c b/tests/testgrouping.c index 01f4a83f08..ff6b564e74 100644 --- a/tests/testgrouping.c +++ b/tests/testgrouping.c @@ -147,7 +147,7 @@ main (int argc, char **argv) NULL); gtk_tree_view_insert_column (GTK_TREE_VIEW (tv), column, 0); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testgtk.c b/tests/testgtk.c index 7e08e27dcb..f96812572e 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -286,7 +286,7 @@ create_alpha_window (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -376,7 +376,7 @@ create_buttons (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -441,7 +441,7 @@ create_toggle_buttons (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -557,7 +557,7 @@ create_check_buttons (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -650,7 +650,7 @@ create_radio_buttons (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -776,7 +776,7 @@ create_button_box (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -981,7 +981,7 @@ create_statusbar (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -1087,7 +1087,7 @@ create_alpha_widgets (GtkWidget *widget) g_signal_connect (scale, "value_changed", G_CALLBACK (alpha_changed), alpha3); gtk_range_set_value (GTK_RANGE (scale), 50); - gtk_widget_show_all (main_hbox); + gtk_widget_show (main_hbox); } if (!gtk_widget_get_visible (window)) @@ -1123,7 +1123,7 @@ create_sensitivity_control (GtkWidget *widget) G_CALLBACK (sensitivity_toggled), widget); - gtk_widget_show_all (button); + gtk_widget_show (button); return button; } @@ -1176,7 +1176,7 @@ create_selectable_control (GtkWidget *widget) G_CALLBACK (selectable_toggled), widget); - gtk_widget_show_all (button); + gtk_widget_show (button); return button; } @@ -1380,7 +1380,7 @@ void create_labels (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -1447,7 +1447,7 @@ create_rotated_label (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -1564,7 +1564,7 @@ create_rotated_text (GtkWidget *widget) g_signal_connect (drawing_area, "unrealize", G_CALLBACK (on_rotated_text_unrealize), NULL); - gtk_widget_show_all (gtk_bin_get_child (GTK_BIN (window))); + gtk_widget_show (gtk_bin_get_child (GTK_BIN (window))); gtk_widget_set_size_request (drawing_area, DEFAULT_TEXT_RADIUS * 2, DEFAULT_TEXT_RADIUS * 2); gtk_widget_get_preferred_size ( (window), @@ -1700,7 +1700,7 @@ create_reparent (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -1835,7 +1835,7 @@ create_saved_position (GtkWidget *widget) gtk_widget_set_can_default (button, TRUE); gtk_widget_grab_default (button); - gtk_widget_show_all (window); + gtk_widget_show (window); } else gtk_widget_destroy (window); @@ -1920,7 +1920,7 @@ create_pixbuf (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -2017,7 +2017,7 @@ create_tooltips (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -2081,7 +2081,7 @@ create_image (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -2249,7 +2249,7 @@ create_listbox (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -2756,7 +2756,7 @@ create_key_lookup (GtkWidget *widget) g_object_add_weak_pointer (G_OBJECT (window), window_ptr); g_signal_connect (window, "response", G_CALLBACK (gtk_widget_destroy), NULL); - gtk_widget_show_all (window); + gtk_widget_show (window); } else gtk_widget_destroy (window); @@ -2870,7 +2870,7 @@ create_modal_window (GtkWidget *widget) G_CALLBACK (cmw_file), window); /* Show widgets */ - gtk_widget_show_all (window); + gtk_widget_show (window); /* wait until dialog get destroyed */ gtk_main(); @@ -3265,7 +3265,7 @@ create_entry (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -3303,7 +3303,7 @@ create_expander (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -3442,7 +3442,7 @@ create_event_box (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -3621,9 +3621,9 @@ create_size_groups (GtkWidget *widget) else { if (!gtk_widget_get_visible (window1)) - gtk_widget_show_all (window1); + gtk_widget_show (window1); if (!gtk_widget_get_visible (window2)) - gtk_widget_show_all (window2); + gtk_widget_show (window2); } } @@ -4007,7 +4007,7 @@ create_spins (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -4382,7 +4382,7 @@ create_cursors (GtkWidget *widget) window); gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_entry_set_text (GTK_ENTRY (entry), "arrow"); } @@ -4427,7 +4427,7 @@ create_color_selection (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -4565,7 +4565,7 @@ create_flipping (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -4669,7 +4669,7 @@ create_focus (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -4711,7 +4711,7 @@ create_font_selection (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -4924,7 +4924,7 @@ create_display_screen (GtkWidget *widget) G_CALLBACK (screen_display_destroy_diag), window); g_signal_connect (applyb, "clicked", G_CALLBACK (screen_display_check), scr_dpy_data); - gtk_widget_show_all (window); + gtk_widget_show (window); } /* Event Watcher @@ -5294,7 +5294,7 @@ create_pages (GtkNotebook *notebook, gint start, gint end) G_CALLBACK (gtk_widget_hide), child); - gtk_widget_show_all (child); + gtk_widget_show (child); label_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); pixwid = gtk_image_new_from_pixbuf (book_closed); @@ -5307,7 +5307,7 @@ create_pages (GtkNotebook *notebook, gint start, gint end) gtk_widget_set_margin_top (pixwid, 1); label = gtk_label_new_with_mnemonic (accel_buffer); gtk_box_pack_start (GTK_BOX (label_box), label, FALSE, TRUE); - gtk_widget_show_all (label_box); + gtk_widget_show (label_box); menu_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); @@ -5321,7 +5321,7 @@ create_pages (GtkNotebook *notebook, gint start, gint end) gtk_widget_set_margin_top (pixwid, 1); label = gtk_label_new (buffer); gtk_box_pack_start (GTK_BOX (menu_box), label, FALSE, TRUE); - gtk_widget_show_all (menu_box); + gtk_widget_show (menu_box); gtk_notebook_append_page_menu (notebook, child, label_box, menu_box); } @@ -5520,7 +5520,7 @@ create_notebook (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -5676,7 +5676,7 @@ create_panes (GtkWidget *widget) "Bottom"), FALSE, FALSE); - gtk_widget_show_all (vbox); + gtk_widget_show (vbox); } if (!gtk_widget_get_visible (window)) @@ -6042,22 +6042,22 @@ create_paned_keyboard_navigation (GtkWidget *widget) if (gtk_widget_get_visible (window1)) gtk_widget_destroy (GTK_WIDGET (window1)); else - gtk_widget_show_all (GTK_WIDGET (window1)); + gtk_widget_show (GTK_WIDGET (window1)); if (gtk_widget_get_visible (window2)) gtk_widget_destroy (GTK_WIDGET (window2)); else - gtk_widget_show_all (GTK_WIDGET (window2)); + gtk_widget_show (GTK_WIDGET (window2)); if (gtk_widget_get_visible (window3)) gtk_widget_destroy (GTK_WIDGET (window3)); else - gtk_widget_show_all (GTK_WIDGET (window3)); + gtk_widget_show (GTK_WIDGET (window3)); if (gtk_widget_get_visible (window4)) gtk_widget_destroy (GTK_WIDGET (window4)); else - gtk_widget_show_all (GTK_WIDGET (window4)); + gtk_widget_show (GTK_WIDGET (window4)); } @@ -6483,7 +6483,7 @@ tracking_label (GtkWidget *window) G_CONNECT_SWAPPED); gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, FALSE); - gtk_widget_show_all (hbox); + gtk_widget_show (hbox); return hbox; } @@ -6604,7 +6604,7 @@ get_state_controls (GtkWidget *window) G_CONNECT_SWAPPED); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE); - gtk_widget_show_all (vbox); + gtk_widget_show (vbox); return vbox; } @@ -6668,9 +6668,9 @@ create_window_states (GtkWidget *widget) label = tracking_label (normal); gtk_container_add (GTK_CONTAINER (box1), label); - gtk_widget_show_all (iconified); - gtk_widget_show_all (normal); - gtk_widget_show_all (box1); + gtk_widget_show (iconified); + gtk_widget_show (normal); + gtk_widget_show (box1); } if (!gtk_widget_get_visible (window)) @@ -7016,7 +7016,7 @@ window_controls (GtkWidget *window) gtk_box_pack_end (GTK_BOX (vbox), om, FALSE, FALSE); - gtk_widget_show_all (vbox); + gtk_widget_show (vbox); return control_window; } @@ -7348,7 +7348,7 @@ create_progress_bar (GtkWidget *widget) } if (!gtk_widget_get_visible (pdata->window)) - gtk_widget_show_all (pdata->window); + gtk_widget_show (pdata->window); else gtk_widget_destroy (pdata->window); } @@ -7574,7 +7574,7 @@ snapshot_widget_event (GtkWidget *widget, g_object_unref (pixbuf); gtk_container_add (GTK_CONTAINER (window), image); - gtk_widget_show_all (window); + gtk_widget_show (window); } data->in_query = FALSE; @@ -7658,7 +7658,7 @@ create_snapshot (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); @@ -7804,7 +7804,7 @@ create_selection_test (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -8240,7 +8240,7 @@ void create_layout (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -8603,7 +8603,7 @@ create_native_dialogs (GtkWidget *widget) } if (!gtk_widget_get_visible (window)) - gtk_widget_show_all (window); + gtk_widget_show (window); else gtk_widget_destroy (window); } @@ -8762,7 +8762,7 @@ create_main_window (void) gtk_widget_set_can_default (button, TRUE); gtk_widget_grab_default (button); - gtk_widget_show_all (window); + gtk_widget_show (window); } static void diff --git a/tests/testheaderbar.c b/tests/testheaderbar.c index 57ed406503..75bde0df4f 100644 --- a/tests/testheaderbar.c +++ b/tests/testheaderbar.c @@ -96,7 +96,6 @@ change_header (GtkButton *button, gpointer data) widget = gtk_level_bar_new (); gtk_level_bar_set_value (GTK_LEVEL_BAR (widget), 0.4); gtk_box_pack_start (GTK_BOX (box), widget, TRUE, TRUE); - gtk_widget_show_all (header); } else { @@ -117,7 +116,6 @@ change_header (GtkButton *button, gpointer data) gtk_container_add (GTK_CONTAINER (widget), image); gtk_header_bar_pack_start (GTK_HEADER_BAR (header), widget); - gtk_widget_show_all (header); } gtk_window_set_titlebar (GTK_WINDOW (window), header); @@ -168,7 +166,7 @@ main (int argc, char *argv[]) gtk_box_pack_start (GTK_BOX (box), content, FALSE, TRUE); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testicontheme.c b/tests/testicontheme.c index f34e93a9fd..6126e02018 100644 --- a/tests/testicontheme.c +++ b/tests/testicontheme.c @@ -124,7 +124,7 @@ main (int argc, char *argv[]) gtk_container_add (GTK_CONTAINER (window), image); g_signal_connect (window, "delete-event", G_CALLBACK (gtk_main_quit), window); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); } @@ -151,7 +151,7 @@ main (int argc, char *argv[]) gtk_container_add (GTK_CONTAINER (window), image); g_signal_connect (window, "delete-event", G_CALLBACK (gtk_main_quit), window); - gtk_widget_show_all (window); + gtk_widget_show (window); info = gtk_icon_theme_lookup_icon_for_scale (icon_theme, argv[3], size, scale, flags); diff --git a/tests/testiconview-keynav.c b/tests/testiconview-keynav.c index 5ab125361d..b33a051a63 100644 --- a/tests/testiconview-keynav.c +++ b/tests/testiconview-keynav.c @@ -274,7 +274,7 @@ main (int argc, char *argv[]) gtk_container_add (GTK_CONTAINER (vbox), views.header2); gtk_container_add (GTK_CONTAINER (vbox), views.view2); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testiconview.c b/tests/testiconview.c index 72f8fab5d1..9fe3fb8522 100644 --- a/tests/testiconview.c +++ b/tests/testiconview.c @@ -599,7 +599,7 @@ main (gint argc, gchar **argv) GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_paned_add2 (GTK_PANED (paned), scrolled_window); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testimage.c b/tests/testimage.c index 7f61f7588b..a49bfe86bd 100644 --- a/tests/testimage.c +++ b/tests/testimage.c @@ -166,7 +166,7 @@ main (int argc, char **argv) idle_func, NULL, NULL); } - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testlevelbar.c b/tests/testlevelbar.c index 23385f86ae..7de4d73709 100644 --- a/tests/testlevelbar.c +++ b/tests/testlevelbar.c @@ -100,7 +100,7 @@ main (int argc, char *argv[]) gtk_container_add (GTK_CONTAINER (box2), sw); g_signal_connect (sw, "notify::active", G_CALLBACK (toggle), bar); - gtk_widget_show_all (window); + gtk_widget_show (window); g_signal_connect (window, "delete-event", G_CALLBACK (window_delete_event), NULL); diff --git a/tests/testlist.c b/tests/testlist.c index 05daa90180..e587eb5e31 100644 --- a/tests/testlist.c +++ b/tests/testlist.c @@ -199,7 +199,6 @@ add_clicked_cb (GtkButton *button, static int new_button_nr = 1; new_row = row_new( g_strdup_printf ("blah2 new %d", new_button_nr), new_button_nr); - gtk_widget_show_all (new_row); gtk_container_add (GTK_CONTAINER (list), new_row); new_button_nr++; } @@ -366,7 +365,7 @@ main (int argc, char *argv[]) gtk_container_add (GTK_CONTAINER (vbox), button); g_signal_connect (button, "clicked", G_CALLBACK (visibility_clicked_cb), row3); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testlist2.c b/tests/testlist2.c index d00421c32c..770bcda113 100644 --- a/tests/testlist2.c +++ b/tests/testlist2.c @@ -58,7 +58,6 @@ add_row_below (GtkButton *button, GtkWidget *child) row = create_row ("Extra row"); revealer = gtk_revealer_new (); gtk_container_add (GTK_CONTAINER (revealer), row); - gtk_widget_show_all (revealer); g_signal_connect (revealer, "notify::child-revealed", G_CALLBACK (row_revealed), NULL); gtk_list_box_insert (GTK_LIST_BOX (list), revealer, index + 1); @@ -121,7 +120,7 @@ int main (int argc, char *argv[]) gtk_list_box_insert (GTK_LIST_BOX (list), row, -1); } - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testlist3.c b/tests/testlist3.c index 14e4fbe812..99f28f70d6 100644 --- a/tests/testlist3.c +++ b/tests/testlist3.c @@ -97,7 +97,7 @@ main (int argc, char *argv[]) gtk_list_box_insert (GTK_LIST_BOX (list), row, -1); } - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testlockbutton.c b/tests/testlockbutton.c index d6c3cff98a..732f8bdbd1 100644 --- a/tests/testlockbutton.c +++ b/tests/testlockbutton.c @@ -260,8 +260,8 @@ main (int argc, char *argv[]) gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), content); gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), button); - gtk_widget_show_all (window); - gtk_widget_show_all (dialog); + gtk_widget_show (window); + gtk_widget_show (dialog); gtk_main (); diff --git a/tests/testlogout.c b/tests/testlogout.c index 8fda9e7f0c..5d9a21ff41 100644 --- a/tests/testlogout.c +++ b/tests/testlogout.c @@ -124,7 +124,7 @@ activate (GtkApplication *app, gtk_grid_set_row_spacing (GTK_GRID (grid), 6); gtk_grid_set_column_spacing (GTK_GRID (grid), 6); - gtk_widget_show_all (win); + gtk_widget_show (win); gtk_application_add_window (app, GTK_WINDOW (win)); } diff --git a/tests/testmenubutton.c b/tests/testmenubutton.c index 7df63c8907..8de76a4702 100644 --- a/tests/testmenubutton.c +++ b/tests/testmenubutton.c @@ -122,7 +122,7 @@ int main (int argc, char **argv) 0, 1, i - 1, i); } - gtk_widget_show_all (menu_widget); + gtk_widget_show (menu_widget); button = gtk_menu_button_new (); gtk_widget_set_halign (button, GTK_ALIGN_START); @@ -156,7 +156,7 @@ int main (int argc, char **argv) gtk_menu_button_set_menu_model (GTK_MENU_BUTTON (button), G_MENU_MODEL (menu)); gtk_grid_attach (GTK_GRID (grid), button, 1, row++, 1, 1); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testmultidisplay.c b/tests/testmultidisplay.c index 8ad28190ea..6c23a2dc10 100644 --- a/tests/testmultidisplay.c +++ b/tests/testmultidisplay.c @@ -92,7 +92,7 @@ make_selection_dialog (GdkScreen * screen, g_signal_connect (window, "response", G_CALLBACK (entry_dialog_response), double_entry); - gtk_widget_show_all (window); + gtk_widget_show (window); } int @@ -132,7 +132,6 @@ main (int argc, char *argv[]) G_CALLBACK (get_screen_response), display_entry); gtk_widget_grab_focus (display_entry); - gtk_widget_show_all (gtk_bin_get_child (GTK_BIN (dialog))); while (!correct_second_display) { diff --git a/tests/testnoscreen.c b/tests/testnoscreen.c index baaaa8c858..99e323c655 100644 --- a/tests/testnoscreen.c +++ b/tests/testnoscreen.c @@ -41,7 +41,7 @@ int main (int argc, char *argv[]) gtk_window_set_screen (GTK_WINDOW (window), gdk_display_get_default_screen (display)); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testnotebookdnd.c b/tests/testnotebookdnd.c index 6ee3cfbbf0..a9b1bac29c 100644 --- a/tests/testnotebookdnd.c +++ b/tests/testnotebookdnd.c @@ -80,7 +80,7 @@ window_creation_function (GtkNotebook *source_notebook, gtk_window_set_default_size (GTK_WINDOW (window), 300, 300); gtk_window_move (GTK_WINDOW (window), x, y); - gtk_widget_show_all (window); + gtk_widget_show (window); return GTK_NOTEBOOK (notebook); } @@ -347,7 +347,7 @@ main (gint argc, gchar *argv[]) gtk_container_add (GTK_CONTAINER (window), grid); gtk_window_set_default_size (GTK_WINDOW (window), 400, 400); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testorientable.c b/tests/testorientable.c index d089f5e7cb..12e5833346 100644 --- a/tests/testorientable.c +++ b/tests/testorientable.c @@ -97,7 +97,7 @@ main (int argc, char **argv) G_CALLBACK (orient_toggled), orientables); gtk_container_add (GTK_CONTAINER (window), grid); - gtk_widget_show_all (window); + gtk_widget_show (window); g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); diff --git a/tests/testoverlay.c b/tests/testoverlay.c index 4b60f5403a..1d510d3d22 100644 --- a/tests/testoverlay.c +++ b/tests/testoverlay.c @@ -561,31 +561,31 @@ main (int argc, char *argv[]) GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); win1 = test_nonzerox (); - gtk_widget_show_all (win1); + gtk_widget_show (win1); win2 = test_relative (); - gtk_widget_show_all (win2); + gtk_widget_show (win2); win3 = test_fullwidth (); - gtk_widget_show_all (win3); + gtk_widget_show (win3); win4 = test_scrolling (); - gtk_widget_show_all (win4); + gtk_widget_show (win4); win5 = test_builder (); - gtk_widget_show_all (win5); + gtk_widget_show (win5); win6 = test_chase (); - gtk_widget_show_all (win6); + gtk_widget_show (win6); win7 = test_stacking (); - gtk_widget_show_all (win7); + gtk_widget_show (win7); win8 = test_input_stacking (); - gtk_widget_show_all (win8); + gtk_widget_show (win8); win9 = test_child_order (); - gtk_widget_show_all (win9); + gtk_widget_show (win9); gtk_main (); diff --git a/tests/testoverlaystyleclass.c b/tests/testoverlaystyleclass.c index 8ca78ae998..e9787d5df1 100644 --- a/tests/testoverlaystyleclass.c +++ b/tests/testoverlaystyleclass.c @@ -155,7 +155,7 @@ main (int argc, char *argv[]) g_print ("\n"); - gtk_widget_show_all (win); + gtk_widget_show (win); gtk_main (); diff --git a/tests/testpixbuf-scale.c b/tests/testpixbuf-scale.c index 434336cc26..880410a473 100644 --- a/tests/testpixbuf-scale.c +++ b/tests/testpixbuf-scale.c @@ -124,8 +124,6 @@ main(int argc, char **argv) gtk_scale_set_digits (GTK_SCALE (hscale), 0); gtk_box_pack_start (GTK_BOX (hbox), hscale, TRUE, TRUE); - gtk_widget_show_all (vbox); - /* Compute the size without the drawing area, so we know how big to make the default size */ gtk_widget_get_preferred_size ( (vbox), &scratch_requisition, NULL); @@ -139,7 +137,7 @@ main(int argc, char **argv) gdk_pixbuf_get_width (pixbuf), scratch_requisition.height + gdk_pixbuf_get_height (pixbuf)); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testplacesview.c b/tests/testplacesview.c index 91d5e6aff6..c8f03c0cea 100644 --- a/tests/testplacesview.c +++ b/tests/testplacesview.c @@ -16,7 +16,7 @@ main (int argc, char *argv[]) view = gtk_places_view_new (); gtk_container_add (GTK_CONTAINER (win), view); - gtk_widget_show_all (win); + gtk_widget_show (win); g_signal_connect (win, "delete-event", G_CALLBACK (gtk_main_quit), win); diff --git a/tests/testpopover.c b/tests/testpopover.c index 5fdd8865a8..6d12d6c8ac 100644 --- a/tests/testpopover.c +++ b/tests/testpopover.c @@ -146,7 +146,7 @@ main (int argc, char *argv[]) gtk_grid_attach (GTK_GRID (grid), combo, 2, 5, 1, 1); - gtk_widget_show_all (win); + gtk_widget_show (win); gtk_main (); diff --git a/tests/testpopup.c b/tests/testpopup.c index 7b3ccfc299..a78498d6f8 100644 --- a/tests/testpopup.c +++ b/tests/testpopup.c @@ -43,7 +43,7 @@ on_map_event (GtkWidget *parent, gtk_window_set_transient_for (GTK_WINDOW (popup), GTK_WINDOW (parent)); g_signal_connect (parent, "motion-notify-event", G_CALLBACK (place_popup), popup); - gtk_widget_show_all (popup); + gtk_widget_show (popup); return FALSE; } diff --git a/tests/testpopupat.c b/tests/testpopupat.c index 5c0ace65ec..6acddb3152 100644 --- a/tests/testpopupat.c +++ b/tests/testpopupat.c @@ -54,7 +54,7 @@ main (int argc, app_chooser_widget = GTK_WIDGET (gtk_builder_get_object (builder, "appchooserwidget")); g_signal_connect (app_chooser_widget, "populate-popup", G_CALLBACK (populate_popup_cb), builder); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testrecentchooser.c b/tests/testrecentchooser.c index fcc32a39bc..a2d133d0dd 100644 --- a/tests/testrecentchooser.c +++ b/tests/testrecentchooser.c @@ -165,7 +165,7 @@ main (int argc, gtk_recent_filter_add_mime_type (filter, "image/jpeg"); gtk_recent_chooser_add_filter (GTK_RECENT_CHOOSER (dialog), filter); - gtk_widget_show_all (dialog); + gtk_widget_show (dialog); control_window = gtk_window_new (GTK_WINDOW_TOPLEVEL); @@ -185,7 +185,7 @@ main (int argc, g_signal_connect_swapped (button, "clicked", G_CALLBACK (gtk_recent_chooser_unselect_all), dialog); - gtk_widget_show_all (control_window); + gtk_widget_show (control_window); g_object_ref (control_window); g_signal_connect (dialog, "destroy", diff --git a/tests/testrecentchoosermenu.c b/tests/testrecentchoosermenu.c index 110b9677ce..744b008544 100644 --- a/tests/testrecentchoosermenu.c +++ b/tests/testrecentchoosermenu.c @@ -99,7 +99,7 @@ create_recent_chooser_menu (gint limit) gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); gtk_widget_show (menuitem); - gtk_widget_show_all (menu); + gtk_widget_show (menu); return menu; } diff --git a/tests/testrevealer.c b/tests/testrevealer.c index 9059cd3ade..28b79b6a4e 100644 --- a/tests/testrevealer.c +++ b/tests/testrevealer.c @@ -106,7 +106,7 @@ main (gint argc, gtk_revealer_set_transition_duration (GTK_REVEALER (revealer), 2000); gtk_grid_attach (GTK_GRID (box), revealer, 2, 3, 1, 1); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); gtk_widget_destroy (window); diff --git a/tests/testrevealer2.c b/tests/testrevealer2.c index 23613b64f8..fc978d253e 100644 --- a/tests/testrevealer2.c +++ b/tests/testrevealer2.c @@ -32,8 +32,6 @@ on_activate (GApplication *app, gtk_header_bar_pack_end (GTK_HEADER_BAR (header), gtk_label_new ("Animations")); - gtk_widget_show_all (header); - /* content */ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_add (GTK_CONTAINER (window), hbox); @@ -57,7 +55,6 @@ on_activate (GApplication *app, "valign", GTK_ALIGN_CENTER, NULL); gtk_container_add (GTK_CONTAINER (hbox), img); - gtk_widget_show_all (hbox); g_object_bind_property (sidebar_toggle, "active", revealer, "reveal-child", diff --git a/tests/testrichtext.c b/tests/testrichtext.c index 7572599fc6..84e43cc49a 100644 --- a/tests/testrichtext.c +++ b/tests/testrichtext.c @@ -167,7 +167,7 @@ main (gint argc, gtk_container_add (GTK_CONTAINER (sw), view); - gtk_widget_show_all (window); + gtk_widget_show (window); if (0) gtk_main (); diff --git a/tests/testscale.c b/tests/testscale.c index a74613c831..f33c22c62d 100644 --- a/tests/testscale.c +++ b/tests/testscale.c @@ -219,13 +219,13 @@ int main (int argc, char *argv[]) gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE); g_signal_connect (button, "toggled", G_CALLBACK (trough), NULL); gtk_container_add (GTK_CONTAINER (box2), button); - gtk_widget_show_all (window); + gtk_widget_show (window); button = gtk_toggle_button_new_with_label ("Extra"); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), FALSE); g_signal_connect (button, "toggled", G_CALLBACK (extra), NULL); gtk_container_add (GTK_CONTAINER (box2), button); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testscrolledge.c b/tests/testscrolledge.c index b1e04dcc8b..a55939831a 100644 --- a/tests/testscrolledge.c +++ b/tests/testscrolledge.c @@ -43,7 +43,6 @@ populate_list (GtkListBox *list) g_object_set (label, "margin", 10, NULL); gtk_widget_set_halign (label, GTK_ALIGN_START); gtk_container_add (GTK_CONTAINER (row), label); - gtk_widget_show_all (row); gtk_container_add (GTK_CONTAINER (list), row); } } @@ -130,7 +129,7 @@ main (int argc, char *argv[]) g_signal_connect (sw, "edge-overshot", G_CALLBACK (edge_overshot), list); g_signal_connect (sw, "edge-reached", G_CALLBACK (edge_reached), list); - gtk_widget_show_all (win); + gtk_widget_show (win); gtk_main (); diff --git a/tests/testscrolledwindow.c b/tests/testscrolledwindow.c index 87da5ad93d..dcb9f6fad8 100644 --- a/tests/testscrolledwindow.c +++ b/tests/testscrolledwindow.c @@ -72,8 +72,6 @@ add_row (GtkButton *button, row = g_object_new (GTK_TYPE_LIST_BOX_ROW, NULL); gtk_container_add (GTK_CONTAINER (row), gtk_label_new ("test")); gtk_container_add (GTK_CONTAINER (listbox), row); - - gtk_widget_show_all (row); } static void @@ -251,7 +249,6 @@ scrollable_policy (void) gtk_menu_button_set_popover (GTK_MENU_BUTTON (widget), popover); gtk_container_add (GTK_CONTAINER (widget), gtk_label_new ("Popover")); gtk_box_pack_start (GTK_BOX (cntl), widget, FALSE, FALSE); - gtk_widget_show_all (widget); vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6); gtk_container_add (GTK_CONTAINER (popover), vbox); diff --git a/tests/testselectionmode.c b/tests/testselectionmode.c index dfb8c4da04..c639bbe8eb 100644 --- a/tests/testselectionmode.c +++ b/tests/testselectionmode.c @@ -206,7 +206,7 @@ main (int argc, char *argv[]) g_signal_connect (list, "selected-rows-changed", G_CALLBACK (selected_rows_changed), NULL); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testsensitive.c b/tests/testsensitive.c index 7e3edaa597..4f4ccb7e33 100644 --- a/tests/testsensitive.c +++ b/tests/testsensitive.c @@ -79,7 +79,7 @@ int main (int argc, char *argv[]) g_object_bind_property (c, "active", w, "sensitive", G_BINDING_BIDIRECTIONAL); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testspinbutton.c b/tests/testspinbutton.c index 24c80bf4e7..303192eb1e 100644 --- a/tests/testspinbutton.c +++ b/tests/testspinbutton.c @@ -61,7 +61,7 @@ prepare_window_for_orientation (GtkOrientation orientation) gtk_container_add (GTK_CONTAINER (mainbox), hbox); } - gtk_widget_show_all (window); + gtk_widget_show (window); num_windows++; } diff --git a/tests/teststack.c b/tests/teststack.c index 48dba7ef23..11176640a7 100644 --- a/tests/teststack.c +++ b/tests/teststack.c @@ -259,7 +259,7 @@ main (gint argc, (GCallback)update_forward_button_sensitivity, button); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); gtk_widget_destroy (window); diff --git a/tests/testthreads.c b/tests/testthreads.c index 8c4c8d58b7..b501172120 100644 --- a/tests/testthreads.c +++ b/tests/testthreads.c @@ -80,7 +80,7 @@ counter (void *data) G_CALLBACK (close_cb), &flag); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); - gtk_widget_show_all (window); + gtk_widget_show (window); /* Since flag is only checked or set inside the GTK lock, * we don't have to worry about locking it explicitly diff --git a/tests/testtitlebar.c b/tests/testtitlebar.c index 709d87f76d..2e404574a5 100644 --- a/tests/testtitlebar.c +++ b/tests/testtitlebar.c @@ -185,7 +185,7 @@ activate (GApplication *gapp) gtk_grid_attach (GTK_GRID (grid), spin, 2, 3, 2, 1); gtk_container_add (GTK_CONTAINER (window), grid); - gtk_widget_show_all (window); + gtk_widget_show (window); } int diff --git a/tests/testtoolbar.c b/tests/testtoolbar.c index 116201fcde..5ab5337cf9 100644 --- a/tests/testtoolbar.c +++ b/tests/testtoolbar.c @@ -394,7 +394,7 @@ popup_context_menu (GtkToolbar *toolbar, gint x, gint y, gint button_number) item = gtk_menu_item_new_with_mnemonic (label); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); } - gtk_widget_show_all (GTK_WIDGET (menu)); + gtk_widget_show (GTK_WIDGET (menu)); if (button_number != -1) { @@ -725,7 +725,7 @@ main (gint argc, gchar **argv) g_signal_connect (toolbar, "drag_drop", G_CALLBACK (toolbar_drag_drop), label); - gtk_widget_show_all (window); + gtk_widget_show (window); g_signal_connect (window, "delete_event", G_CALLBACK (gtk_main_quit), NULL); diff --git a/tests/testtoolbar2.c b/tests/testtoolbar2.c index 878f43aff1..499edb8b0c 100644 --- a/tests/testtoolbar2.c +++ b/tests/testtoolbar2.c @@ -32,7 +32,7 @@ int main (int argc, char *argv[]) gtk_container_add (GTK_CONTAINER (frame), box3); - gtk_widget_show_all (GTK_WIDGET (window)); + gtk_widget_show (GTK_WIDGET (window)); gtk_main (); diff --git a/tests/testtooltips.c b/tests/testtooltips.c index 1d071e2f60..6ed4066cf9 100644 --- a/tests/testtooltips.c +++ b/tests/testtooltips.c @@ -414,7 +414,7 @@ main (int argc, char *argv[]) G_CALLBACK (query_tooltip_label_cb), label); /* Done! */ - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testtoplevelembed.c b/tests/testtoplevelembed.c index 4df5aec021..c1cda8d871 100644 --- a/tests/testtoplevelembed.c +++ b/tests/testtoplevelembed.c @@ -26,8 +26,6 @@ create_tab_label (GtkWidget *toplevel) g_signal_connect (button, "clicked", G_CALLBACK (remove_notebook_page), toplevel); - - gtk_widget_show_all (box); return box; } @@ -98,7 +96,7 @@ main (gint argc, gchar **argv) toplevel_delete_event (widget, NULL, NULL); g_signal_connect (widget, "delete-event", G_CALLBACK (toplevel_delete_event), NULL); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); return 0; diff --git a/tests/testtreechanging.c b/tests/testtreechanging.c index 76bd4e32bd..0b5d6d8c06 100644 --- a/tests/testtreechanging.c +++ b/tests/testtreechanging.c @@ -505,7 +505,7 @@ main (int argc, add (GTK_TREE_VIEW (treeview)); gtk_container_add (GTK_CONTAINER (sw), treeview); - gtk_widget_show_all (window); + gtk_widget_show (window); g_idle_add (dance, treeview); diff --git a/tests/testtreecolumns.c b/tests/testtreecolumns.c index 2d71118ddb..5e9f20489d 100644 --- a/tests/testtreecolumns.c +++ b/tests/testtreecolumns.c @@ -749,7 +749,7 @@ main (int argc, char *argv[]) swindow = gtk_scrolled_window_new (NULL, NULL); gtk_container_add (GTK_CONTAINER (window), swindow); gtk_container_add (GTK_CONTAINER (swindow), sample_tree_view_top); - gtk_widget_show_all (window); + gtk_widget_show (window); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); @@ -758,7 +758,7 @@ main (int argc, char *argv[]) swindow = gtk_scrolled_window_new (NULL, NULL); gtk_container_add (GTK_CONTAINER (window), swindow); gtk_container_add (GTK_CONTAINER (swindow), sample_tree_view_bottom); - gtk_widget_show_all (window); + gtk_widget_show (window); /* Set up the main window */ window = gtk_window_new (GTK_WINDOW_TOPLEVEL); @@ -903,7 +903,7 @@ main (int argc, char *argv[]) g_signal_connect (button, "clicked", G_CALLBACK (add_clicked), left_tree_model); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); return 0; diff --git a/tests/testtreecolumnsizing.c b/tests/testtreecolumnsizing.c index 7be0a1cba3..33c8907966 100644 --- a/tests/testtreecolumnsizing.c +++ b/tests/testtreecolumnsizing.c @@ -228,7 +228,7 @@ main (int argc, char **argv) gtk_combo_box_set_active (GTK_COMBO_BOX (combo_box), 0); /* Done */ - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testtreednd.c b/tests/testtreednd.c index c308d45426..96a8f9ee38 100644 --- a/tests/testtreednd.c +++ b/tests/testtreednd.c @@ -127,7 +127,7 @@ main (int argc, char *argv[]) gtk_container_add (GTK_CONTAINER (box), get_dragsource ()); gtk_container_add (GTK_CONTAINER (box), get_droptarget ()); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testtreeedit.c b/tests/testtreeedit.c index 1b3b8bfcf5..cd4fc365a4 100644 --- a/tests/testtreeedit.c +++ b/tests/testtreeedit.c @@ -382,7 +382,7 @@ main (gint argc, gchar **argv) create_control (cntl_vbox, 3, CNTL_FIXED, &callback[2]); create_control (cntl_vbox, 4, CNTL_FIXED, &callback[3]); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); return 0; diff --git a/tests/testtreeflow.c b/tests/testtreeflow.c index 7ac171ca79..c5777fd20d 100644 --- a/tests/testtreeflow.c +++ b/tests/testtreeflow.c @@ -163,7 +163,7 @@ main (int argc, char *argv[]) g_signal_connect (button, "clicked", G_CALLBACK (futz), NULL); g_signal_connect (button, "realize", G_CALLBACK (gtk_widget_grab_focus), NULL); gtk_window_set_default_size (GTK_WINDOW (window), 300, 400); - gtk_widget_show_all (window); + gtk_widget_show (window); gdk_threads_add_timeout (1000, (GSourceFunc) futz, NULL); gtk_main (); return 0; diff --git a/tests/testtreefocus.c b/tests/testtreefocus.c index c32258d725..d4296f1478 100644 --- a/tests/testtreefocus.c +++ b/tests/testtreefocus.c @@ -460,7 +460,7 @@ main (int argc, char *argv[]) NULL); gtk_window_set_default_size (GTK_WINDOW (window), 650, 400); - gtk_widget_show_all (window); + gtk_widget_show (window); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window), "Model"); @@ -528,7 +528,7 @@ main (int argc, char *argv[]) gtk_window_set_default_size (GTK_WINDOW (window), 650, 400); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); return 0; diff --git a/tests/testtreepos.c b/tests/testtreepos.c index ad2cbd0fee..4f1d1c7f81 100644 --- a/tests/testtreepos.c +++ b/tests/testtreepos.c @@ -132,7 +132,7 @@ int main (int argc, char *argv[]) g_signal_connect (tv, "button-release-event", G_CALLBACK (release_event), NULL); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testtreesort.c b/tests/testtreesort.c index 80ac65eb98..3edd941d12 100644 --- a/tests/testtreesort.c +++ b/tests/testtreesort.c @@ -236,7 +236,7 @@ main (int argc, char *argv[]) gtk_container_add (GTK_CONTAINER (scrolled_window), tree_view); gtk_window_set_default_size (GTK_WINDOW (window), 400, 400); - gtk_widget_show_all (window); + gtk_widget_show (window); /** * Second window - GtkTreeModelSort wrapping the GtkTreeStore @@ -303,7 +303,7 @@ main (int argc, char *argv[]) gtk_container_add (GTK_CONTAINER (scrolled_window2), tree_view2); gtk_window_set_default_size (GTK_WINDOW (window2), 400, 400); - gtk_widget_show_all (window2); + gtk_widget_show (window2); } /** @@ -371,7 +371,7 @@ main (int argc, char *argv[]) gtk_container_add (GTK_CONTAINER (scrolled_window3), tree_view3); gtk_window_set_default_size (GTK_WINDOW (window3), 400, 400); - gtk_widget_show_all (window3); + gtk_widget_show (window3); } for (i = 0; data[i].word_1 != NULL; i++) diff --git a/tests/testtreeview.c b/tests/testtreeview.c index def4ebff3f..2dd7930b9b 100644 --- a/tests/testtreeview.c +++ b/tests/testtreeview.c @@ -752,7 +752,7 @@ main (int argc, gtk_container_add (GTK_CONTAINER (sw), tv); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/tests/testverticalcells.c b/tests/testverticalcells.c index a25abf6328..8a3cbdc691 100644 --- a/tests/testverticalcells.c +++ b/tests/testverticalcells.c @@ -370,7 +370,7 @@ main (gint argc, gchar **argv) gtk_window_set_default_size (GTK_WINDOW (window), 800, 400); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); return 0; diff --git a/tests/testvolumebutton.c b/tests/testvolumebutton.c index 611a2941e2..73e569222e 100644 --- a/tests/testvolumebutton.c +++ b/tests/testvolumebutton.c @@ -110,7 +110,7 @@ main (int argc, G_CALLBACK (toggle_orientation), button2); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_button_clicked (GTK_BUTTON (button)); g_timeout_add (4000, (GSourceFunc) show_error, window); diff --git a/tests/testwindowsize.c b/tests/testwindowsize.c index 95e23b6d48..a7df0b5fec 100644 --- a/tests/testwindowsize.c +++ b/tests/testwindowsize.c @@ -130,7 +130,7 @@ create_window (void) g_signal_connect (button, "clicked", G_CALLBACK (show_dialog), NULL); gtk_grid_attach (GTK_GRID (grid), button, 2, 4, 1, 1); - gtk_widget_show_all (window); + gtk_widget_show (window); } int diff --git a/tests/testxinerama.c b/tests/testxinerama.c index 38550f4a60..37a9c5126f 100644 --- a/tests/testxinerama.c +++ b/tests/testxinerama.c @@ -94,7 +94,7 @@ monitor_added (GdkDisplay *display, button = gtk_button_new_with_label ("Close"); g_signal_connect (button, "clicked", G_CALLBACK (gtk_main_quit), NULL); gtk_container_add (GTK_CONTAINER (vbox), button); - gtk_widget_show_all (window); + gtk_widget_show (window); g_signal_connect (monitor, "notify", G_CALLBACK (monitor_changed_cb), label); diff --git a/tests/treestoretest.c b/tests/treestoretest.c index 45fee12e32..586bd93411 100644 --- a/tests/treestoretest.c +++ b/tests/treestoretest.c @@ -433,7 +433,7 @@ make_window (gint view_type) iter_append (NULL, GTK_TREE_VIEW (tree_view)); } /* Show it all */ - gtk_widget_show_all (window); + gtk_widget_show (window); } int diff --git a/tests/video-timer.c b/tests/video-timer.c index 1a68a7bdd2..033425ece4 100644 --- a/tests/video-timer.c +++ b/tests/video-timer.c @@ -389,7 +389,7 @@ main(int argc, char **argv) gtk_drawing_area_set_draw_func (GTK_DRAWING_AREA (da), on_draw, NULL, NULL); gtk_container_add (GTK_CONTAINER (window), da); - gtk_widget_show_all (window); + gtk_widget_show (window); frame_queue = g_queue_new (); g_mutex_init (&frame_mutex); diff --git a/tests/visuals/visuals.c b/tests/visuals/visuals.c index 27c2904d20..7089158ffe 100644 --- a/tests/visuals/visuals.c +++ b/tests/visuals/visuals.c @@ -52,7 +52,7 @@ create_dark_popup (GtkWidget *parent) gtk_window_set_transient_for (GTK_WINDOW (popup), GTK_WINDOW (parent)); - gtk_widget_show_all (popup); + gtk_widget_show (popup); } int diff --git a/testsuite/a11y/testfocus.c b/testsuite/a11y/testfocus.c index c438f6d5c2..51e3b179cd 100644 --- a/testsuite/a11y/testfocus.c +++ b/testsuite/a11y/testfocus.c @@ -108,7 +108,7 @@ main (int argc, char *argv[]) g_timeout_add (100, compare_focus, NULL); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_main (); diff --git a/testsuite/gtk/builder.c b/testsuite/gtk/builder.c index 24c43b6abd..1e0674affd 100644 --- a/testsuite/gtk/builder.c +++ b/testsuite/gtk/builder.c @@ -2074,7 +2074,7 @@ test_menus (void) window = (GtkWidget *)gtk_builder_get_object (builder, "window1"); item = (GtkWidget *)gtk_builder_get_object (builder, "imagemenuitem1"); - gtk_widget_show_all (window); + gtk_widget_show (window); /* Check the menu hierarchy worked here */ g_assert (get_parent_menubar (item)); @@ -2129,7 +2129,7 @@ test_file (const gchar *filename) g_signal_connect (obj, "destroy", G_CALLBACK (gtk_main_quit), NULL); g_print ("Showing %s.\n", gtk_widget_get_name (GTK_WIDGET (obj))); - gtk_widget_show_all (GTK_WIDGET (obj)); + gtk_widget_show (GTK_WIDGET (obj)); } } diff --git a/testsuite/gtk/displayclose.c b/testsuite/gtk/displayclose.c index 60f90f8f49..d670f06330 100644 --- a/testsuite/gtk/displayclose.c +++ b/testsuite/gtk/displayclose.c @@ -34,7 +34,7 @@ main (int argc, char **argv) G_CALLBACK (gtk_widget_destroy), win); gtk_container_add (GTK_CONTAINER (win), but); - gtk_widget_show_all (win); + gtk_widget_show (win); gtk_test_widget_wait_for_draw (win); diff --git a/testsuite/gtk/focus.c b/testsuite/gtk/focus.c index cce1f940a3..ef236688f3 100644 --- a/testsuite/gtk/focus.c +++ b/testsuite/gtk/focus.c @@ -18,8 +18,6 @@ test_window_focus (void) entry2 = gtk_entry_new (); gtk_container_add (GTK_CONTAINER (box), entry2); - gtk_widget_show_all (box); - g_assert_null (gtk_window_get_focus (GTK_WINDOW (window))); gtk_window_set_focus (GTK_WINDOW (window), entry1); diff --git a/testsuite/gtk/gestures.c b/testsuite/gtk/gestures.c index 59dbbd1230..da9b1c1201 100644 --- a/testsuite/gtk/gestures.c +++ b/testsuite/gtk/gestures.c @@ -390,7 +390,7 @@ test_phases (void) gtk_container_add (GTK_CONTAINER (A), B); gtk_container_add (GTK_CONTAINER (B), C); - gtk_widget_show_all (A); + gtk_widget_show (A); str = g_string_new (""); @@ -439,7 +439,7 @@ test_mixed (void) gtk_container_add (GTK_CONTAINER (A), B); gtk_container_add (GTK_CONTAINER (B), C); - gtk_widget_show_all (A); + gtk_widget_show (A); str = g_string_new (""); @@ -495,7 +495,7 @@ test_early_exit (void) gtk_container_add (GTK_CONTAINER (A), B); gtk_container_add (GTK_CONTAINER (B), C); - gtk_widget_show_all (A); + gtk_widget_show (A); str = g_string_new (""); @@ -546,7 +546,7 @@ test_claim_capture (void) gtk_container_add (GTK_CONTAINER (A), B); gtk_container_add (GTK_CONTAINER (B), C); - gtk_widget_show_all (A); + gtk_widget_show (A); str = g_string_new (""); @@ -590,7 +590,7 @@ test_claim_target (void) gtk_container_add (GTK_CONTAINER (A), B); gtk_container_add (GTK_CONTAINER (B), C); - gtk_widget_show_all (A); + gtk_widget_show (A); str = g_string_new (""); @@ -635,7 +635,7 @@ test_claim_bubble (void) gtk_container_add (GTK_CONTAINER (A), B); gtk_container_add (GTK_CONTAINER (B), C); - gtk_widget_show_all (A); + gtk_widget_show (A); str = g_string_new (""); @@ -687,7 +687,7 @@ test_early_claim_capture (void) gtk_container_add (GTK_CONTAINER (A), B); gtk_container_add (GTK_CONTAINER (B), C); - gtk_widget_show_all (A); + gtk_widget_show (A); str = g_string_new (""); @@ -742,7 +742,7 @@ test_late_claim_capture (void) gtk_container_add (GTK_CONTAINER (A), B); gtk_container_add (GTK_CONTAINER (B), C); - gtk_widget_show_all (A); + gtk_widget_show (A); str = g_string_new (""); @@ -799,7 +799,7 @@ test_group (void) gtk_container_add (GTK_CONTAINER (A), B); gtk_container_add (GTK_CONTAINER (B), C); - gtk_widget_show_all (A); + gtk_widget_show (A); str = g_string_new (""); @@ -848,7 +848,7 @@ test_gestures_outside_grab (void) gtk_container_add (GTK_CONTAINER (A), B); gtk_container_add (GTK_CONTAINER (B), C); - gtk_widget_show_all (A); + gtk_widget_show (A); D = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_show (D); @@ -906,7 +906,7 @@ test_gestures_inside_grab (void) gtk_container_add (GTK_CONTAINER (A), B); gtk_container_add (GTK_CONTAINER (B), C); - gtk_widget_show_all (A); + gtk_widget_show (A); str = g_string_new (""); @@ -964,7 +964,7 @@ test_multitouch_on_single (void) gtk_container_add (GTK_CONTAINER (A), B); gtk_container_add (GTK_CONTAINER (B), C); - gtk_widget_show_all (A); + gtk_widget_show (A); str = g_string_new (""); @@ -1012,7 +1012,7 @@ test_multitouch_activation (void) gtk_container_add (GTK_CONTAINER (A), B); gtk_container_add (GTK_CONTAINER (B), C); - gtk_widget_show_all (A); + gtk_widget_show (A); str = g_string_new (""); @@ -1086,7 +1086,7 @@ test_multitouch_interaction (void) gtk_container_add (GTK_CONTAINER (A), B); gtk_container_add (GTK_CONTAINER (B), C); - gtk_widget_show_all (A); + gtk_widget_show (A); str = g_string_new (""); diff --git a/testsuite/gtk/revealer-size.c b/testsuite/gtk/revealer-size.c index cc1708ab67..752992c04c 100644 --- a/testsuite/gtk/revealer-size.c +++ b/testsuite/gtk/revealer-size.c @@ -19,7 +19,6 @@ keep_size (int direction, g_object_set (settings, "gtk-enable-animations", animations, NULL); gtk_container_add (GTK_CONTAINER (revealer), child); - gtk_widget_show_all (GTK_WIDGET (revealer)); gtk_revealer_set_transition_type (revealer, transition_type); diff --git a/testsuite/gtk/scrolledwindow.c b/testsuite/gtk/scrolledwindow.c index f960c38339..a54e85cb15 100644 --- a/testsuite/gtk/scrolledwindow.c +++ b/testsuite/gtk/scrolledwindow.c @@ -25,7 +25,6 @@ test_size (GtkOrientation orientation, gtk_scrolled_window_set_propagate_natural_width (GTK_SCROLLED_WINDOW (scrolledwindow), TRUE); gtk_scrolled_window_set_propagate_natural_height (GTK_SCROLLED_WINDOW (scrolledwindow), TRUE); gtk_container_add (GTK_CONTAINER (scrolledwindow), box); - gtk_widget_show_all (scrolledwindow); /* Testing the content-width property */ if (orientation == GTK_ORIENTATION_HORIZONTAL) diff --git a/testsuite/gtk/treeview.c b/testsuite/gtk/treeview.c index 384bb4fedc..eae3dc014c 100644 --- a/testsuite/gtk/treeview.c +++ b/testsuite/gtk/treeview.c @@ -209,7 +209,7 @@ test_row_separator_height (void) NULL); gtk_container_add (GTK_CONTAINER (window), tree_view); - gtk_widget_show_all (window); + gtk_widget_show (window); gtk_test_widget_wait_for_draw (window); diff --git a/testsuite/gtk/window.c b/testsuite/gtk/window.c index 8ac55356b1..70fdf761ef 100644 --- a/testsuite/gtk/window.c +++ b/testsuite/gtk/window.c @@ -79,7 +79,7 @@ test_default_size (void) g_assert_cmpint (w, ==, 300); g_assert_cmpint (h, ==, 300); - gtk_widget_show_all (window); + gtk_widget_show (window); if (!interactive) g_timeout_add (200, stop_main, NULL); @@ -150,7 +150,7 @@ test_resize (void) gtk_window_resize (GTK_WINDOW (window), 400, 200); - gtk_widget_show_all (window); + gtk_widget_show (window); if (!interactive) g_timeout_add (200, stop_main, NULL); |