stereo and mono panner tweaks to use cairomm and rounded rectangles and more
[ardour.git] / gtk2_ardour / step_entry.cc
index 1fd6b37cfb0edce68d7f53f73d935fd10569e26b..ac79487b90631151f3fe9b9e55620f063aa0063d 100644 (file)
@@ -45,13 +45,13 @@ using namespace PBD;
 using namespace ARDOUR;
 
 static void
-_note_off_event_handler (GtkWidget* widget, int note, gpointer arg)
+_note_off_event_handler (GtkWidget* /*widget*/, int note, gpointer arg)
 {
        ((StepEntry*)arg)->note_off_event_handler (note);
 }
 
 static void
-_rest_event_handler (GtkWidget* widget, gpointer arg)
+_rest_event_handler (GtkWidget* /*widget*/, gpointer arg)
 {
        ((StepEntry*)arg)->rest_event_handler ();
 }
@@ -71,7 +71,7 @@ StepEntry::StepEntry (StepEditor& seditor)
        , back_button (_("back"))
        , channel_adjustment (1, 1, 16, 1, 4) 
        , channel_spinner (channel_adjustment)
-        , octave_adjustment (4, 1, 11, 1, 4) // start in octave 4
+        , octave_adjustment (4, 0, 10, 1, 4) // start in octave 4
         , octave_spinner (octave_adjustment)
         , length_divisor_adjustment (1.0, 1.0, 128, 1.0, 4.0)
         , length_divisor_spinner (length_divisor_adjustment)
@@ -626,13 +626,14 @@ StepEntry::register_actions ()
        myactions.register_action ("StepEditing", "octave-9", _("Switch to the 10th octave"), sigc::mem_fun (*this, &StepEntry::octave_9));
        myactions.register_action ("StepEditing", "octave-10", _("Switch to the 11th octave"), sigc::mem_fun (*this, &StepEntry::octave_10));
 
-
         RadioAction::Group note_length_group;
 
         myactions.register_radio_action ("StepEditing", note_length_group, "note-length-whole", 
                                          _("Set Note Length to Whole"), sigc::mem_fun (*this, &StepEntry::note_length_change), 1);
         myactions.register_radio_action ("StepEditing", note_length_group, "note-length-half", 
                                          _("Set Note Length to 1/2"), sigc::mem_fun (*this, &StepEntry::note_length_change), 2);
+        myactions.register_radio_action ("StepEditing", note_length_group, "note-length-third", 
+                                         _("Set Note Length to 1/3"), sigc::mem_fun (*this, &StepEntry::note_length_change), 3);
         myactions.register_radio_action ("StepEditing", note_length_group, "note-length-quarter",
                                          _("Set Note Length to 1/4"), sigc::mem_fun (*this, &StepEntry::note_length_change), 4);
         myactions.register_radio_action ("StepEditing", note_length_group, "note-length-eighth",