Minor issue in gtkglarea-sharp's PickWidget.cs: the right mouse
button is ignored upon press, but not upon release, leading to weird
behaviour.

-- 
Sam.
Index: examples/pick-object/PickWidget.cs
===================================================================
--- examples/pick-object/PickWidget.cs	(revision 88388)
+++ examples/pick-object/PickWidget.cs	(working copy)
@@ -135,10 +135,11 @@
 		
 		void OnButtonRelease (object o, Gtk.ButtonReleaseEventArgs e)
 		{
-			if(e.Event.Button == 1){
-				button1Pressed = false;
-			}
-			
+			if(e.Event.Button != 1)
+				return;
+
+			button1Pressed = false;
+
 			if(this.CurrentInputMode == GtkGL.InputMode.PickMode){
 				// This document is based on the following example:
 				// http://www.lighthouse3d.com/opengl/picking/
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to