summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_window.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-05-21 03:31:27 +0200
committerRobin Gareus <robin@gareus.org>2016-05-21 03:32:08 +0200
commit61f27819831c894620fb029bb302535a21903523 (patch)
treeda91d0787cc60a0e8896b380865fa61b355af816 /gtk2_ardour/ardour_window.h
parent331d9f7154267ee7efea0f51fb140828d308fd9a (diff)
clean up ArdourWindow
- gtk callbacks are protected, not public - virtual d'tor (destroy window by ArdourWindow ptr)
Diffstat (limited to 'gtk2_ardour/ardour_window.h')
-rw-r--r--gtk2_ardour/ardour_window.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/gtk2_ardour/ardour_window.h b/gtk2_ardour/ardour_window.h
index 7ae9c3dbce..a4c5aaa0e4 100644
--- a/gtk2_ardour/ardour_window.h
+++ b/gtk2_ardour/ardour_window.h
@@ -39,20 +39,21 @@ namespace WM {
*/
class ArdourWindow : public Gtk::Window, public ARDOUR::SessionHandlePtr, public Gtkmm2ext::VisibilityTracker
{
- public:
+public:
ArdourWindow (std::string title);
ArdourWindow (Gtk::Window& parent, std::string title);
- ~ArdourWindow();
+ virtual ~ArdourWindow();
+protected:
bool on_focus_in_event (GdkEventFocus*);
bool on_focus_out_event (GdkEventFocus*);
- bool on_delete_event (GdkEventAny *);
- bool on_key_press_event (GdkEventKey*);
+ bool on_delete_event (GdkEventAny *);
+ bool on_key_press_event (GdkEventKey*);
void on_unmap ();
- private:
- WM::ProxyTemporary* proxy;
- void init ();
+private:
+ WM::ProxyTemporary* proxy;
+ void init ();
};
#endif // __ardour_window_h__