[maemo-developers] How to get a transparent GtkWindow (fremantle)

From: Luca Donaggio donaggio at gmail.com
Date: Tue Nov 10 17:15:15 EET 2009
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).

--
Luca Donaggio

2009/11/10 Kimmo Hämäläinen <kimmo.hamalainen at 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.hamalainen at 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
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20091110/b16aff57/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rgba-window-example-2.c
Type: text/x-csrc
Size: 2344 bytes
Desc: not available
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20091110/b16aff57/attachment.c 
More information about the maemo-developers mailing list