X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fardour_dialog.h;h=76d7ac1d08a34d7c9047c8003c31961f5d496b60;hb=3dcb7bf3d3f4eca512c799b5f63fd412e5e3e233;hp=d994c0a6d110ce37fa23de8b4df6fc574a444579;hpb=bedc7b170eb72f1b9aaaf3872c7160aa1661a4e1;p=ardour.git diff --git a/gtk2_ardour/ardour_dialog.h b/gtk2_ardour/ardour_dialog.h index d994c0a6d1..76d7ac1d08 100644 --- a/gtk2_ardour/ardour_dialog.h +++ b/gtk2_ardour/ardour_dialog.h @@ -37,21 +37,25 @@ namespace WM { */ class ArdourDialog : public Gtk::Dialog, public ARDOUR::SessionHandlePtr { - public: +public: ArdourDialog (std::string title, bool modal = false, bool use_separator = false); ArdourDialog (Gtk::Window& parent, std::string title, bool modal = false, bool use_separator = false); ~ArdourDialog(); - bool on_enter_notify_event (GdkEventCrossing*); - bool on_leave_notify_event (GdkEventCrossing*); - bool on_delete_event (GdkEventAny*); - bool on_key_press_event (GdkEventKey*); + bool on_focus_in_event (GdkEventFocus*); + bool on_focus_out_event (GdkEventFocus*); + bool on_delete_event (GdkEventAny*); void on_unmap (); void on_show (); + virtual void on_response (int); - private: - WM::ProxyTemporary* proxy; - bool _splash_pushed; +protected: + void pop_splash (); + void close_self (); + +private: + WM::ProxyTemporary* proxy; + bool _splash_pushed; void init (); static sigc::signal CloseAllDialogs;