mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
fix StepEntry code to use new action registration API
This commit is contained in:
parent
458c54990b
commit
9f4d84dcb4
2 changed files with 12 additions and 12 deletions
|
|
@ -649,10 +649,10 @@ StepEntry::toggle_chord ()
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
StepEntry::dot_change (GtkAction* act)
|
StepEntry::dot_change (GtkRadioAction* act)
|
||||||
{
|
{
|
||||||
if (gtk_toggle_action_get_active (GTK_TOGGLE_ACTION(act))) {
|
if (gtk_toggle_action_get_active (GTK_TOGGLE_ACTION(act))) {
|
||||||
gint v = gtk_radio_action_get_current_value (GTK_RADIO_ACTION (act));
|
gint v = gtk_radio_action_get_current_value (act);
|
||||||
dot_adjustment.set_value (v);
|
dot_adjustment.set_value (v);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -804,7 +804,7 @@ StepEntry::insert_b ()
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
StepEntry::note_length_change (GtkAction* act)
|
StepEntry::note_length_change (GtkRadioAction* act)
|
||||||
{
|
{
|
||||||
/* it doesn't matter which note length action we look up - we are interested
|
/* it doesn't matter which note length action we look up - we are interested
|
||||||
in the current_value which is global across the whole group of note length
|
in the current_value which is global across the whole group of note length
|
||||||
|
|
@ -815,13 +815,13 @@ StepEntry::note_length_change (GtkAction* act)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (gtk_toggle_action_get_active (GTK_TOGGLE_ACTION(act))) {
|
if (gtk_toggle_action_get_active (GTK_TOGGLE_ACTION(act))) {
|
||||||
gint v = gtk_radio_action_get_current_value (GTK_RADIO_ACTION (act));
|
gint v = gtk_radio_action_get_current_value (act);
|
||||||
length_divisor_adjustment.set_value (v);
|
length_divisor_adjustment.set_value (v);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
StepEntry::note_velocity_change (GtkAction* act)
|
StepEntry::note_velocity_change (GtkRadioAction* act)
|
||||||
{
|
{
|
||||||
/* it doesn't matter which note velocity action we look up - we are interested
|
/* it doesn't matter which note velocity action we look up - we are interested
|
||||||
in the current_value which is global across the whole group of note velocity
|
in the current_value which is global across the whole group of note velocity
|
||||||
|
|
@ -832,7 +832,7 @@ StepEntry::note_velocity_change (GtkAction* act)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (gtk_toggle_action_get_active (GTK_TOGGLE_ACTION(act))) {
|
if (gtk_toggle_action_get_active (GTK_TOGGLE_ACTION(act))) {
|
||||||
gint v = gtk_radio_action_get_current_value (GTK_RADIO_ACTION (act));
|
gint v = gtk_radio_action_get_current_value (act);
|
||||||
velocity_adjustment.set_value (v);
|
velocity_adjustment.set_value (v);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -177,8 +177,8 @@ private:
|
||||||
void insert_fsharp ();
|
void insert_fsharp ();
|
||||||
void insert_g ();
|
void insert_g ();
|
||||||
void insert_gsharp ();
|
void insert_gsharp ();
|
||||||
void note_length_change (GtkAction*);
|
void note_length_change (GtkRadioAction*);
|
||||||
void note_velocity_change (GtkAction*);
|
void note_velocity_change (GtkRadioAction*);
|
||||||
bool radio_button_press (GdkEventButton*);
|
bool radio_button_press (GdkEventButton*);
|
||||||
void inc_note_velocity ();
|
void inc_note_velocity ();
|
||||||
void dec_note_velocity ();
|
void dec_note_velocity ();
|
||||||
|
|
@ -202,7 +202,7 @@ private:
|
||||||
void octave_8 () { octave_n (8); }
|
void octave_8 () { octave_n (8); }
|
||||||
void octave_9 () { octave_n (9); }
|
void octave_9 () { octave_n (9); }
|
||||||
void octave_10 () { octave_n (10); }
|
void octave_10 () { octave_n (10); }
|
||||||
void dot_change (GtkAction*);
|
void dot_change (GtkRadioAction*);
|
||||||
void dot_value_change ();
|
void dot_value_change ();
|
||||||
void toggle_triplet();
|
void toggle_triplet();
|
||||||
void toggle_chord();
|
void toggle_chord();
|
||||||
|
|
@ -228,8 +228,8 @@ private:
|
||||||
static void se_insert_fsharp () { if (_instance) { _instance->insert_fsharp (); } }
|
static void se_insert_fsharp () { if (_instance) { _instance->insert_fsharp (); } }
|
||||||
static void se_insert_g () { if (_instance) { _instance->insert_g (); } }
|
static void se_insert_g () { if (_instance) { _instance->insert_g (); } }
|
||||||
static void se_insert_gsharp () { if (_instance) { _instance->insert_gsharp (); } }
|
static void se_insert_gsharp () { if (_instance) { _instance->insert_gsharp (); } }
|
||||||
static void se_note_length_change (GtkAction* act) { if (_instance) { _instance->note_length_change (act); } }
|
static void se_note_length_change (GtkRadioAction* act) { if (_instance) { _instance->note_length_change (act); } }
|
||||||
static void se_note_velocity_change (GtkAction* act) { if (_instance) { _instance->note_velocity_change (act); } }
|
static void se_note_velocity_change (GtkRadioAction* act) { if (_instance) { _instance->note_velocity_change (act); } }
|
||||||
static void se_inc_note_velocity () { if (_instance) { _instance->inc_note_velocity (); } }
|
static void se_inc_note_velocity () { if (_instance) { _instance->inc_note_velocity (); } }
|
||||||
static void se_dec_note_velocity () { if (_instance) { _instance->dec_note_velocity (); } }
|
static void se_dec_note_velocity () { if (_instance) { _instance->dec_note_velocity (); } }
|
||||||
static void se_next_note_velocity () { if (_instance) { _instance->next_note_velocity (); } }
|
static void se_next_note_velocity () { if (_instance) { _instance->next_note_velocity (); } }
|
||||||
|
|
@ -252,7 +252,7 @@ private:
|
||||||
static void se_octave_8 () { if (_instance) { _instance->octave_8 (); } }
|
static void se_octave_8 () { if (_instance) { _instance->octave_8 (); } }
|
||||||
static void se_octave_9 () { if (_instance) { _instance->octave_9 (); } }
|
static void se_octave_9 () { if (_instance) { _instance->octave_9 (); } }
|
||||||
static void se_octave_10 () { if (_instance) { _instance->octave_10 (); } }
|
static void se_octave_10 () { if (_instance) { _instance->octave_10 (); } }
|
||||||
static void se_dot_change (GtkAction* act) { if (_instance) { _instance->dot_change (act); } }
|
static void se_dot_change (GtkRadioAction* act) { if (_instance) { _instance->dot_change (act); } }
|
||||||
static void se_dot_value_change () { if (_instance) { _instance->dot_value_change (); } }
|
static void se_dot_value_change () { if (_instance) { _instance->dot_value_change (); } }
|
||||||
static void se_toggle_triplet() { if (_instance) { _instance->toggle_triplet (); } }
|
static void se_toggle_triplet() { if (_instance) { _instance->toggle_triplet (); } }
|
||||||
static void se_toggle_chord() { if (_instance) { _instance->toggle_chord (); } }
|
static void se_toggle_chord() { if (_instance) { _instance->toggle_chord (); } }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue