Small cleanups to port matrix context menu.
[ardour.git] / gtk2_ardour / editor_hscroller.cc
index c95d9230928381b64790030af129e0df7e788761..802d635b2ab860f37384484eea026b067f7a2654 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2002 Paul Davis 
+    Copyright (C) 2002 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #include "editor.h"
 
-#include <ardour/session.h>
+#include "ardour/session.h"
 
 using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 
 void
-Editor::hscrollbar_allocate (Gtk::Allocation &alloc)
+Editor::hscrollbar_allocate (Gtk::Allocation &)
 {
 }
 
 bool
-Editor::hscrollbar_button_press (GdkEventButton *ev)
+Editor::hscrollbar_button_press (GdkEventButton *)
 {
-       return true;
+       _dragging_hscrollbar = true;
+       return false;
 }
 
 bool
-Editor::hscrollbar_button_release (GdkEventButton *ev)
+Editor::hscrollbar_button_release (GdkEventButton *)
 {
+       _dragging_hscrollbar = false;
+
        if (session) {
 
        }
 
-       return true;
+       return false;
 }
 
 void