summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-12-26 19:25:06 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2011-01-06 14:39:41 +0900
commit72675f1f28247622cf3a9171305c7a4cff899719 (patch)
tree50de69f224f54e19e7a0bccbf736d80ccf2cb277 /tests
parent53980aca9b021f57fd626cb5dbf393140c45eb6d (diff)
downloadgtk+-72675f1f28247622cf3a9171305c7a4cff899719.tar.gz
Changes to testtoplevelembed
- Made notebook tabs smaller - No need to hide/show toplevels after removing from a parent, if it's visible it will be automatically shown after removing outside of it's previous parent.
Diffstat (limited to 'tests')
-rw-r--r--tests/testtoplevelembed.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/testtoplevelembed.c b/tests/testtoplevelembed.c
index 3540ed49cf..12a79b2a42 100644
--- a/tests/testtoplevelembed.c
+++ b/tests/testtoplevelembed.c
@@ -9,9 +9,6 @@ remove_notebook_page (GtkWidget *button,
GtkWidget *toplevel)
{
gtk_container_remove (GTK_CONTAINER (notebook), toplevel);
-
- gtk_widget_hide (toplevel);
- gtk_widget_show (toplevel);
}
GtkWidget *
@@ -20,7 +17,7 @@ create_tab_label (GtkWidget *toplevel)
GtkWidget *box = gtk_hbox_new (FALSE, 2);
GtkWidget *label = gtk_label_new (G_OBJECT_TYPE_NAME (toplevel));
GtkWidget *button = gtk_button_new ();
- GtkWidget *image = gtk_image_new_from_stock (GTK_STOCK_REMOVE, GTK_ICON_SIZE_SMALL_TOOLBAR);
+ GtkWidget *image = gtk_image_new_from_stock (GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU);
gtk_container_add (GTK_CONTAINER (button), image);
gtk_box_pack_start (GTK_BOX (box), label, TRUE, TRUE, 0);
@@ -66,6 +63,7 @@ main (gint argc, gchar **argv)
g_signal_connect (window, "destroy", gtk_main_quit, NULL);
notebook = gtk_notebook_new ();
+ gtk_notebook_set_scrollable (GTK_NOTEBOOK (notebook), TRUE);
gtk_container_add (GTK_CONTAINER (window), notebook);
gtk_widget_realize (notebook);