Re: getting rid of topbar



2011/7/12 Artur Wroblewski <wrobell pld-linux org>
On Thu, Jun 2, 2011 at 10:26 AM, Florian Müllner <fmuellner gnome org> wrote:
It is quite worrying that simple Main.panel.actor.hide is
not enough. Why hackery involving subcomponents of
topbar is required? (I don't care about animations and
so on)

That is because the panel sets struts[0] accordingly.


Any tips how to simplify the code above?

If you don't care about the animation, you can just set the properties directly, e.g.

Main.panel.actor.height = 1;
Main.panel._leftCorner.actor.y = 0;
...

Note that the corners don't affect the struts, so a simple corner.actor.hide() should work; I don't see why you set the opacity of Main.panel._boxContainer, Main.panel.actor.hide() should do the trick.

 
Or should I report a bug about Main.panel.actor.hide?

It's not specific to Main.panel.actor. I'm not sure if there is a reason for allowing hidden actors to add struts, I filed a patch[1] to find out ...


Florian
 

[0] http://standards.freedesktop.org/wm-spec/wm-spec-latest.html#id2552069
[1]https://bugzilla.gnome.org/show_bug.cgi?id=654518


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]