diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-12-01 13:23:27 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-12-01 13:23:27 +0000 |
commit | ea08bbe621c146a0940ce584e2b970dcb7d7c9e2 (patch) | |
tree | 9d7a032697c2495301e8ee80b6f4dbc8aac0fe4d /gtk2_ardour/startup.h | |
parent | 23531b0fa5b2de44f3daf9e5071955d2a1880259 (diff) |
fix logic problems with startup assistant; make initial page buttons of startup activatable to save mousing; grow recent sessions scrolled window if there are more than 4 recent sessions to display
git-svn-id: svn://localhost/ardour2/branches/3.0@6244 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/startup.h')
-rw-r--r-- | gtk2_ardour/startup.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gtk2_ardour/startup.h b/gtk2_ardour/startup.h index 8566204755..f0146e2a5e 100644 --- a/gtk2_ardour/startup.h +++ b/gtk2_ardour/startup.h @@ -58,19 +58,19 @@ class ArdourStartup : public Gtk::Assistant { bool connect_outs_to_master() const; bool connect_outs_to_physical() const; - bool applying () const { - return _applying; + gint response () const { + return _response; } private: - bool _applying; + gint _response; bool config_modified; bool new_user; bool new_only; void on_apply (); void on_cancel (); - void on_close (); + bool on_delete_event (GdkEventAny*); void on_prepare (Gtk::Widget*); static ArdourStartup *the_startup; @@ -95,7 +95,8 @@ class ArdourStartup : public Gtk::Assistant { Gtk::VBox ic_vbox; Gtk::RadioButton ic_new_session_button; Gtk::RadioButton ic_existing_session_button; - bool initial_choice_activated(GdkEventButton *); + bool initial_button_press(GdkEventButton *); + void initial_button_activated(); /* monitoring choices */ @@ -134,7 +135,7 @@ class ArdourStartup : public Gtk::Assistant { Gtk::TreeView recent_session_display; Glib::RefPtr<Gtk::TreeStore> recent_session_model; Gtk::ScrolledWindow recent_scroller; - void redisplay_recent_sessions (); + int redisplay_recent_sessions (); void recent_session_row_selected (); void recent_row_activated (const Gtk::TreePath& path, Gtk::TreeViewColumn* col); |