Set up callbacks for dynamically created buttons




I'm creating some buttons using:
buttons = g_new(GtkWidget*, n);
for (i = 0; i < n; i++) {
   buttons[i] = gtk_button_new...
   gtk_button_whatever(GTK_BUTTON(buttons[i])...
   ...
   gtk_box_pack_start(GTK_BOX(some_box), buttons[i]...
}
how would I set these buttons up with call backs once they're created?
--
View this message in context: 
http://www.nabble.com/Set-up-callbacks-for-dynamically-created-buttons-t1490320.html#a4038183
Sent from the Gtk+ - Apps Dev forum at Nabble.com.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]