diff options
author | Robin Gareus <robin@gareus.org> | 2017-03-07 18:38:01 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-03-08 13:03:46 +0100 |
commit | 819d9fa3cd2421bbf6918e456f443cfe86f635de (patch) | |
tree | a064e022b10b7bd7164f502e9dcc5a807d07ece9 /gtk2_ardour/lxvst_plugin_ui.h | |
parent | 4b982ef895e1e5d36b0be0b20e7a2810e3f16945 (diff) |
VST UI sizeing rework
* prefer signal over timer-poll for VST size changes
* properly offset VST window (Windows)
* constrain window size (Windows)
* explicitly notify re-parent'ed child window (Linux)
Diffstat (limited to 'gtk2_ardour/lxvst_plugin_ui.h')
-rw-r--r-- | gtk2_ardour/lxvst_plugin_ui.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/lxvst_plugin_ui.h b/gtk2_ardour/lxvst_plugin_ui.h index 14440c3b38..e51094573d 100644 --- a/gtk2_ardour/lxvst_plugin_ui.h +++ b/gtk2_ardour/lxvst_plugin_ui.h @@ -20,7 +20,7 @@ #ifndef __lxvst_plugin_ui_h__ #define __lxvst_plugin_ui_h__ -#include <sigc++/signal.h> +#include "pbd/signals.h" #include "vst_plugin_ui.h" #ifdef LXVST_SUPPORT @@ -38,8 +38,8 @@ class LXVSTPluginUI : public VSTPluginUI int get_preferred_height (); - bool start_updating (GdkEventAny *); - bool stop_updating (GdkEventAny *); + bool start_updating (GdkEventAny*) { return false; } + bool stop_updating (GdkEventAny*) { return false; } int package (Gtk::Window&); void forward_key_event (GdkEventKey *); @@ -49,7 +49,7 @@ private: void resize_callback (); int get_XID (); - sigc::connection _screen_update_connection; + PBD::ScopedConnection _resize_connection; }; #endif //LXVST_SUPPORT |