summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2011-10-24 15:44:05 +0100
committerEmmanuele Bassi <ebassi@linux.intel.com>2011-10-24 15:44:05 +0100
commit3d8d6f7627ba45f7045484a21906919a03521c55 (patch)
treef2904c68e5619e05159440a262f0d90731f54e8f /examples
parent76c279396e605009f4c2fae5bdccffd1268117ae (diff)
downloadclutter-gtk-3d8d6f7627ba45f7045484a21906919a03521c55.tar.gz
examples/multistage: Remove explicit size request
We can just set a default size on the Window, and assume that the GtkClutterEmbed will expand, now.
Diffstat (limited to 'examples')
-rw-r--r--examples/gtk-clutter-multistage.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/gtk-clutter-multistage.c b/examples/gtk-clutter-multistage.c
index a385286..92733a3 100644
--- a/examples/gtk-clutter-multistage.c
+++ b/examples/gtk-clutter-multistage.c
@@ -28,14 +28,14 @@ main (int argc, char *argv[])
g_error ("Unable to initialize GtkClutter");
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- g_signal_connect (window, "destroy",
- G_CALLBACK (gtk_main_quit), NULL);
+ gtk_window_set_default_size (GTK_WINDOW (window), 600, 400);
+ gtk_window_set_title (GTK_WINDOW (window), "Multiple GtkClutterEmbed");
+ g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
notebook = gtk_notebook_new ();
gtk_container_add (GTK_CONTAINER (window), notebook);
clutter0 = gtk_clutter_embed_new ();
- gtk_widget_set_size_request (clutter0, 320, 320);
gtk_notebook_append_page (GTK_NOTEBOOK (notebook), clutter0,
gtk_label_new ("One stage"));
stage0 = gtk_clutter_embed_get_stage (GTK_CLUTTER_EMBED (clutter0));