2006-11-29 Emmanuele Bassi <ebassi@openedhand.com>
authorEmmanuele Bassi <ebassi@openedhand.com>
Wed, 29 Nov 2006 22:39:46 +0000 (22:39 +0000)
committerEmmanuele Bassi <ebassi@openedhand.com>
Wed, 29 Nov 2006 22:39:46 +0000 (22:39 +0000)
commit997bf5b2bb6d56f1ced536e2608c48cae5745330
tree899aaf2e775c9e0cb7e075d54fb1b1c5cbad2075
parent9c9377198f7467b6fd30d080e5af84092eff4496
2006-11-29  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter-gtk/gtk-clutter.h: Add constructor; clean up.

* clutter-gtk/gtk-clutter.c:
(gtk_clutter_destroy), (gtk_clutter_class_init): Move
the stage unref to the GtkObject::destroy method.

(gtk_clutter_size_allocate): Oblige to the size allocation
request from the container of the GtkClutter widget by
resizing the ClutterStage.

(gtk_clutter_size_request): Require the size of the stage.

(gtk_clutter_destroy), (gtk_clutter_size_request),
(gtk_clutter_realize): Do not use the G_TYPE_INSTANCE_GET_PRIVATE()
macro, which does a type check and a function call; use the
priv pointer we conveniently keep around.

* examples/gtk-clutter-test.c: Use the given constructor;
now window resizing works.  The stage doesn't get refreshed
immediately (resize the window), though, and there's still
the X error when we close the window.
ChangeLog
clutter-gtk/gtk-clutter.c
clutter-gtk/gtk-clutter.h
examples/gtk-clutter-test.c