You are not logged in.
I am currently testing the xfce 4.13 version and everything is running smoothly. I have tried to delay the hide and unhide time for the panel. While placing the appropriate delays in .gtkrc-2.0 works in 4.12 it no longer works in 4.13. I am assuming this is a functoin of gtk3. How would you institute a delay on hide and unhide panel. Is it even possible in the gtk3 version?
Offline
Hello and welcome.
Unfortunately, it doesn't look like that part of the code has been migrated to work in GTK3 yet (or changed so that it becomes properties that can be set via the configuration screen or via xfconf). Perhaps best to create a bug report to let the developer know.
I take that back. This seems to work:
* {
-XfcePanelWindow-popup-delay: 1000;
-XfcePanelWindow-popdown-delay: 1000;
-XfcePanelWindow-autohide-size: 10;
}
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thank you so much. I will give it a shot, however just to make sure would I put this in the .gtkrc-2.0 file or something like usercontent.css in the gtk3.0 folder?
Last edited by nadb (2017-10-03 01:19:04)
Offline
Put it in ~/.config/gtk-3.0/gtk.css.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
That did the trick. Thanks.
Offline
Hello!
I don't know if I should open a new thread as this one is a little older. I am new to the forum and people seem to handle this differently.
I am using xfce on debian stretch and I would like the panels to hide fully (no white edge overlapping with my windows). Can I use the above solution to do that? I tried to use
-XfcePanelWindow-autohide-size: 0
, but that did not change anything.
Offline
Hello and welcome, @evilolive.
Doesn't debian stretch use xfce4-panel 4.12.x? If so, its the gtk2 version of xfce4-panel and the entry should go into ~/.gtkrc-2.0. Here is the documentation for that.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Mh, yes, google says it used 4.12.3. But I have gtk2 and gtk3 packages on my computer and the gtkrc-2.0 file does not seem to have any effect. I tried it as described here https://unix.stackexchange.com/question … ar-in-xfce
Offline
Can you post the full contents of your ~/.gtkrc-2.0 file?
It should be something like:
style "xfce-panel-window-style"
{
XfcePanelWindow::autohide-size = 0
}
class "XfcePanelWindow" style "xfce-panel-window-style"
Also I don't think you can fully hide it - there will always be at least 1 pixel width showing. You can fake it's invisibility by setting the opacity to 0 so it's not visible.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Yes, mine looked like this:
style "xfce-panel-window-style"
{
# Time in miliseconds before the panel will unhide on an enter event
XfcePanelWindow::popup-delay = 225
# Time in miliseconds before the panel will hide on a leave event
XfcePanelWindow::popdown-delay = 350
# Size of autohide window in pixels
XfcePanelWindow::autohide-size = 20
}
class "XfcePanelWindow" style "xfce-panel-window-style"
I didn't realise that the panel would still be 1 pixel in width, so I thought it had not changed, but I know tried 20 pixels and saw the effect.
I now set the opacity to 0, which looks satisfactory for me, thanks for the tip!
So, probably a stupid question but why do I have both gtk 2 and 3 installed? Does the desktop environment exclusively use gtk 2? Where could I learn more about this kind of stuff?
Offline
So, probably a stupid question but why do I have both gtk 2 and 3 installed? Does the desktop environment exclusively use gtk 2?
Outside of even Xfce, apps are built using multiple different toolkits. GTK2 / GTK3 / QT/ etc - so you need those libraries installed to run those specific applications.
With respect to Xfce, the version that you are using still has most of it's components built using the GTK2 toolkit, but some are also built using GTK3 (xfce4-notes, pulseaudio-plugin). Xfce itself supports both GTK2 and GTK3 because of this. Moving forward, the new version of Xfce will be built with GTK3, but as fas as I've heard, it will still support GTK2 for backward compatibility.
Where could I learn more about this kind of stuff?
Start with an understanding of widgets and widget toolkits:
- https://en.wikipedia.org/wiki/Widget_(GUI)
- https://en.wikipedia.org/wiki/List_of_widget_toolkits
Then read up more on the two main ones for Linux:
- https://www.gtk.org/
- https://www.qt.io
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
For GTK3.0 following settings works fine:
* {
-XfcePanelWindow-autohide-size: 1;
}
Minimum size is equal to 1px.
Offline
[ Generated in 0.015 seconds, 7 queries executed - Memory usage: 571.67 KiB (Peak: 588.52 KiB) ]