<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
from xfce-desktop.c :<br>
______________________________________<br>
static gboolean<br>
xfce_desktop_button_press_event(GtkWidget *w,<br>
GdkEventButton *evt)<br>
{<br>
guint button = evt->button;<br>
guint state = evt->state;<br>
<br>
if(evt->type == GDK_BUTTON_PRESS) {<br>
if(button == 2 || (button == 1 && (state &
GDK_SHIFT_MASK)<br>
&& (state & GDK_CONTROL_MASK)))<br>
{<br>
xfce_desktop_popup_secondary_root_menu(XFCE_DESKTOP(w),<br>
button,
evt->time);<br>
return TRUE;<br>
} else if(button == 3 || (button == 1 && (state &
GDK_SHIFT_MASK))) {<br>
xfce_desktop_popup_root_menu(XFCE_DESKTOP(w),<br>
button, evt->time);<br>
return TRUE;<br>
}<br>
}<br>
<br>
return FALSE;<br>
}<br>
______________________________________<br>
<br>
button == 1, button == 2 , button == 3 ... I think that each mouse
button can be mapped to whatever callback... no ?<br>
<br>
<br>
Brian J. Tarricone wrote:
<blockquote cite="mid:20090113064352.794b89b1@kepler" type="cite">
<pre wrap="">On Tue, 13 Jan 2009 10:51:33 +0100 (CET) <a class="moz-txt-link-abbreviated" href="mailto:jp.guillemin@free.fr">jp.guillemin@free.fr</a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">What about the configuration option to affect each mouse button to a
different menu ? (I remind that you told me that you would add this
configuration option in the RC ..)
</pre>
</blockquote>
<pre wrap=""><!---->
I tried, but it turned out to be a bit more difficult than I expected.
I think some key+mouse-button combinations are reserved by gtk, and I
never figured out how to override them properly.
Personally I don't care about this enough to try to break gtk, so if
someone wants this, they'll have to come up with a patch themselves.
-brian
_______________________________________________
Xfce4-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Xfce4-dev@xfce.org">Xfce4-dev@xfce.org</a>
<a class="moz-txt-link-freetext" href="http://foo-projects.org/mailman/listinfo/xfce4-dev">http://foo-projects.org/mailman/listinfo/xfce4-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>