Hi.
In my previous post people said to me i need an array. I'm trying to insert things in an array and I get errors.
This is my piece of code (from line 77 to 85):
int buttons_add_audio_input[howmanyofeach];
int i = 0;
while (i < howmanyofeach) {
buttons_add_audio_input[i] = gtk_button_new_with_label("Add Audio Input"); /* creates the button */
gtk_widget_set_size_request (buttons_add_audio_input[i], 150, 30); /* sets the size */
gtk_fixed_put(GTK_FIXED(frame), buttons_add_audio_input[i], 0, 0); /* adds the button to the frame in a position */
g_signal_connect(buttons_add_audio_input[i], "clicked", G_CALLBACK(jack_add_input), NULL); /* connects the button to a function */
i ++;
}
And this are the errors I get:
vass.c:80: warning: assignment makes integer from pointer without a cast
vass.c:81: warning: passing argument 1 of ‘gtk_widget_set_size_request’ makes pointer from integer without a cast
vass.c:82: warning: passing argument 2 of ‘gtk_fixed_put’ makes pointer from integer without a cast
vass.c:83: warning: passing argument 1 of ‘g_signal_connect_data’ makes pointer from integer without a cast