Any hint?<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Luca Donaggio</b> <span dir="ltr"><<a href="mailto:donaggio@gmail.com">donaggio@gmail.com</a>></span><br>
Date: Tue, Jun 30, 2009 at 5:13 PM<br>Subject: HildonWindow dimensions not updated on unfullscreen in Fremantle SDK beta<br>To: Maemo developers mailing-list <<a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a>><br>
<br><br>Hi all,<br><br>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.<br>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?<br>
What is the correct way to do this? I need to detect window's size changes to rescale the image displayed inside of it.<br><br>Here's my code:<br><br> g_signal_connect(G_OBJECT (myapp->mainwin),"expose_event",<br>
G_CALLBACK (detect_main_window_changes),myapp);<br><br><br>gboolean detect_main_window_changes (GtkWidget *widget,GdkEvent *event,app_data_t *myapp) {<br> switch (event->type) {<br> case GDK_EXPOSE :<br>
scale_image(GTK_WIDGET (myapp->mainwin),myapp);<br> return TRUE;<br> }<br> return FALSE;<br>}<br><br>Thanks,<br><font color="#888888"><br>Luca Donaggio<br><br>
</font></div><br>