summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext/gtkmm2ext
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-03-19 02:49:01 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-03-19 02:49:01 +0000
commitf0748535a5023d132eff03999a705a3e56c516db (patch)
tree34924d873426319d77cb52ac3239acb7aec916a1 /libs/gtkmm2ext/gtkmm2ext
parent295eb9a395d2ad36654a1d71019a571400adaee8 (diff)
save tearoff state; restore monitor section state reasonably well; fixup access control to parts of editor.h (needs more work); extend CrossThread just a little
git-svn-id: svn://localhost/ardour2/branches/3.0@6774 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/gtkmm2ext/gtkmm2ext')
-rw-r--r--libs/gtkmm2ext/gtkmm2ext/tearoff.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/gtkmm2ext/gtkmm2ext/tearoff.h b/libs/gtkmm2ext/gtkmm2ext/tearoff.h
index 737a6ddd03..db01684e2f 100644
--- a/libs/gtkmm2ext/gtkmm2ext/tearoff.h
+++ b/libs/gtkmm2ext/gtkmm2ext/tearoff.h
@@ -25,6 +25,8 @@
#include <gtkmm/box.h>
#include <gtkmm/eventbox.h>
+class XMLNode;
+
namespace Gtkmm2ext {
class TearOff : public Gtk::HBox
@@ -44,6 +46,11 @@ class TearOff : public Gtk::HBox
Gtk::Window& tearoff_window() { return own_window; }
bool torn_off() const;
+ void tear_it_off ();
+ void put_it_back ();
+
+ void set_tornoff_state (const XMLNode&);
+ void add_tornoff_state (XMLNode&) const;
private:
Gtk::Widget& contents;
@@ -58,6 +65,10 @@ class TearOff : public Gtk::HBox
bool dragging;
bool _visible;
bool _can_be_torn_off;
+ int own_window_width;
+ int own_window_height;
+ int own_window_xpos;
+ int own_window_ypos;
gint tearoff_click (GdkEventButton*);
gint close_click (GdkEventButton*);
@@ -66,6 +77,9 @@ class TearOff : public Gtk::HBox
gint window_button_press (GdkEventButton*);
gint window_button_release (GdkEventButton*);
gint window_delete_event (GdkEventAny*);
+
+ void own_window_realized ();
+ bool own_window_configured (GdkEventConfigure*);
};
} /* namespace */