summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-04-22 20:23:24 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-04-22 20:23:24 +0000
commit57bf3cf0634dc185020cf4a02c372011a27a6a45 (patch)
tree6baaa39f3a7ceb7f44c24a3f90996193f4d8b382
parent35a966c824a862deec9691f6b3ea665f0f8a1dd6 (diff)
fix default size and title of comment window
git-svn-id: svn://localhost/ardour2/branches/3.0@9408 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--gtk2_ardour/mixer_strip.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc
index 5181878fb5..9b69243c58 100644
--- a/gtk2_ardour/mixer_strip.cc
+++ b/gtk2_ardour/mixer_strip.cc
@@ -1213,25 +1213,25 @@ MixerStrip::toggle_comment ()
return;
}
- comment_window->show();
+ string title;
+ title = _route->name();
+ title += _(": comment editor");
+
+ comment_window->set_title (title);
comment_window->present();
}
void
MixerStrip::setup_comment_editor ()
{
- string title;
- title = _route->name();
- title += _(": comment editor");
-
- comment_window = new ArdourDialog (title, false);
+ comment_window = new ArdourDialog ("", false); // title will be reset to show route
comment_window->set_position (Gtk::WIN_POS_MOUSE);
comment_window->set_skip_taskbar_hint (true);
comment_window->signal_hide().connect (sigc::mem_fun(*this, &MixerStrip::comment_editor_done_editing));
+ comment_window->set_default_size (400, 200);
comment_area = manage (new TextView());
comment_area->set_name ("MixerTrackCommentArea");
- comment_area->set_size_request (110, 178);
comment_area->set_wrap_mode (WRAP_WORD);
comment_area->set_editable (true);
comment_area->get_buffer()->set_text (_route->comment());