From bc3afd8380d59c750c8f8e9bf1ed1b8d4a6826e9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 16 Mar 2012 22:27:16 +0000 Subject: Preliminary work towards native LV2 UI. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4074 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/Port.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/gui/Port.cpp') diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp index 7bf3412d..aa3786e3 100644 --- a/src/gui/Port.cpp +++ b/src/gui/Port.cpp @@ -154,9 +154,9 @@ Port::on_value_changed(const Glib::VariantBase& value) world->uris()->ingen_value, _app.forge().make(fval)); - PatchWindow* pw = get_patch_window(); - if (pw) { - pw->show_port_status(model().get(), _app.forge().make(fval)); + PatchBox* box = get_patch_box(); + if (box) { + box->show_port_status(model().get(), _app.forge().make(fval)); } } @@ -171,18 +171,18 @@ Port::value_changed(const Atom& value) bool Port::on_event(GdkEvent* ev) { - PatchWindow* win = NULL; + PatchBox* box = NULL; switch (ev->type) { case GDK_ENTER_NOTIFY: - win = get_patch_window(); - if (win) { - win->object_entered(model().get()); + box = get_patch_box(); + if (box) { + box->object_entered(model().get()); } break; case GDK_LEAVE_NOTIFY: - win = get_patch_window(); - if (win) { - win->object_left(model().get()); + box = get_patch_box(); + if (box) { + box->object_left(model().get()); } break; case GDK_BUTTON_PRESS: @@ -263,15 +263,15 @@ Port::activity(const Raul::Atom& value) } } -PatchWindow* -Port::get_patch_window() const +PatchBox* +Port::get_patch_box() const { SharedPtr patch = PtrCast(model()->parent()); if (!patch) { patch = PtrCast(model()->parent()->parent()); } - return _app.window_factory()->patch_window(patch); + return _app.window_factory()->patch_box(patch); } void -- cgit v1.2.1