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

From: Luca Donaggio donaggio at gmail.com
Date: Wed Jul 1 18:57:20 EEST 2009
You're right on the expose event, of course.
But detecting when an event of type GDK_CONFIGURE has occurred shouldn't be
more correct? From GDK literature [1], an event of type GDK_CONFIGURE is
"Generated when a window size or position has changed".
That should cover all the bases (ie screen orientation and window fullscreen
/ unfullscreen changes), I think I'll try it and let you know if it works.

Thanks,

Luca Donaggio

[1]
http://maemo.org/api_refs/5.0/beta/gdk/gdk-Event-Structures.html#GdkEventConfigure

On Wed, Jul 1, 2009 at 5:01 PM, Alberto Garcia <agarcia at igalia.com> wrote:

> 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
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20090701/fad8cc9c/attachment.htm 
More information about the maemo-developers mailing list