Mmmm... what I need is a place to put some informations about the image which is currently being displayed by a GtkImage in the main HildonWindow. With the version of mrawviewer currently in extras-testing I did that by painting directly over the image itself, as it is always resized to fit the screen.<br>
With the next version I&#39;ve introduced the possibility to zoom in / out, and I wanted the image informations to remain visible all the time while zooming and scrolling around the image, that&#39;s why I thought about a see-through-GtkWindow positioned over the underlying image.<br>
Of course that window must stay around until the user explicitly closes it by toggling a filter in the HildonAppMenu. It can&#39;t be moved nor resized nor it gets any focus, it&#39;s only purpose is displaying some informations.<br>
<br>I&#39;ll investigate on how can I make the transparent window a child of the main HildonAppWindow upon its creation as you suggested.<br><br>Thanks, <br><br>--<br>Luca Donaggio<br><br><div class="gmail_quote">2009/11/13 Kimmo Hämäläinen <span dir="ltr">&lt;<a href="mailto:kimmo.hamalainen@nokia.com">kimmo.hamalainen@nokia.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Fri, 2009-11-13 at 10:44 +0100, Hamalainen Kimmo (Nokia-D/Helsinki)<br>
wrote:<br>
<div class="im">&gt; On Thu, 2009-11-12 at 17:21 +0100, ext Luca Donaggio wrote:<br>
&gt; &gt; Thanks a lot Kimmo!<br>
&gt; &gt;<br>
&gt; &gt; At least, now I know what&#39;s happening!<br>
&gt; &gt; Now, what to do to solve the problem? If HildonAppMenu behaves like<br>
&gt; &gt; this by design (and if the bug regards only the fact that it is first<br>
&gt; &gt; mapped and then unmapped while it shouldn&#39;t be mapped at all), is<br>
&gt; &gt; there a way to create a floating top level widget on top of a<br>
&gt; &gt; HildonWindow or it is somewhat forbidden by the actual implementation?<br>
&gt; &gt; I don&#39;t want to continue the development in the wrong direction, maybe<br>
&gt; &gt; it&#39;s better if I stop here and redisign my app to not include the<br>
&gt; &gt; &quot;offending&quot; widget and find another way to present the same<br>
&gt; &gt; informations to the user - but let me say that I grew somewhat fond of<br>
&gt; &gt; my transparent-overlayed-unobtrusive-image-details-window!<br>
&gt;<br>
&gt; I think the cleanest (and most risk-free) solution is that you create<br>
&gt; the transparent window as a child window of the main window right from<br>
&gt; the beginning. But I&#39;m not sure how Gtk allows that. Better solution<br>
&gt; would be fixing the WM so that it allows rgba in dialogs, but that can<br>
&gt; be more work...<br>
<br>
</div>I checked the WM support: it seems to be just a matter of commenting out<br>
the offending code in mb-wm-client.c.  But if you use a dialog, your<br>
dialog is closed before you can access the application menu, which is<br>
probably what you are trying to do.<br>
<font color="#888888"><br>
-Kimmo<br>
</font><div><div></div><div class="h5"><br>
&gt;<br>
&gt; -Kimmo<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt; What do you think?<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Luca Donaggio<br>
&gt; &gt;<br>
&gt; &gt; 2009/11/11 Kimmo Hämäläinen &lt;<a href="mailto:kimmo.hamalainen@nokia.com">kimmo.hamalainen@nokia.com</a>&gt;<br>
&gt; &gt;         On Wed, 2009-11-11 at 08:28 +0100, Hamalainen Kimmo (Nokia-<br>
&gt; &gt;         D/Helsinki)<br>
&gt; &gt;         wrote:<br>
&gt; &gt;         &gt; On Tue, 2009-11-10 at 16:15 +0100, ext Luca Donaggio wrote:<br>
&gt; &gt;         &gt; &gt; I thought it was somewhat related to transparency because<br>
&gt; &gt;         doing this:<br>
&gt; &gt;         &gt; &gt;<br>
&gt; &gt;         &gt; &gt; gdk_window_reparent(win-&gt;window,gtk_widget_get_window<br>
&gt; &gt;         (GTK_WIDGET<br>
&gt; &gt;         &gt; &gt; (mainwin)),300,200);<br>
&gt; &gt;         &gt; &gt;<br>
&gt; &gt;         &gt; &gt; makes the HildonAppMenu work again at the price of loosing<br>
&gt; &gt;         the<br>
&gt; &gt;         &gt; &gt; transparency effect (modified code attached).<br>
&gt; &gt;         &gt;<br>
&gt; &gt;         &gt; Reparenting &#39;win-&gt;window&#39; makes it a child of &#39;mainwin&#39;.<br>
&gt; &gt;         That is<br>
&gt; &gt;         &gt; completely different ballgame than the original code, which<br>
&gt; &gt;         keeps &#39;win-<br>
&gt; &gt;         &gt; &gt;window&#39; a top-level window (child of the root).  When the<br>
&gt; &gt;         window is not<br>
&gt; &gt;         &gt; top-level, it&#39;s not managed by the window manager anymore,<br>
&gt; &gt;         but it could<br>
&gt; &gt;         &gt; also cause something in Gtk/Hildon (at least I have checked<br>
&gt; &gt;         all places<br>
&gt; &gt;         &gt; deleting windows in hildon-desktop to no avail).<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;         Finally I found the reason for hiding the menu!  It&#39;s in<br>
&gt; &gt;         libhildon<br>
&gt; &gt;         function hildon_app_menu_find_intruder. It thinks that the<br>
&gt; &gt;         window with<br>
&gt; &gt;         the &quot;This is an RGBA window&quot; label is an &quot;intruder&quot; (such as<br>
&gt; &gt;         dialog<br>
&gt; &gt;         etc.) and closes the menu as soon as it is mapped.  This seems<br>
&gt; &gt;         like a<br>
&gt; &gt;         bug since the menu should not be mapped in the first place if<br>
&gt; &gt;         this<br>
&gt; &gt;         &quot;intruder&quot; is already there at mapping time.<br>
&gt; &gt;<br>
&gt; &gt;         To summarize: this is libhildon bug and hildon-desktop is<br>
&gt; &gt;         completely<br>
&gt; &gt;         innocent (at last...)!  ;)<br>
&gt; &gt;<br>
&gt; &gt;         -Kimmo<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;         &gt;<br>
&gt; &gt;         &gt; -Kimmo<br>
&gt; &gt;         &gt;<br>
&gt; &gt;         &gt; &gt; --<br>
&gt; &gt;         &gt; &gt; Luca Donaggio<br>
&gt; &gt;         &gt; &gt;<br>
&gt; &gt;         &gt; &gt; 2009/11/10 Kimmo Hämäläinen &lt;<a href="mailto:kimmo.hamalainen@nokia.com">kimmo.hamalainen@nokia.com</a>&gt;<br>
&gt; &gt;         &gt; &gt;         On Tue, 2009-11-10 at 14:12 +0100, ext Luca<br>
&gt; &gt;         Donaggio wrote:<br>
&gt; &gt;         &gt; &gt;         &gt; Hi Kimmo,<br>
&gt; &gt;         &gt; &gt;         &gt;<br>
&gt; &gt;         &gt; &gt;         &gt; I&#39;m sorry to bother you again, but the problem<br>
&gt; &gt;         I&#39;m facing is<br>
&gt; &gt;         &gt; &gt;         not how<br>
&gt; &gt;         &gt; &gt;         &gt; to get a transparent window, but that if I<br>
&gt; &gt;         create such a<br>
&gt; &gt;         &gt; &gt;         window the<br>
&gt; &gt;         &gt; &gt;         &gt; HildonAppMenu of its parent HildonWindow doesn&#39;t<br>
&gt; &gt;         show<br>
&gt; &gt;         &gt; &gt;         anymore.<br>
&gt; &gt;         &gt; &gt;         &gt; I (slightly) modified your code to exemplify my<br>
&gt; &gt;         situation.<br>
&gt; &gt;         &gt; &gt;<br>
&gt; &gt;         &gt; &gt;<br>
&gt; &gt;         &gt; &gt;         Ah, yes, I can see it.  Looks like the menu is<br>
&gt; &gt;         unmapped<br>
&gt; &gt;         &gt; &gt;         immediately when<br>
&gt; &gt;         &gt; &gt;         it is shown. It&#39;s weird, I&#39;m not yet sure what<br>
&gt; &gt;         unmaps it...<br>
&gt; &gt;         &gt; &gt;          Now it<br>
&gt; &gt;         &gt; &gt;         looks like hildon-desktop is not unmapping it, so<br>
&gt; &gt;         it could be<br>
&gt; &gt;         &gt; &gt;         widget<br>
&gt; &gt;         &gt; &gt;         side problem also. I&#39;ll try to find out.<br>
&gt; &gt;         &gt; &gt;<br>
&gt; &gt;         &gt; &gt;         BTW. this problem is not related to the<br>
&gt; &gt;         transparency: opaque<br>
&gt; &gt;         &gt; &gt;         window does<br>
&gt; &gt;         &gt; &gt;         the same.<br>
&gt; &gt;         &gt; &gt;<br>
&gt; &gt;         &gt; &gt;         -Kimmo<br>
&gt; &gt;         &gt; &gt;<br>
&gt; &gt;         &gt; &gt;<br>
&gt; &gt;         &gt; &gt;         &gt;<br>
&gt; &gt;         &gt; &gt;         &gt;<br>
&gt; &gt;         &gt; &gt;         &gt; Thanks for your time,<br>
&gt; &gt;         &gt; &gt;         &gt;<br>
&gt; &gt;         &gt; &gt;         &gt; Luca Donaggio<br>
&gt; &gt;         &gt; &gt;         &gt;<br>
&gt; &gt;         &gt; &gt;         &gt; 2009/11/10 Kimmo Hämäläinen<br>
&gt; &gt;         &lt;<a href="mailto:kimmo.hamalainen@nokia.com">kimmo.hamalainen@nokia.com</a>&gt;<br>
&gt; &gt;         &gt; &gt;         &gt;         Hi,<br>
&gt; &gt;         &gt; &gt;         &gt;<br>
&gt; &gt;         &gt; &gt;         &gt;         Sorry, took some time, I was busy with<br>
&gt; &gt;         some bug<br>
&gt; &gt;         &gt; &gt;         fixing...  I<br>
&gt; &gt;         &gt; &gt;         &gt;         started<br>
&gt; &gt;         &gt; &gt;         &gt;         with the Home applet example and managed<br>
&gt; &gt;         to whip up<br>
&gt; &gt;         &gt; &gt;         a small<br>
&gt; &gt;         &gt; &gt;         &gt;         example<br>
&gt; &gt;         &gt; &gt;         &gt;         (attached) that shows a transparent pop-<br>
&gt; &gt;         up window.<br>
&gt; &gt;         &gt; &gt;         &gt;<br>
&gt; &gt;         &gt; &gt;         &gt;         -Kimmo<br>
&gt; &gt;         &gt; &gt;         &gt;<br>
&gt; &gt;         &gt; &gt;         &gt;<br>
&gt; &gt;         &gt; &gt;<br>
&gt; &gt;         &gt; &gt;<br>
&gt; &gt;         &gt; &gt;<br>
&gt; &gt;         &gt;<br>
&gt; &gt;<br>
&gt; &gt;         &gt; _______________________________________________<br>
&gt; &gt;         &gt; maemo-developers mailing list<br>
&gt; &gt;         &gt; <a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a><br>
&gt; &gt;         &gt; <a href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; maemo-developers mailing list<br>
&gt; <a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a><br>
&gt; <a href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br>
<br>
</div></div></blockquote></div><br>