[maemo-developers] HildonWindow dimensions not updated on unfullscreen in Fremantle SDK beta

From: Alberto Garcia agarcia at igalia.com
Date: Wed Jul 1 18:01:07 EEST 2009
On Wed, Jul 01, 2009 at 03:40:08PM +0200, Luca Donaggio wrote:

> I'm attaching a callback function to the expose event of my app
> HildonWindow to detect size changes occurring after a screen
> orientation change or a fullscreen / unfullscreen button press.

'expose' is generated when a part of the window becomes visible.

For this case I think that you should use GdkScreen:size-changed
to detect orientation changes and GtkWidget:window-state-event for
fullscreen changes (see the documentation of gtk_window_fullscreen()).

is_fs = (event->new_window_state & GDK_WINDOW_STATE_FULLSCREEN);

Berto
More information about the maemo-developers mailing list