[maemo-developers] GtkWidget's unmap-event not generated [was: overlaid buttons]
From: Luca Donaggio donaggio at gmail.comDate: Wed Dec 16 13:14:26 EET 2009
- Previous message: GtkWidget's unmap-event not generated [was: overlaid buttons]
- Next message: Maemo CLI application icon (take 2)...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Kyle, it's not related to your problem, but be aware of this bug [1] when considering the use cases for your widget. In short: HildonAppMenu doesn't appear if there's a top level widget around. [1] https://bugs.maemo.org/show_bug.cgi?id=6545 -- Luca Donaggio On Wed, Dec 16, 2009 at 11:14 AM, kyle cronan <kyle at pbx.org> wrote: > 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 <kyle at pbx.org> wrote: > > On Fri, Dec 11, 2009 at 3:28 AM, Cornelius Hald <hald at 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 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/20091216/69d0d471/attachment.htm
- Previous message: GtkWidget's unmap-event not generated [was: overlaid buttons]
- Next message: Maemo CLI application icon (take 2)...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]