A few gtk/glib related questions



What would be the correct way of removing all rows from a text combobox, as I'm trying not to use a full combobox. Now I'm thinking about something along the lines of:

i = gtk_tree_model_iter_n_children (gtk_combo_box_get_model(combobox), NULL);
while (i>0) {i--; gtk_combo_box_remove_text(combobox, i);}

but I want to make sure that's correct.

Next question: when going from GnomeUIInfo to GtkUIManager stock menu items stay translated, but is there a way to do it for menus (File, Edit, etc.)? Finally, what are the important differences between using AM_GNU_GETTEXT([external]) and AM_GLIB_GNU_GETTEXT ?

And yeah, I still think that having no other way than gtk_rc_parse_string of forcing combobox to become a list really sucks.



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