From 39dbfbaf661bfec067d02b26bbc04608d74413c6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 21 Dec 2007 03:32:55 +0000 Subject: Fix SLV2 GUI sketchiness, repeated embedding/unembedding/pop-up/window destroy, etc. Break out LV2 GUI stuff to a separate class, SharedPtr it up, spiffify, etc. git-svn-id: http://svn.drobilla.net/lad/ingen@993 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/gui/NodeModule.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/libs/gui/NodeModule.hpp') diff --git a/src/libs/gui/NodeModule.hpp b/src/libs/gui/NodeModule.hpp index dcfd97dd..d73b4529 100644 --- a/src/libs/gui/NodeModule.hpp +++ b/src/libs/gui/NodeModule.hpp @@ -69,6 +69,7 @@ protected: void show_control_window(); bool popup_gui(); + void on_gui_window_close(); void rename(); void set_variable(const std::string& key, const Atom& value); @@ -86,10 +87,11 @@ protected: SharedPtr _node; NodeMenu* _menu; - SLV2UIInstance _slv2_ui; - Gtk::Widget* _gui; - Gnome::Canvas::Widget* _gui_item; + SharedPtr _plugin_ui; + Gtk::Widget* _gui_widget; Gtk::Container* _gui_container; + Gnome::Canvas::Widget* _gui_item; ///< iff embedded + Gtk::Window* _gui_window; ///< iff popped up int _last_gui_request_width; int _last_gui_request_height; }; -- cgit v1.2.1