View Issue Details

IDProjectCategoryView StatusLast Update
0001669ardourbugspublic2008-11-21 00:00
ReporterEndolith Assigned Totimbyr  
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionfixed 
Product Version2.0 
Summary0001669: Context-clicking main clock gives pointless "Mode" option
DescriptionTo change clock modes you:

1. Context-click the clock
2. Press the "Mode" option
3. Select the mode you want

You should instead:

1. Context-click the clock
2. Select the mode you want
TagsNo tags attached.

Activities

timbyr

2007-05-13 02:32

developer   ~0003957

I agree, I'll attach a patch that should do what you suggest.

I'm also thinking that there shouldn't be an "Off" mode as it can be hard to get the clock back from that mode because of the width of it.

I think a better alternative would be use a check menu item(possibly in the view menu) to completely hide a clock.

2007-05-13 02:32

 

move_clock_modes_into_toplevel_popup_menu.patch (1,581 bytes)   
Index: gtk2_ardour/audio_clock.cc
===================================================================
--- gtk2_ardour/audio_clock.cc	(revision 1837)
+++ gtk2_ardour/audio_clock.cc	(working copy)
@@ -1793,18 +1793,12 @@
 	ops_menu = new Menu;
 	MenuList& ops_items = ops_menu->items();
 	ops_menu->set_name ("ArdourContextMenu");
-
-	Menu *mode_menu = manage (new Menu);
-	MenuList& mode_items = mode_menu->items();
-	mode_menu->set_name ("ArdourContextMenu");
 	
-	mode_items.push_back (MenuElem (_("Timecode"), bind (mem_fun(*this, &AudioClock::set_mode), SMPTE)));
-	mode_items.push_back (MenuElem (_("Bars:Beats"), bind (mem_fun(*this, &AudioClock::set_mode), BBT)));
-	mode_items.push_back (MenuElem (_("Minutes:Seconds"), bind (mem_fun(*this, &AudioClock::set_mode), MinSec)));
-	mode_items.push_back (MenuElem (_("Audio Frames"), bind (mem_fun(*this, &AudioClock::set_mode), Frames)));
-	mode_items.push_back (MenuElem (_("Off"), bind (mem_fun(*this, &AudioClock::set_mode), Off)));
-
-	ops_items.push_back (MenuElem (_("Mode"), *mode_menu));
+	ops_items.push_back (MenuElem (_("Timecode"), bind (mem_fun(*this, &AudioClock::set_mode), SMPTE)));
+	ops_items.push_back (MenuElem (_("Bars:Beats"), bind (mem_fun(*this, &AudioClock::set_mode), BBT)));
+	ops_items.push_back (MenuElem (_("Minutes:Seconds"), bind (mem_fun(*this, &AudioClock::set_mode), MinSec)));
+	ops_items.push_back (MenuElem (_("Audio Frames"), bind (mem_fun(*this, &AudioClock::set_mode), Frames)));
+	ops_items.push_back (MenuElem (_("Off"), bind (mem_fun(*this, &AudioClock::set_mode), Off)));
 }
 
 void

timbyr

2007-05-13 02:35

developer   ~0003958

requesting feedback on the patch and the idea to remove the "Off" mode from the clock modes(although that would depend on implementing alternate functionality)

Endolith

2007-05-13 02:53

reporter   ~0003959

Last edited: 2007-05-13 02:55

"I'm also thinking that there shouldn't be an "Off" mode as it can be hard to get the clock back from that mode because of the width of it."

Good point. It doesn't even look like something clickable. :-)

I also noticed that changing the tempo from a three-digit number to a two-digit number partway through a song results in the clock changing widths and all the buttons shifting along with it. Not really a problem, but kind of weird to happen during playback. Maybe the width of the clocks should be set by considering the entire song and calculating the widest it will ever need to be?

"I think a better alternative would be use a check menu item(possibly in the view menu) to completely hide a clock."

Good idea.

nowhiskey

2007-05-14 10:22

reporter   ~0003966

the patch works good, but about the "off" mode - except removing .ardour2 folder, i did not found out yet, how i get the clock back, once switched off.

paul

2007-05-21 14:15

administrator   ~0004005

patch applied to 2.0-ongoing

Issue History

Date Modified Username Field Change
2007-05-13 01:15 Endolith New Issue
2007-05-13 02:32 timbyr Note Added: 0003957
2007-05-13 02:32 timbyr File Added: move_clock_modes_into_toplevel_popup_menu.patch
2007-05-13 02:32 timbyr Status new => assigned
2007-05-13 02:32 timbyr Assigned To => timbyr
2007-05-13 02:35 timbyr Note Added: 0003958
2007-05-13 02:35 timbyr Status assigned => feedback
2007-05-13 02:53 Endolith Note Added: 0003959
2007-05-13 02:55 Endolith Note Edited: 0003959
2007-05-13 06:32 timbyr Relationship added related to 0001483
2007-05-14 10:22 nowhiskey Note Added: 0003966
2007-05-21 14:15 paul Status feedback => resolved
2007-05-21 14:15 paul Resolution open => fixed
2007-05-21 14:15 paul Note Added: 0004005
2007-07-18 03:33 timbyr Relationship deleted related to 0001483
2008-11-21 00:00 seablade Status resolved => closed