Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Mouse Double Click Speed< Next Oldest | Next Newest >
MdB Offline





Group: Members
Posts: 6
Joined: Sep. 2007
Posted: Sep. 28 2007,15:28 QUOTE

mikshaw, Emelfm uses gtk (I think) so changing .gtkrc should do it I would have thought. I certainly can change all the colours and stuff in the application by mucking around with it. The GTK manual on .gtkrc seems very brief and not very useful though.
Back to top
Profile PM 
MdB Offline





Group: Members
Posts: 6
Joined: Sep. 2007
Posted: Sep. 28 2007,15:51 QUOTE

Can't find much on Xvesa to see what it supports. hmm. running out of ideas here....
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Sep. 28 2007,16:11 QUOTE

The options I've seen so far seem to be restricted on what mouse driver you use... but an alternative you could use is setting a button that does a double click.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Sep. 28 2007,20:14 QUOTE

There's something about double-clicks in gtkrc here:
http://docs.linux.cz/program....gs.html
(about halfway down the page)

I have no idea if this applies only to Gtk 2.0 or if it can also be used in DSL (Gtk 1.2)


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
MdB Offline





Group: Members
Posts: 6
Joined: Sep. 2007
Posted: Sep. 29 2007,21:43 QUOTE

gtk-double-click-time is not mentioned in the source for gtk 1.2  at all unfortunately which I guess says it isn't supported. Something must set the double click speed though....

There is an example in the FAQ for gtk 1.2 which I don't understand. Anybody follow this?

Code Sample
5.7 How do I catch a double click event (in a list widget, for example)?

Tim Janik wrote to gtk-list (slightly modified):

Define a signal handler:

   gint
   signal_handler_event(GtkWiget *widget, GdkEvenButton *event, gpointer func_data)
   {
     if (GTK_IS_LIST_ITEM(widget) &&
          (event->type==GDK_2BUTTON_PRESS ||
           event->type==GDK_3BUTTON_PRESS) ) {
       printf("I feel %s clicked on button %d\",
              event->type==GDK_2BUTTON_PRESS ? "double" : "triple",
              event->button);
     }

     return FALSE;
   }

And connect the handler to your object:

   {
     /* list, list item init stuff */    

     gtk_signal_connect(GTK_OBJECT(list_item),
                        "button_press_event",
                        GTK_SIGNAL_FUNC(signal_handler_event),
                        NULL);

     /* and/or */

     gtk_signal_connect(GTK_OBJECT(list_item),
                        "button_release_event",
                        GTK_SIGNAL_FUNC(signal_handler_event),
                        NULL);

     /* something else */
   }

and, Owen Taylor wrote:

Note that a single button press will be received beforehand, and if you are doing this for a button, you will therefore also get a "clicked" signal for the button. (This is going to be true for any toolkit, since computers aren't good at reading one's mind.)
Back to top
Profile PM 
9 replies since Sep. 26 2007,14:00 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: Mouse Double Click Speed

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code