"Sailaxmi korada " wrote:
My application has to display around 3000 toggle buttons, in 178 rows of a table. It is taking almost 12 seconds to do so.
Can you help me out in reducing this time. Here are the two steps that are consuming maximum time
gtk_button_set_label (GTK_BUTTON(drpentry_binbutton), "1");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(drpentry_binbutton),FALSE);
I refrain from asking who might be supposed to toggle all 3000 buttons. I rather suggest you to do without standard widgets at all when it comes to such an exorbitant number of toggles.
Sorry if I'm jumping into a thread that I havent read... maybe this comment was already made on this thread...
Why not use GtkCellRendererToggle w/ GtkTreeView & GtkListStore ?
Or use a GtkListStore to select your data item and some togglebuttons and whatever other control widgets below your treeview (i.e. the single toggle button applies only to the selected row) ?
(Sure; writing treeview code is a pain, but its perfect for these "large dataset" situations).
Cheers,
-Tristan