summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-03-18 16:45:43 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-03-18 16:45:43 +0000
commitc69ef10067cbdde5fc87ff676097aa4ffe406f2c (patch)
treef31cc3e557d00646536ff5d3eb1ef175f6d5c7bc /gtk2_ardour/editor.cc
parentc89eaf029700c635d7b775abb7059be0eae7cd3f (diff)
fix rect redraw problem(s); make zoom range rect visible again at the right time; apply tim's window title patch
git-svn-id: svn://localhost/ardour2/trunk@1617 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r--gtk2_ardour/editor.cc28
1 files changed, 16 insertions, 12 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index db0bf41ee6..b1e1873e94 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -30,6 +30,7 @@
#include <pbd/stacktrace.h>
#include <pbd/memento_command.h>
+#include <glibmm/miscutils.h>
#include <gtkmm/image.h>
#include <gdkmm/color.h>
#include <gdkmm/bitmap.h>
@@ -38,6 +39,7 @@
#include <gtkmm2ext/gtk_ui.h>
#include <gtkmm2ext/tearoff.h>
#include <gtkmm2ext/utils.h>
+#include <gtkmm2ext/window_title.h>
#include <ardour/audio_track.h>
#include <ardour/audio_diskstream.h>
@@ -708,7 +710,10 @@ Editor::Editor ()
set_icon_list (window_icons);
set_default_icon_list (window_icons);
}
- set_title (_("ardour: editor"));
+
+ WindowTitle title(Glib::get_application_name());
+ title += _("Editor");
+ set_title (title.get_string());
set_wmclass (X_("ardour_editor"), "Ardour");
add (vpacker);
@@ -1006,24 +1011,21 @@ Editor::update_title ()
if (session) {
bool dirty = session->dirty();
- string wintitle = _("ardour: editor: ");
-
- if (dirty) {
- wintitle += '[';
- }
-
- wintitle += session->name();
+ string session_name;
if (session->snap_name() != session->name()) {
- wintitle += ':';
- wintitle += session->snap_name();
+ session_name = session->snap_name();
+ } else {
+ session_name = session->name();
}
if (dirty) {
- wintitle += ']';
+ session_name = "*" + session_name;
}
- set_title (wintitle);
+ WindowTitle title(session_name);
+ title += Glib::get_application_name();
+ set_title (title.get_string());
}
}
@@ -2716,6 +2718,8 @@ Editor::map_transport_state ()
if (session->transport_stopped()) {
have_pending_keyboard_selection = false;
}
+
+ update_loop_range_view (true);
}
/* UNDO/REDO */