Allow ensuring that a stage viewport is updated
authorEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 12 Jan 2009 11:18:11 +0000 (11:18 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 12 Jan 2009 11:18:11 +0000 (11:18 +0000)
commitf911a3a7a13a778b44fedb4760ea55105d6bcd46
treeaf3d3ce9a99ae0e929dfc3a1673edb3b1a90befe
parent4f6cc0b25f958ea720604db09b43896a985e1f50
Allow ensuring that a stage viewport is updated

Since we only update the GL viewport when we receive a ConfigureNotify
event on X11, we also need a function to allow other toolkits to tell
a stage that the viewport should be updated.

This commit adds clutter_stage_ensure_viewport(), a function that simply
sets the private SYNC_MATRICES flag on the stage and then queues a
redraw.

This function should be called by libraries integrating Clutter with
other toolkits, like clutter-gtk or clutter-qt.
clutter/clutter-stage.c
clutter/clutter-stage.h