! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Width of the panel in autohide mode should be customizable
Status:
RESOLVED: WORKSFORME
Severity:
enhancement
Product:
Xfce4-panel

Comments

Description Jussi Hukkanen 2011-12-11 17:50:32 CET
I'm sure this has been discussed several times in the past, e.g. in bug #4414: https://bugzilla.xfce.org/show_bug.cgi?id=4414

The Xfce panel 4.8.6 is wonderful, but myself and some others would like to be able to change the size of the autohidden panel. The 3-pixel line appears a bit too clumsy for my taste.

I did some amateur hacking and built my own customized version of `xfce4-panel'. I added a property (`autohide-size') in xfconf that sets the width of the hidden panel. This can even be zero to make the panel disappear totally when hidden. However, the way this is achieved is not very clean: an invisible panel is actually one pixel wide but filled with black, so it is pretty close to not being there at all. You just lose one row of pixels from your screen edge.

There are obvious problems with this approach; for one thing, the invisible mode doesn't look very good if the length of your panel doesn't cover the screen edge from corner to corner. Another bug is that when you do things like change your GTK+ theme, the invisible panel becomes visible again until you hover it.

I have to tell you that I'm totally new to hacking Xfce (or GTK+ or Cairo) and I'm not at all sure if all my changes make sense. What I did was look at the code and try different things until it worked for me. I'll see if I can post a patch here later.
Comment 1 Nick Schermer editbugs 2011-12-11 17:53:32 CET
This is already implemented with a style property. You can also make the line transparent with the leave-opacity.
Comment 2 Jussi Hukkanen 2011-12-11 18:21:39 CET
That's great news, thanks! What is this property called and how do I access it?

I forgot to mention that I am aware of all the things you can do with compositing in xfwm4, but I prefer to keep it disabled because I have no need for the eye candy.
Comment 4 Jussi Hukkanen 2011-12-11 21:27:31 CET
So it is `XfcePanelWindow::autohide-size' then? Thanks. The code I've been looking at is the xfce4-panel-4.8.6 tarball, which doesn't mention this property in README.gtkrc-2.0 or anywhere in the panel code, so I had no idea it existed. Guess I should have used git?

Is this the patch where the autohide-size property was added? It is dated 2011-05-28:
http://git.xfce.org/xfce/xfce4-panel/commit/?id=2d84329885b5754122f1a2613be8c4ab9d7925e8

It looks like the minimum value for the property is one pixel, so the only way to make the panel totally invisible would be to turn compositing on and use leave-opacity, right?
Comment 5 Nick Schermer editbugs 2011-12-11 21:42:16 CET
Yes that is the commit and indeed you need either master or wait for the next devel release.

Bug #8241

Reported by:
Jussi Hukkanen
Reported on: 2011-12-11
Last modified on: 2011-12-11

People

Assignee:
Nick Schermer
CC List:
0 users

Version

Attachments

Additional information