summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-03-05 12:25:15 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-03-05 12:25:15 +0000
commit7ea68ecad60621a667c53d2450ccce9aed712589 (patch)
tree8d120a1ac4415c114663308b50cd1a8ced2b3cdd /libs
parent922e79c94ad0fa6407bbc87e3a862c5c8eea2ee7 (diff)
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
Diffstat (limited to 'libs')
-rw-r--r--libs/gtkmm2ext/gtkmm2ext/gtk_ui.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/gtkmm2ext/gtkmm2ext/gtk_ui.h b/libs/gtkmm2ext/gtkmm2ext/gtk_ui.h
index 89f3413435..f36f6de84f 100644
--- a/libs/gtkmm2ext/gtkmm2ext/gtk_ui.h
+++ b/libs/gtkmm2ext/gtkmm2ext/gtk_ui.h
@@ -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,