Tidy up a couple of bits in the session option editor.
authorCarl Hetherington <carl@carlh.net>
Wed, 10 Nov 2010 14:49:46 +0000 (14:49 +0000)
committerCarl Hetherington <carl@carlh.net>
Wed, 10 Nov 2010 14:49:46 +0000 (14:49 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@7992 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/ardour.menus.in
gtk2_ardour/option_editor.cc
gtk2_ardour/search_path_option.cc
gtk2_ardour/session_option_editor.cc

index c4bd8780a3cbb14fcfecd3035ef3ada26477e23f..fb8ec25496a1c8a8056bba93d0fae281e42e5627 100644 (file)
            <separator/>
            <menuitem action='addExistingAudioFiles'/>
            <menuitem action='importFromSession'/>
-           <separator/>
            <menu name='Export' action='Export'>
                <menuitem action='ExportAudio'/>
            </menu>
-           <separator/>
            <menu name='Cleanup' action='Cleanup'>
                <menuitem action='CleanupUnused'/>
                <menuitem action='FlushWastebasket'/>
@@ -37,6 +35,7 @@
            <menuitem action='ToggleRCOptionsEditor'/>
            <menuitem action='About'/>
 #endif
+           <separator/>
            <menuitem action='Quit'/>
         </menu>
 
index 82c544c50cb90d0c554fe2efea4315572e302c04..af85d879cc7c2a0c8bc85a5f9aaaa1b486c9a3f3 100644 (file)
@@ -109,7 +109,7 @@ EntryOption::EntryOption (string const & i, string const & n, sigc::slot<string>
          _set (s)
 {
        _label = manage (new Label (n + ":"));
-       _label->set_alignment (1, 0.5);
+       _label->set_alignment (0, 0.5);
        _entry = manage (new Entry);
        _entry->signal_activate().connect (sigc::mem_fun (*this, &EntryOption::activated));
 }
index eff991081b2a021bef7173951856efe68842ae05..8104de380148fdc202af9b411d23a734b30d4313 100644 (file)
@@ -35,7 +35,7 @@ SearchPathOption::SearchPathOption (const string& pathname, const string& label,
 
         hbox->set_border_width (12);
         hbox->set_spacing (6);
-        hbox->pack_end (add_chooser, false, false);
+        hbox->pack_end (add_chooser, true, true);
         hbox->pack_end (*manage (new Label ("Click to add a new location")), false, false);
         hbox->show_all ();
         
@@ -68,14 +68,14 @@ void
 SearchPathOption::add_to_page (OptionEditorPage* p)
 {
        int const n = p->table.property_n_rows();
-       p->table.resize (n + 2, 3);
+       p->table.resize (n + 1, 3);
 
         Label* label = manage (new Label);
-        label->set_alignment (0.0, 0.5);
-        label->set_markup (string_compose ("<b>%1</b>", _name));
+        label->set_alignment (0.0, 0.0);
+        label->set_markup (string_compose ("%1", _name));
 
-       p->table.attach (*label, 0, 1, n, n + 1, FILL | EXPAND);
-       p->table.attach (vbox, 0, 3, n + 1, n + 2, FILL | EXPAND);
+       p->table.attach (*label, 1, 2, n, n + 1, FILL | EXPAND);
+       p->table.attach (vbox, 2, 3, n, n + 1, FILL | EXPAND);
 }
 
 void
index bef5c70433b26fea3f039a8196fa26cc816e9454..2558729c54e0a151d5db00e590634c163d67dae3 100644 (file)
@@ -209,6 +209,8 @@ SessionOptionEditor::SessionOptionEditor (Session* s)
 
        add_option (_("Media"), hf);
         
+       add_option (_("Media"), new OptionEditorHeading (_("File locations")));
+
         SearchPathOption* spo = new SearchPathOption ("audio-search-path", _("Search for audio files in:"),
                                                       sigc::mem_fun (*_session_config, &SessionConfiguration::get_audio_search_path),
                                                       sigc::mem_fun (*_session_config, &SessionConfiguration::set_audio_search_path));