I have to clear and rebuild the same combo box several times during my
program, and am using this:
void clear_combo(GtkCombo *combo)
/* **********************************************************
* Temporary until something better comes along.
********************************************************** */
{
if(GTK_LIST(combo->list)){
gtk_list_clear_items(GTK_LIST(combo->list),0,-1);
printf("combo list cleared.\n");
}else{
printf("combo list empty.\n");
}
}/* clear_combo */
It works fine, but I doubt it is kosher memorywise because the string
items in the combo are all declared dymanically. What's a standard,
nice way of clearing out a combo box?
Thanks,
John
--
To unsubscribe: mail -s unsubscribe [EMAIL PROTECTED] < /dev/null