Combo box from Glist without popdown_strings
- From: "Karl D. Middlebrooks" <coalblacksmith731 mac com>
- To: gtk-app-devel-list gnome org
- Subject: Combo box from Glist without popdown_strings
- Date: Sat, 24 Apr 2004 14:10:44 -0700
Alright, I'm pretty baffled on this one. I'm new to GTK/glib and am
using the latest versions of each (2.4, if I recall correctly).
I'm trying to populate a gtk_combo_box_entry_new_text with the items
from a Glist (a list of directories that I've gone and gathered up to
present to the user).
However, since gtk_combo_set_popdown_strings appears to be deprecated
(I get a warning about an implicit declaration of that function when I
compile with it), I'm not at all sure how to build the list.
I've been trying to do something like: g_list_foreach(glist, (GFunc)
gtk_combo_box_append_text(gtk_combo_box_set_active(combo), (gchar
*)glist),NULL);
but a couple of errors when I try and compile this. The errors aren't
terribly interesting, as I don't have a lot of confidence that this is
even the right approach.
Any help getting me straightened out on this would be appreciated.
Karl D. Middlebrooks
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]