* bugfix from http://tracker.ardour.org/view.php?id=2155 thanks to kristian: fix...
[ardour.git] / gtk2_ardour / location_ui.h
index 8f16e2b43ac135a8a4a9a48de4d0276e58e5faa0..de435b999fc8fbe9e25b693fd0df20e4ecca41ee 100644 (file)
@@ -15,7 +15,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #ifndef __ardour_location_ui_h__
@@ -32,7 +31,6 @@
 #include <ardour/session.h>
 
 #include "ardour_dialog.h"
-#include "keyboard_target.h"
 
 namespace ARDOUR {
        class LocationStack;
@@ -124,8 +122,6 @@ class LocationEditRow  : public Gtk::HBox
        void scms_toggled ();
        void preemph_toggled ();
 
-       gint entry_focus_event (GdkEventFocus* ev);
-       
        void end_changed (ARDOUR::Location *);
        void start_changed (ARDOUR::Location *);
        void name_changed (ARDOUR::Location *);
@@ -149,14 +145,13 @@ class LocationUI : public ArdourDialog
 
        void set_session (ARDOUR::Session *);
 
-  private:
-
-
-       ARDOUR::LocationStack          *locations;
+       void on_show();
 
+  private:
+       ARDOUR::LocationStack* locations;
+        
        void session_gone();
 
-
        Gtk::VBox  location_vpacker;
        Gtk::HBox  location_hpacker;
 
@@ -199,6 +194,9 @@ class LocationUI : public ArdourDialog
        void location_removed (ARDOUR::Location *);
        void location_added (ARDOUR::Location *);
        void map_locations (ARDOUR::Locations::LocationList&);
+
+  protected:
+       bool on_delete_event (GdkEventAny*);
 };
 
 #endif // __ardour_location_ui_h__