# HG changeset patch # User IBBoard # Date 1294504773 0 # Node ID 50d774f164ddb32cbc3295afcd0e25a402842ecb # Parent c9e1ad81afbe9d926988a22e30ef8e67b46d0427 Re #26: Add GTK wrapper methods * Switch to more sensible "released" event diff -r c9e1ad81afbe -r 50d774f164dd NotebookUtil.cs --- a/NotebookUtil.cs Sat Jan 08 16:37:41 2011 +0000 +++ b/NotebookUtil.cs Sat Jan 08 16:39:33 2011 +0000 @@ -50,7 +50,7 @@ EventBox eventBox = new EventBox(); HBox hbox = new HBox(); eventBox.Add(hbox); - eventBox.ButtonPressEvent += delegate(object o, ButtonPressEventArgs args) { + eventBox.ButtonReleaseEvent += delegate(object o, ButtonReleaseEventArgs args) { if (args.Event.Button == (uint)MouseButton.Middle) { notebook.Remove(page);