Hi Kyle,<br><br>it's not related to your problem, but be aware of this bug [1] when considering the use cases for your widget.<br>In short: HildonAppMenu doesn't appear if there's a top level widget around.<br>
<br>[1] <a href="https://bugs.maemo.org/show_bug.cgi?id=6545">https://bugs.maemo.org/show_bug.cgi?id=6545</a><br><br>--<br>Luca Donaggio<br><br><div class="gmail_quote">On Wed, Dec 16, 2009 at 11:14 AM, kyle cronan <span dir="ltr"><<a href="mailto:kyle@pbx.org">kyle@pbx.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I've got some code that creates an undecorated window of type<br>
GTK_WINDOW_POPUP as a transient of my main window. I've accomplished<br>
the look I needed in my application, but I can't figure out how to get<br>
this window to go away when the application window is "minimized."<br>
Such as when you bring up the dashboard or the desktop.<br>
<br>
On my Ubuntu system I can use code like the following:<br>
<br>
gboolean overlay_unmap(GtkWidget *window, GdkEvent *event, gpointer data)<br>
{<br>
gtk_widget_hide((GtkWidget *)data);<br>
return FALSE;<br>
}<br>
<br>
GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);<br>
GtkWidget *overlay = gtk_window_new(GTK_WINDOW_POPUP);<br>
gtk_window_set_transient_for(GTK_WINDOW(overlay), GTK_WINDOW(window));<br>
g_signal_connect(window, "unmap-event", G_CALLBACK(overlay_unmap), overlay);<br>
<br>
But when I try this in Maemo 5 the unmap event is never generated. Is<br>
there some alternative?<br>
<br>
Thanks,<br>
Kyle Cronan<br>
<br>
<br>
On Sun, Dec 13, 2009 at 4:29 AM, kyle cronan <<a href="mailto:kyle@pbx.org">kyle@pbx.org</a>> wrote:<br>
> On Fri, Dec 11, 2009 at 3:28 AM, Cornelius Hald <<a href="mailto:hald@icandy.de">hald@icandy.de</a>> wrote:<br>
>><br>
>> What you do is, you basically create a new window without decorations<br>
>> and with transparent background. On that window you draw using Cairo. So<br>
>> you're not using standard widgets but you paint everything by your self.<br>
_______________________________________________<br>
maemo-developers mailing list<br>
<a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a><br>
<a href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br>
</blockquote></div><br>