diff options
author | Emmanuele Bassi <ebassi@openedhand.com> | 2008-11-13 12:12:07 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@openedhand.com> | 2008-11-13 12:12:07 +0000 |
commit | 4ff52b7adfa037f146089d2831fb7514f233a195 (patch) | |
tree | e7cccff1368859101097769962ad3cd56e953e91 /examples | |
parent | 08f52ea09581985ff07f657d3e078d6ad2130ad7 (diff) | |
download | clutter-gtk-4ff52b7adfa037f146089d2831fb7514f233a195.tar.gz |
2008-11-13 Emmanuele Bassi <ebassi@linux.intel.com>
* clutter-gtk/gtk-clutter-viewport.c:
(viewport_set_hadjustment_values),
(viewport_set_vadjustment_values): Pass the width and height
instead of getting it from the actor.
(connect_adjustment),
(gtk_clutter_viewport_allocate): Update.
(gtk_clutter_viewport_get_preferred_width),
(gtk_clutter_viewport_get_preferred_height): The Viewport
does not have a minimum size, by definition of scrollable
actor.
* examples/gtk-clutter-viewport.c: Fix the arguments count
check.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/gtk-clutter-viewport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/gtk-clutter-viewport.c b/examples/gtk-clutter-viewport.c index 37c2980..33c54ad 100644 --- a/examples/gtk-clutter-viewport.c +++ b/examples/gtk-clutter-viewport.c @@ -42,7 +42,7 @@ main (int argc, char *argv[]) clutter_actor_set_size (viewport, 320, 240); clutter_container_add_actor (CLUTTER_CONTAINER (stage), viewport); - if (argc < 1) + if (argc < 2) tex = gtk_clutter_texture_new_from_stock (embed, GTK_STOCK_DIALOG_INFO, GTK_ICON_SIZE_DIALOG); |