diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2009-09-11 17:50:57 +1000 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2009-11-18 12:18:30 +1100 |
commit | 390496e2b36060ebc57225a32f6446d8380939cc (patch) | |
tree | 5aef330478cfd0fc59543634dfe188e730d3ba2b /examples | |
parent | 319095c89c4e5c720262989ba98753508add7ef0 (diff) | |
download | clutter-gtk-390496e2b36060ebc57225a32f6446d8380939cc.tar.gz |
Extend stacked-standins test to include a comparison
Diffstat (limited to 'examples')
-rw-r--r-- | examples/stacked-standins.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/examples/stacked-standins.c b/examples/stacked-standins.c index 9733cff..3558db1 100644 --- a/examples/stacked-standins.c +++ b/examples/stacked-standins.c @@ -54,7 +54,7 @@ main (int argc, char **argv) G_CALLBACK (g_print), "show button standin (%p)\n"); gtk_notebook_append_page (GTK_NOTEBOOK (nb), - standin, gtk_label_new ("Page 1")); + standin, gtk_label_new ("Standins")); /* image */ GtkWidget *image = gtk_image_new_from_file ("redhand.png"); @@ -70,6 +70,17 @@ main (int argc, char **argv) gtk_container_add (GTK_CONTAINER (button), standin); + /* Page 2 */ + button = gtk_button_new (); + g_signal_connect_swapped (button, "clicked", + G_CALLBACK (g_print), "clicked\n"); + + gtk_notebook_append_page (GTK_NOTEBOOK (nb), + button, gtk_label_new ("No Standins")); + + image = gtk_image_new_from_file ("redhand.png"); + gtk_container_add (GTK_CONTAINER (button), image); + g_print (" --- show all ---\n"); gtk_widget_show_all (window); g_print (" --- main ---\n"); |