summaryrefslogtreecommitdiff
path: root/tests/testtreeedit.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-01-19 16:22:28 +0100
committerMatthias Clasen <mclasen@redhat.com>2018-01-19 23:29:13 +0300
commitaf0d876bb7da883af10fc4517de67d2318bf099b (patch)
tree14dea81e35a6c23f7a528bda1cbc06a0e3670b5f /tests/testtreeedit.c
parentffef28a7e8d5ffef7de6a3baccb30b0021b6b0ff (diff)
downloadgtk+-af0d876bb7da883af10fc4517de67d2318bf099b.tar.gz
tests: Remove some unneeded gtk_widget_show calls
Widgets are visible by default now.
Diffstat (limited to 'tests/testtreeedit.c')
-rw-r--r--tests/testtreeedit.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/testtreeedit.c b/tests/testtreeedit.c
index ce5a872c2e..ad41714019 100644
--- a/tests/testtreeedit.c
+++ b/tests/testtreeedit.c
@@ -207,7 +207,6 @@ create_control (GtkWidget *box, gint number, gint cntl, CallbackData *data)
}
checkbutton = gtk_check_button_new_with_label (name);
- gtk_widget_show (checkbutton);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkbutton), cntl == CNTL_FIXED);
gtk_box_pack_start (GTK_BOX (box), checkbutton);
@@ -239,7 +238,6 @@ main (gint argc, gchar **argv)
g_signal_connect (window, "destroy", gtk_main_quit, NULL);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
- gtk_widget_show (vbox);
gtk_container_add (GTK_CONTAINER (window), vbox);
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
@@ -352,12 +350,10 @@ main (gint argc, gchar **argv)
800, 250);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
- gtk_widget_show (hbox);
gtk_box_pack_start (GTK_BOX (vbox), hbox);
/* Alignment controls */
cntl_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
- gtk_widget_show (cntl_vbox);
gtk_box_pack_start (GTK_BOX (hbox), cntl_vbox);
create_control (cntl_vbox, 1, CNTL_ALIGN, &callback[0]);
@@ -367,7 +363,6 @@ main (gint argc, gchar **argv)
/* Expand controls */
cntl_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
- gtk_widget_show (cntl_vbox);
gtk_box_pack_start (GTK_BOX (hbox), cntl_vbox);
create_control (cntl_vbox, 1, CNTL_EXPAND, &callback[0]);
@@ -377,7 +372,6 @@ main (gint argc, gchar **argv)
/* Fixed controls */
cntl_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
- gtk_widget_show (cntl_vbox);
gtk_box_pack_start (GTK_BOX (hbox), cntl_vbox);
create_control (cntl_vbox, 1, CNTL_FIXED, &callback[0]);
@@ -386,6 +380,7 @@ main (gint argc, gchar **argv)
create_control (cntl_vbox, 4, CNTL_FIXED, &callback[3]);
gtk_widget_show (window);
+
gtk_main ();
return 0;