Hi,

I've got some code that creates an undecorated window of type
GTK_WINDOW_POPUP as a transient of my main window.  I've accomplished
the look I needed in my application, but I can't figure out how to get
this window to go away when the application window is "minimized."
Such as when you bring up the dashboard or the desktop.

On my Ubuntu system I can use code like the following:

gboolean overlay_unmap(GtkWidget *window, GdkEvent *event, gpointer data)
{
    gtk_widget_hide((GtkWidget *)data);
    return FALSE;
}

GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
GtkWidget *overlay = gtk_window_new(GTK_WINDOW_POPUP);
gtk_window_set_transient_for(GTK_WINDOW(overlay), GTK_WINDOW(window));
g_signal_connect(window, "unmap-event", G_CALLBACK(overlay_unmap), overlay);

But when I try this in Maemo 5 the unmap event is never generated.  Is
there some alternative?

Thanks,
Kyle Cronan


On Sun, Dec 13, 2009 at 4:29 AM, kyle cronan <k...@pbx.org> wrote:
> On Fri, Dec 11, 2009 at 3:28 AM, Cornelius Hald <h...@icandy.de> wrote:
>>
>> What you do is, you basically create a new window without decorations
>> and with transparent background. On that window you draw using Cairo. So
>> you're not using standard widgets but you paint everything by your self.
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to