mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 15:15:41 +01:00
add accessor for the Gtk::Main hidden inside Gtkmmext::UI
git-svn-id: svn://localhost/ardour2/branches/3.0@4730 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
922e79c94a
commit
7ea68ecad6
1 changed files with 3 additions and 1 deletions
|
|
@ -120,6 +120,8 @@ class UI : public Receiver, public AbstractUI<UIRequest>
|
|||
void set_tip (Gtk::Widget *w, const gchar *tip, const gchar *hlp);
|
||||
void idle_add (int (*func)(void *), void *arg);
|
||||
|
||||
Gtk::Main& main() const { return *theMain; }
|
||||
|
||||
template<class T> static bool idle_delete (T *obj) { delete obj; return false; }
|
||||
template<class T> static void delete_when_idle (T *obj) {
|
||||
Glib::signal_idle().connect (bind (slot (&UI::idle_delete<T>), obj));
|
||||
|
|
@ -139,7 +141,7 @@ class UI : public Receiver, public AbstractUI<UIRequest>
|
|||
static bool just_hide_it (GdkEventAny *, Gtk::Window *);
|
||||
|
||||
static pthread_t the_gui_thread() { return gui_thread; }
|
||||
|
||||
|
||||
protected:
|
||||
virtual void handle_fatal (const char *);
|
||||
virtual void display_message (const char *prefix, gint prefix_len,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue