On Tue, 2009-11-10 at 16:15 +0100, ext Luca Donaggio wrote:
> I thought it was somewhat related to transparency because doing this:
> 
> gdk_window_reparent(win->window,gtk_widget_get_window(GTK_WIDGET
> (mainwin)),300,200);
> 
> makes the HildonAppMenu work again at the price of loosing the
> transparency effect (modified code attached).

Reparenting 'win->window' makes it a child of 'mainwin'. That is
completely different ballgame than the original code, which keeps 'win-
>window' a top-level window (child of the root).  When the window is not
top-level, it's not managed by the window manager anymore, but it could
also cause something in Gtk/Hildon (at least I have checked all places
deleting windows in hildon-desktop to no avail).

-Kimmo

> --
> Luca Donaggio
> 
> 2009/11/10 Kimmo Hämäläinen <kimmo.hamalai...@nokia.com>
>         On Tue, 2009-11-10 at 14:12 +0100, ext Luca Donaggio wrote:
>         > Hi Kimmo,
>         >
>         > I'm sorry to bother you again, but the problem I'm facing is
>         not how
>         > to get a transparent window, but that if I create such a
>         window the
>         > HildonAppMenu of its parent HildonWindow doesn't show
>         anymore.
>         > I (slightly) modified your code to exemplify my situation.
>         
>         
>         Ah, yes, I can see it.  Looks like the menu is unmapped
>         immediately when
>         it is shown. It's weird, I'm not yet sure what unmaps it...
>          Now it
>         looks like hildon-desktop is not unmapping it, so it could be
>         widget
>         side problem also. I'll try to find out.
>         
>         BTW. this problem is not related to the transparency: opaque
>         window does
>         the same.
>         
>         -Kimmo
>         
>         
>         >
>         >
>         > Thanks for your time,
>         >
>         > Luca Donaggio
>         >
>         > 2009/11/10 Kimmo Hämäläinen <kimmo.hamalai...@nokia.com>
>         >         Hi,
>         >
>         >         Sorry, took some time, I was busy with some bug
>         fixing...  I
>         >         started
>         >         with the Home applet example and managed to whip up
>         a small
>         >         example
>         >         (attached) that shows a transparent pop-up window.
>         >
>         >         -Kimmo
>         >
>         >
>         
>         
> 

_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to