13
0

clean up ArdourWindow

- gtk callbacks are protected, not public
- virtual d'tor (destroy window by ArdourWindow ptr)
This commit is contained in:
Robin Gareus 2016-05-21 03:31:27 +02:00
parent 331d9f7154
commit 61f2781983

View File

@ -42,8 +42,9 @@ class ArdourWindow : public Gtk::Window, public ARDOUR::SessionHandlePtr, public
public: public:
ArdourWindow (std::string title); ArdourWindow (std::string title);
ArdourWindow (Gtk::Window& parent, std::string title); ArdourWindow (Gtk::Window& parent, std::string title);
~ArdourWindow(); virtual ~ArdourWindow();
protected:
bool on_focus_in_event (GdkEventFocus*); bool on_focus_in_event (GdkEventFocus*);
bool on_focus_out_event (GdkEventFocus*); bool on_focus_out_event (GdkEventFocus*);
bool on_delete_event (GdkEventAny *); bool on_delete_event (GdkEventAny *);