diff --git a/sources/main.c b/sources/main.c index e501178..0e6753a 100644 --- a/sources/main.c +++ b/sources/main.c @@ -6226,7 +6226,7 @@ GtkButton *button2_0 = (GtkButton*) gtk_builder_get_object(monBuilder, "button52 break; } - gtk_button_set_label(button15, str); + gtk_button_set_label(button2_15, str); gtk_widget_show_all (maFenetre); @@ -6265,6 +6265,8 @@ void fenetreNote0_0 ( int argc, char *argv[] ) void remplissageNote0_0 (GtkWidget *widget, gpointer *data){ + Motif* m = melodie[0]; + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_0"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_0"); GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument0_0"); @@ -6350,6 +6352,9 @@ void fenetreNote0_1 ( int argc, char *argv[] ) void remplissageNote0_1 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; + + GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_1"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_1"); GtkEntry *entryInstrument = (GtkEntry*) gtk_builder_get_object(monBuilder,"comboinstrument0_1"); @@ -6434,6 +6439,7 @@ void fenetreNote0_2 ( int argc, char *argv[] ) } void remplissageNote0_2 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_2"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_2"); @@ -6519,6 +6525,7 @@ void fenetreNote0_3 ( int argc, char *argv[] ) } void remplissageNote0_3 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_3"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_3"); @@ -6604,6 +6611,7 @@ void fenetreNote0_4 ( int argc, char *argv[] ) } void remplissageNote0_4 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_4"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_4"); @@ -6689,6 +6697,7 @@ void fenetreNote0_5 ( int argc, char *argv[] ) } void remplissageNote0_5 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_5"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_5"); @@ -6774,6 +6783,7 @@ void fenetreNote0_6 ( int argc, char *argv[] ) } void remplissageNote0_6 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_6"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_6"); @@ -6859,6 +6869,7 @@ void fenetreNote0_7 ( int argc, char *argv[] ) } void remplissageNote0_7 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_7"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_7"); @@ -6944,6 +6955,7 @@ void fenetreNote0_8 ( int argc, char *argv[] ) } void remplissageNote0_8 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_8"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_8"); @@ -7029,6 +7041,7 @@ void fenetreNote0_9 ( int argc, char *argv[] ) } void remplissageNote0_9 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_9"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_9"); @@ -7114,6 +7127,7 @@ void fenetreNote0_10 ( int argc, char *argv[] ) } void remplissageNote0_10 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_10"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_10"); @@ -7200,6 +7214,7 @@ void fenetreNote0_11 ( int argc, char *argv[] ) } void remplissageNote0_11 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_11"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_11"); @@ -7286,6 +7301,7 @@ void fenetreNote0_12 ( int argc, char *argv[] ) } void remplissageNote0_12 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_12"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_12"); @@ -7372,6 +7388,7 @@ void fenetreNote0_13 ( int argc, char *argv[] ) } void remplissageNote0_13 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_13"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_13"); @@ -7458,6 +7475,7 @@ void fenetreNote0_14 ( int argc, char *argv[] ) } void remplissageNote0_14 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_14"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_14"); @@ -7544,6 +7562,7 @@ void fenetreNote0_15 ( int argc, char *argv[] ) } void remplissageNote0_15 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote0_15"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave0_15"); @@ -7630,6 +7649,7 @@ void fenetreNote1_0 ( int argc, char *argv[] ) } void remplissageNote1_0(GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_0"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_0"); @@ -7715,6 +7735,7 @@ void fenetreNote1_1 ( int argc, char *argv[] ) } void remplissageNote1_1 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_1"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_1"); @@ -7800,6 +7821,7 @@ void fenetreNote1_2 ( int argc, char *argv[] ) } void remplissageNote1_2 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_2"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_2"); @@ -7885,6 +7907,7 @@ void fenetreNote1_3 ( int argc, char *argv[] ) } void remplissageNote1_3 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_3"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_3"); @@ -7970,6 +7993,7 @@ void fenetreNote1_4 ( int argc, char *argv[] ) } void remplissageNote1_4 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_4"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_4"); @@ -8055,6 +8079,7 @@ void fenetreNote1_5 ( int argc, char *argv[] ) } void remplissageNote1_5 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_5"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_5"); @@ -8140,6 +8165,7 @@ void fenetreNote1_6 ( int argc, char *argv[] ) } void remplissageNote1_6 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_6"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_6"); @@ -8225,6 +8251,7 @@ void fenetreNote1_7 ( int argc, char *argv[] ) } void remplissageNote1_7 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_7"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_7"); @@ -8310,6 +8337,7 @@ void fenetreNote1_8 ( int argc, char *argv[] ) } void remplissageNote1_8 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_8"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_8"); @@ -8395,6 +8423,7 @@ void fenetreNote1_9 ( int argc, char *argv[] ) } void remplissageNote1_9 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_9"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_9"); @@ -8480,6 +8509,7 @@ void fenetreNote1_10 ( int argc, char *argv[] ) } void remplissageNote1_10 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_10"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_10"); @@ -8566,6 +8596,7 @@ void fenetreNote1_11 ( int argc, char *argv[] ) } void remplissageNote1_11 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_11"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_11"); @@ -8652,6 +8683,7 @@ void fenetreNote1_12 ( int argc, char *argv[] ) } void remplissageNote1_12 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_12"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_12"); @@ -8738,6 +8770,7 @@ void fenetreNote1_13 ( int argc, char *argv[] ) } void remplissageNote1_13 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_13"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_13"); @@ -8824,6 +8857,7 @@ void fenetreNote1_14 ( int argc, char *argv[] ) } void remplissageNote1_14 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_14"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_14"); @@ -8910,6 +8944,7 @@ void fenetreNote1_15 ( int argc, char *argv[] ) } void remplissageNote1_15 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote1_15"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave1_15"); @@ -8996,6 +9031,7 @@ void fenetreNote2_0 ( int argc, char *argv[] ) } void remplissageNote2_0 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_0"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_0"); @@ -9081,6 +9117,7 @@ void fenetreNote2_1 ( int argc, char *argv[] ) } void remplissageNote2_1 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_1"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_1"); @@ -9166,6 +9203,7 @@ void fenetreNote2_2 ( int argc, char *argv[] ) } void remplissageNote2_2 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_2"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_2"); @@ -9251,6 +9289,7 @@ void fenetreNote2_3 ( int argc, char *argv[] ) } void remplissageNote2_3 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_3"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_3"); @@ -9336,6 +9375,7 @@ void fenetreNote2_4 ( int argc, char *argv[] ) } void remplissageNote2_4 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_4"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_4"); @@ -9421,6 +9461,7 @@ void fenetreNote2_5 ( int argc, char *argv[] ) } void remplissageNote2_5 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_5"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_5"); @@ -9506,6 +9547,7 @@ void fenetreNote2_6 ( int argc, char *argv[] ) } void remplissageNote2_6 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_6"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_6"); @@ -9591,6 +9633,7 @@ void fenetreNote2_7 ( int argc, char *argv[] ) } void remplissageNote2_7 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_7"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_7"); @@ -9676,6 +9719,7 @@ void fenetreNote2_8 ( int argc, char *argv[] ) } void remplissageNote2_8 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_8"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_8"); @@ -9761,6 +9805,7 @@ void fenetreNote2_9 ( int argc, char *argv[] ) } void remplissageNote2_9 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_9"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_9"); @@ -9846,6 +9891,7 @@ void fenetreNote2_10 ( int argc, char *argv[] ) } void remplissageNote2_10 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_10"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_10"); @@ -9932,6 +9978,7 @@ void fenetreNote2_11 ( int argc, char *argv[] ) } void remplissageNote2_11 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_11"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_11"); @@ -10018,6 +10065,7 @@ void fenetreNote2_12 ( int argc, char *argv[] ) } void remplissageNote2_12 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_12"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_12"); @@ -10104,6 +10152,7 @@ void fenetreNote2_13 ( int argc, char *argv[] ) } void remplissageNote2_13 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_13"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_13"); @@ -10190,6 +10239,7 @@ void fenetreNote2_14 ( int argc, char *argv[] ) } void remplissageNote2_14 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_14"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_14"); @@ -10276,6 +10326,7 @@ void fenetreNote2_15 ( int argc, char *argv[] ) } void remplissageNote2_15 (GtkWidget *widget, gpointer *data){ +Motif* m = melodie[0]; GtkEntry *entryNote = (GtkEntry*) gtk_builder_get_object(monBuilder,"combonote2_15"); GtkEntry *entryOctave = (GtkEntry*) gtk_builder_get_object(monBuilder,"combooctave2_15");