summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_ops.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-05-06 13:22:17 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-05-06 13:22:17 +0000
commit6d84c56a254c92a8930f72889a7767da06214910 (patch)
treeae0f0345df48913ef07a57315edf709cfbba520a /gtk2_ardour/editor_ops.cc
parent4728e1ec1f8e118c0e28a2a353e308170d1b6448 (diff)
clean up debug output from view-saving work; add popup temp window to show that saving has occured
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3322 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r--gtk2_ardour/editor_ops.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc
index 76ad82cd9f..2d0f3309bc 100644
--- a/gtk2_ardour/editor_ops.cc
+++ b/gtk2_ardour/editor_ops.cc
@@ -34,6 +34,8 @@
#include <gtkmm2ext/utils.h>
#include <gtkmm2ext/choice.h>
#include <gtkmm2ext/window_title.h>
+#include <gtkmm2ext/popup.h>
+
#include <ardour/audioengine.h>
#include <ardour/session.h>
@@ -5941,7 +5943,6 @@ void
Editor::start_visual_state_op (uint32_t n)
{
if (visual_state_op_connection.empty()) {
- cerr << "START pending op, for " << n << endl;
visual_state_op_connection = Glib::signal_timeout().connect (bind (mem_fun (*this, &Editor::end_visual_state_op), n), 1000);
}
}
@@ -5950,22 +5951,22 @@ void
Editor::cancel_visual_state_op (uint32_t n)
{
if (!visual_state_op_connection.empty()) {
- cerr << "CANCEL pending op, and goto " << n << endl;
visual_state_op_connection.disconnect();
goto_visual_state (n);
- } else {
- cerr << "NOTHING TO DO\n";
- }
+ }
}
bool
Editor::end_visual_state_op (uint32_t n)
{
- cerr << "TIMEOUT HIT, saveing visual state " << n << endl;
visual_state_op_connection.disconnect();
save_visual_state (n);
- cerr << "vsop empty ? " << visual_state_op_connection.empty() << endl;
- // FLASH SCREEN OR SOMETHING
+ PopUp* pup = new PopUp (WIN_POS_MOUSE, 1000, true);
+ char buf[32];
+ snprintf (buf, sizeof (buf), _("Saved view %u"), n);
+ pup->set_text (buf);
+ pup->touch();
+
return false; // do not call again
}