Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-09-30 01:01:17

nadb
Member
Registered: 2017-09-30
Posts: 3

Is there an equivalent to .gtkrc-2.0 for xfce 4.13

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

#2 2017-09-30 11:09:28

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Is there an equivalent to .gtkrc-2.0 for xfce 4.13

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

#3 2017-10-03 01:16:40

nadb
Member
Registered: 2017-09-30
Posts: 3

Re: Is there an equivalent to .gtkrc-2.0 for xfce 4.13

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

#4 2017-10-03 02:17:53

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Is there an equivalent to .gtkrc-2.0 for xfce 4.13

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

#5 2017-10-03 11:28:59

nadb
Member
Registered: 2017-09-30
Posts: 3

Re: Is there an equivalent to .gtkrc-2.0 for xfce 4.13

That did the trick.  Thanks.

Offline

#6 2019-01-04 20:04:00

evilolive
Member
Registered: 2019-01-04
Posts: 3

Re: Is there an equivalent to .gtkrc-2.0 for xfce 4.13

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

#7 2019-01-04 23:49:31

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Is there an equivalent to .gtkrc-2.0 for xfce 4.13

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

#8 2019-01-05 13:24:40

evilolive
Member
Registered: 2019-01-04
Posts: 3

Re: Is there an equivalent to .gtkrc-2.0 for xfce 4.13

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

#9 2019-01-05 13:38:13

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Is there an equivalent to .gtkrc-2.0 for xfce 4.13

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

#10 2019-01-05 14:32:19

evilolive
Member
Registered: 2019-01-04
Posts: 3

Re: Is there an equivalent to .gtkrc-2.0 for xfce 4.13

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

#11 2019-01-05 15:00:28

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Is there an equivalent to .gtkrc-2.0 for xfce 4.13

evilolive wrote:

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

#12 2023-06-18 22:38:10

pantarhei
Member
Registered: 2022-03-21
Posts: 4

Re: Is there an equivalent to .gtkrc-2.0 for xfce 4.13

For GTK3.0 following settings works fine:

* {
  -XfcePanelWindow-autohide-size: 1;
}

Minimum size is equal to 1px.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.015 seconds, 7 queries executed - Memory usage: 571.67 KiB (Peak: 588.52 KiB) ]