summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/animated-resizing.c2
-rw-r--r--tests/animated-revealing.c2
-rw-r--r--tests/listmodel.c2
-rw-r--r--tests/motion-compression.c2
-rw-r--r--tests/overlayscroll.c2
-rw-r--r--tests/print-editor.c2
-rw-r--r--tests/scrolling-performance.c2
-rw-r--r--tests/stresstest-toolbar.c3
-rw-r--r--tests/syncscroll.c2
-rw-r--r--tests/testaccel.c2
-rw-r--r--tests/testactionbar.c2
-rw-r--r--tests/testadjustsize.c10
-rw-r--r--tests/testanimation.c4
-rw-r--r--tests/testappchooser.c2
-rw-r--r--tests/testappchooserbutton.c2
-rw-r--r--tests/testassistant.c10
-rw-r--r--tests/testbaseline.c2
-rw-r--r--tests/testbbox.c2
-rw-r--r--tests/testbox.c4
-rw-r--r--tests/testboxcss.c2
-rw-r--r--tests/testbuttons.c2
-rw-r--r--tests/testcairo.c2
-rw-r--r--tests/testcalendar.c2
-rw-r--r--tests/testcellrenderertext.c2
-rw-r--r--tests/testclipboard.c2
-rw-r--r--tests/testcolorchooser.c2
-rw-r--r--tests/testcombo.c2
-rw-r--r--tests/testcombochange.c2
-rw-r--r--tests/testdnd.c4
-rw-r--r--tests/testdnd2.c2
-rw-r--r--tests/testellipsise.c2
-rw-r--r--tests/testemblems.c2
-rw-r--r--tests/testentrycompletion.c2
-rw-r--r--tests/testentryicons.c2
-rw-r--r--tests/testexpand.c4
-rw-r--r--tests/testexpander.c1
-rw-r--r--tests/testfilechooser.c4
-rw-r--r--tests/testfilechooserbutton.c2
-rw-r--r--tests/testflowbox.c3
-rw-r--r--tests/testfontchooser.c2
-rw-r--r--tests/testfontchooserdialog.c2
-rw-r--r--tests/testfontoptions.c2
-rw-r--r--tests/testframe.c2
-rw-r--r--tests/testfullscreen.c2
-rw-r--r--tests/testgaction.c2
-rw-r--r--tests/testgiconpixbuf.c2
-rw-r--r--tests/testglblending.c2
-rw-r--r--tests/testgmenu.c2
-rw-r--r--tests/testgrid.c18
-rw-r--r--tests/testgrouping.c2
-rw-r--r--tests/testgtk.c110
-rw-r--r--tests/testheaderbar.c4
-rw-r--r--tests/testicontheme.c4
-rw-r--r--tests/testiconview-keynav.c2
-rw-r--r--tests/testiconview.c2
-rw-r--r--tests/testimage.c2
-rw-r--r--tests/testlevelbar.c2
-rw-r--r--tests/testlist.c3
-rw-r--r--tests/testlist2.c3
-rw-r--r--tests/testlist3.c2
-rw-r--r--tests/testlockbutton.c4
-rw-r--r--tests/testlogout.c2
-rw-r--r--tests/testmenubutton.c4
-rw-r--r--tests/testmultidisplay.c3
-rw-r--r--tests/testnoscreen.c2
-rw-r--r--tests/testnotebookdnd.c4
-rw-r--r--tests/testorientable.c2
-rw-r--r--tests/testoverlay.c18
-rw-r--r--tests/testoverlaystyleclass.c2
-rw-r--r--tests/testpixbuf-scale.c4
-rw-r--r--tests/testplacesview.c2
-rw-r--r--tests/testpopover.c2
-rw-r--r--tests/testpopup.c2
-rw-r--r--tests/testpopupat.c2
-rw-r--r--tests/testrecentchooser.c4
-rw-r--r--tests/testrecentchoosermenu.c2
-rw-r--r--tests/testrevealer.c2
-rw-r--r--tests/testrevealer2.c3
-rw-r--r--tests/testrichtext.c2
-rw-r--r--tests/testscale.c4
-rw-r--r--tests/testscrolledge.c3
-rw-r--r--tests/testscrolledwindow.c3
-rw-r--r--tests/testselectionmode.c2
-rw-r--r--tests/testsensitive.c2
-rw-r--r--tests/testspinbutton.c2
-rw-r--r--tests/teststack.c2
-rw-r--r--tests/testthreads.c2
-rw-r--r--tests/testtitlebar.c2
-rw-r--r--tests/testtoolbar.c4
-rw-r--r--tests/testtoolbar2.c2
-rw-r--r--tests/testtooltips.c2
-rw-r--r--tests/testtoplevelembed.c4
-rw-r--r--tests/testtreechanging.c2
-rw-r--r--tests/testtreecolumns.c6
-rw-r--r--tests/testtreecolumnsizing.c2
-rw-r--r--tests/testtreednd.c2
-rw-r--r--tests/testtreeedit.c2
-rw-r--r--tests/testtreeflow.c2
-rw-r--r--tests/testtreefocus.c4
-rw-r--r--tests/testtreepos.c2
-rw-r--r--tests/testtreesort.c6
-rw-r--r--tests/testtreeview.c2
-rw-r--r--tests/testverticalcells.c2
-rw-r--r--tests/testvolumebutton.c2
-rw-r--r--tests/testwindowsize.c2
-rw-r--r--tests/testxinerama.c2
-rw-r--r--tests/treestoretest.c2
-rw-r--r--tests/video-timer.c2
-rw-r--r--tests/visuals/visuals.c2
109 files changed, 195 insertions, 226 deletions
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