summaryrefslogtreecommitdiff
path: root/gtk2_ardour/visual_time_axis.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-03-22 17:03:00 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-03-22 17:03:00 +0000
commit3aa346b253d515c3d0715ec5e0fa8b6ad477c4e5 (patch)
treea41d4380ad270324a2d05cbbab0d1e57dce2bdfe /gtk2_ardour/visual_time_axis.cc
parent004a49b0c7051a4d0f8972b0aff0ef8fa9cab03d (diff)
significant changes in code to handle import/embedding - much cleaner and less code, plus the import progress bar now works; unify response handling for Gtkmm2ext::Choice
git-svn-id: svn://localhost/trunk/ardour2@415 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/visual_time_axis.cc')
-rw-r--r--gtk2_ardour/visual_time_axis.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/gtk2_ardour/visual_time_axis.cc b/gtk2_ardour/visual_time_axis.cc
index 23af21aaca..582c18c86f 100644
--- a/gtk2_ardour/visual_time_axis.cc
+++ b/gtk2_ardour/visual_time_axis.cc
@@ -279,14 +279,12 @@ VisualTimeAxis::remove_this_time_axis(void* src)
Gtkmm2ext::Choice prompter (prompt, choices);
- if (prompter.run () == RESPONSE_ACCEPT) {
- if (prompter.get_choice() == 0) {
- /*
- defer to idle loop, otherwise we'll delete this object
- while we're still inside this function ...
- */
- Glib::signal_idle().connect(bind(sigc::ptr_fun(&VisualTimeAxis::idle_remove_this_time_axis), this, src));
- }
+ if (prompter.run () == 0) {
+ /*
+ defer to idle loop, otherwise we'll delete this object
+ while we're still inside this function ...
+ */
+ Glib::signal_idle().connect(bind(sigc::ptr_fun(&VisualTimeAxis::idle_remove_this_time_axis), this, src));
}
}