Re: Trouble with button mask
- From: James Steward <jamessteward optusnet com au>
- To: gtk-app-devel-list gnome org
- Subject: Re: Trouble with button mask
- Date: Mon, 14 May 2012 15:52:15 +1000
Stupid question below. Please ignore.
James.
On 14/05/12 15:47, James Steward wrote:
Hi,
I've been trying to get a canvas select item event to fire for a
gtk_plot_canvas.
Upon left clicking inside a plot canvas, I can see that
gtk_plot_canvas_button_press(...) gets called, and the following lines
near the beginning of that function (in the gtkextra lib) cause the
function to exit without anything being selected.
gdk_window_get_pointer(widget->window, NULL, NULL, &mods);
if(!(mods & GDK_BUTTON1_MASK)) return FALSE;
Upon inspection of the variable "mods", it appears to have a value of
GDK_MOD2_MASK, according to GDB.
Anyone know why a GDK_BUTTON1_MASK isn't read when I left click?
Regards,
James.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]