[maemo-developers] HildonWindow dimensions not updated on unfullscreen in Fremantle SDK beta
From: Luca Donaggio donaggio at gmail.comDate: Tue Jun 30 18:13:34 EEST 2009
- Previous message: Maemo Flasher-3.5 Tool Beta for Fremantle and Diablo released
- Next message: Beagleboard touchscreens?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all,
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.
Everything works quite well, except after coming back from fullscreen: in
this case it seems that no expose events is triggered (my callback function
is never called). Is it right?
What is the correct way to do this? I need to detect window's size changes
to rescale the image displayed inside of it.
Here's my code:
g_signal_connect(G_OBJECT (myapp->mainwin),"expose_event",
G_CALLBACK (detect_main_window_changes),myapp);
gboolean detect_main_window_changes (GtkWidget *widget,GdkEvent
*event,app_data_t *myapp) {
switch (event->type) {
case GDK_EXPOSE :
scale_image(GTK_WIDGET (myapp->mainwin),myapp);
return TRUE;
}
return FALSE;
}
Thanks,
Luca Donaggio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20090630/36838f4f/attachment.htm
- Previous message: Maemo Flasher-3.5 Tool Beta for Fremantle and Diablo released
- Next message: Beagleboard touchscreens?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
