Page 1 of 1

How to adjust the double click's speed in PCManFM?

Posted: Sun Jun 21, 2009 1:06 pm
by lijunle
In PCManFM, the time between the first click and the second is short. I want to make it longer, but I haven't found the relevant item in config file even some information in the PCManFM wiki page. So, I sent this email to ask how to adjust it. Thank you.

Re: How to adjust the double click's speed in PCManFM?

Posted: Sun Jun 21, 2009 2:15 pm
by maces
Hi

Please have a look at LXInput, if it is not available for you distro (it's quite new) you can built it from svn:

Code: Select all

svn co https://lxde.svn.sourceforge.net/svnroot/lxde/trunk/lxinput ./lxinput
cd lxinput
./autogen.sh
./configure --prefix=/usr
make
sudo make install
You can adjust several settings for your keyboard and your mouse.

maces

Re: How to adjust the double click's speed in PCManFM?

Posted: Sun Jun 21, 2009 2:50 pm
by lijunle
Is there any other way? I am using the PCManFM in a arm device, SmartQ 5. It only has a touch screen. It is different to make double clicks on a touch screen by a pen in such a short time. Can I set something in the config file to adjust it?

Re: How to adjust the double click's speed in PCManFM?

Posted: Sun Jun 21, 2009 6:33 pm
by Frank
If you want to change the double-click speed in PCManFM *only* then I can't help. The following should however change the double-click speed for *all* programs that use the GTK2 toolkit -- PCManFM as well as others:

Find the hidden text file ".gtkrc-2.0" in your home directory. If it does not exist, create it. If it does exit, read it before you proceed -- it may advise you to use ".gtkrc-2.0.mine" instead.

Add the following line:

Code: Select all

gtk-double-click-time=1000
That increases the allowed interval between two clicks from its default (250 milliseconds) to a full second (1000 milliseconds). -- Note that the change affects programs that are started after you save the file, but not programs that are already open.

Re: How to adjust the double click's speed in PCManFM?

Posted: Sun Jun 21, 2009 6:43 pm
by lijunle
I am going to trying it. Thanks!

Re: How to adjust the double click's speed in PCManFM?

Posted: Mon Jun 22, 2009 3:00 pm
by lijunle
I tried it, but actually it doesn't work.

There is a .gtkrc-2.0 file, and it contains someting :

Code: Select all

style "my-scroll-bar" {
    GtkScrollbar::slider_width = 30
}
widget_class "*Scrollbar" style "my-scroll-bar"
I put the code "gtk-double-click-time=1000" in the end.

After restarting, the speed has not change anywhere.

Should I put the code in {}, or other place?

Re: How to adjust the double click's speed in PCManFM?

Posted: Mon Jun 22, 2009 3:06 pm
by Frank
Putting that line to the end of the file should have been enough. No {} required.

It worked here exactly as described. Sorry!

Re: How to adjust the double click's speed in PCManFM?

Posted: Mon Jun 22, 2009 4:22 pm
by lijunle
I got it!

Because I am using the touch screen by finger, so the point from the first click and the second is mostly more than 5 pixels (default value).
So, I one more line in the .gtk-2.0 file:

Code: Select all

gtk-double-click-distance=20
Then, a double-click by finger is OK!

Thanks for maces and Frank's help!

Re: How to adjust the double click's speed in PCManFM?

Posted: Sat Oct 01, 2011 12:58 pm
by pibach
Sorry that I reply to this old post. But this gave me troubles to figure out. I couln't do doubleclick in filmanager or browser. Almost went for XFCE - then found this solution, and this gtk configuration set to 400ms interval fixed it. Great, but this should be made more visible, FAQ at least. Better though, give it an integration into settings. Or increase the default value.