diff options
author | Nick Mainsbridge <beatroute@iprimus.com.au> | 2006-06-02 12:48:35 +0000 |
---|---|---|
committer | Nick Mainsbridge <beatroute@iprimus.com.au> | 2006-06-02 12:48:35 +0000 |
commit | 8b320ba5c6a234f288a3d6089aea18de7429c197 (patch) | |
tree | 214ad36895865f995674b12732cd2af2c8f9b9cc /gtk2_ardour/vst_pluginui.cc | |
parent | d96bda7daeb270397e84bed60f12be7098019e8d (diff) |
Remove needless hbox in panner, get rid of some warnings in editor_rulers.cc, vst_pluginui.cc should compile, updated shuttle patch from Reuben Martin, get rid of extra include in ardour/vst_plugin.h
git-svn-id: svn://localhost/ardour2/trunk@559 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/vst_pluginui.cc')
-rw-r--r-- | gtk2_ardour/vst_pluginui.cc | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/gtk2_ardour/vst_pluginui.cc b/gtk2_ardour/vst_pluginui.cc index 1442f67707..8b40e27070 100644 --- a/gtk2_ardour/vst_pluginui.cc +++ b/gtk2_ardour/vst_pluginui.cc @@ -19,16 +19,13 @@ */ #include <fst.h> -#include <gdk/gdkx.h> -#include <X11/Xlib.h> #include <ardour/insert.h> #include <ardour/vst_plugin.h> #include "plugin_ui.h" -#include "prompter.h" -#include "i18n.h" +#include <gdk/gdkx.h> using namespace Gtk; using namespace ARDOUR; @@ -65,42 +62,42 @@ VSTPluginUI::package (Gtk::Window& win) { /* for GTK+2, remove this: you cannot add to a realized socket */ - socket.realize (); + //socket.realize (); /* forward configure events to plugin window */ - win.signal_configure_event().connect (bind (mem_fun (*this, &VSTPluginUI::configure_handler), socket.gobj())); + win.signal_configure_event().connect (bind (mem_fun (*this, &VSTPluginUI::configure_handler), &socket)); /* XXX in GTK2, use add_id() instead of steal, although add_id() assumes that the window's owner understands the XEmbed protocol. */ - socket.steal (fst_get_XID (vst.fst())); + socket.add_id (fst_get_XID (vst.fst())); return 0; } gboolean -VSTPluginUI::configure_handler (GdkEventConfigure* ev, GtkSocket *socket) +VSTPluginUI::configure_handler (GdkEventConfigure* ev, Gtk::Socket *socket) { XEvent event; gint x, y; - if (socket->plug_window == NULL) { + if (socket->gobj() == NULL) { return FALSE; } event.xconfigure.type = ConfigureNotify; - event.xconfigure.event = GDK_WINDOW_XWINDOW (socket->plug_window); - event.xconfigure.window = GDK_WINDOW_XWINDOW (socket->plug_window); + event.xconfigure.event = GDK_WINDOW_XWINDOW (socket->get_window()->gobj()); + event.xconfigure.window = GDK_WINDOW_XWINDOW (socket->get_window()->gobj()); /* The ICCCM says that synthetic events should have root relative * coordinates. We still aren't really ICCCM compliant, since * we don't send events when the real toplevel is moved. */ gdk_error_trap_push (); - gdk_window_get_origin (socket->plug_window, &x, &y); + gdk_window_get_origin (socket->get_window()->gobj(), &x, &y); gdk_error_trap_pop (); event.xconfigure.x = x; @@ -113,8 +110,8 @@ VSTPluginUI::configure_handler (GdkEventConfigure* ev, GtkSocket *socket) event.xconfigure.override_redirect = False; gdk_error_trap_push (); - XSendEvent (GDK_WINDOW_XDISPLAY (socket->plug_window), - GDK_WINDOW_XWINDOW (socket->plug_window), + XSendEvent (GDK_WINDOW_XDISPLAY (socket->get_window()->gobj()), + GDK_WINDOW_XWINDOW (socket->get_window()->gobj()), False, StructureNotifyMask, &event); // gdk_display_sync (GDK_WINDOW_XDISPLAY (socket->plug_window)); gdk_error_trap_pop (); |