Re: Fw: new release

John Ellis <[email protected]> Sat, 14 Oct 2006 16:18:34 -0400
Newsgroups gmane.comp.gnome.apps.gqview.devel
Message-ID <[email protected]>
Frédéric wrote:

> On Saturday 14 October 2006 17:34, Frédéric wrote:
[...]
>>> Dragging the middle mouse button starts a drag and drop operation
>>> containing the file path of the displayed image.
>> I think that it is more intuitive to bind this drag'n'drop feature to
>> the left button, rather than the middle one...
> 
> Could you tell me where this behaviour is in the source code? If you prefer 
> not to change the default mecanism (which I understand), I may try to make 
> my own patch...

The button assigned to panning with the mouse is hard coded into 
pixbuf-renderer.c, in the function pr_mouse_press_cb(). Swap mouse buttons 
by changing the case numbers in the switch() statement.

The button assignments for click events are one layer up in the respective 
portions of the code. For example the main window image display is handled 
in layout_image.c, in the function layout_image_button_cb(), simply change 
or swap the cases of the switch() statement. To find the other image button 
handlers search for calls to image_set_button_func(), the function passed 
to image_set_button_func() will be the one that handles the button clicks.

Drag and drop may be a bit harder to find for each window type, but at 
least for the main window it is set in layout_image_dnd_init() of 
layout_image.c. Change GDK_BUTTON2_MASK in the call to gtk_drag_source_set().

Disclaimer: I have not actually tried to change anything, but these appear 
to me to be the correct places.

Greetings,
John

-- 
John Ellis <[email protected]>

http://gqview.sourceforge.net <GQview> | http://hideseek.sourceforge.net
http://gqmpeg.sourceforge.net <GQmpeg> |     <Preferences Hide and Seek>



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642