Re: gtk combo - inserting popdown strings in GTK 1.2



"Johnny" wrote:

Hi, how can insert some string in the combo's popdown without using
GList? It's possible using Gtk1.2?

What's wrong with GLists? They are the way it works. The following
functions should provide you with the desired result:

http://developer.gnome.org/doc/API/glib/glib-doubly-linked-lists.html#G-LIST-INSERT
http://developer.gnome.org/doc/API/glib/glib-doubly-linked-lists.html#G-LIST-INSERT-SORTED
http://developer.gnome.org/doc/API/glib/glib-doubly-linked-lists.html#G-LIST-APPEND
http://developer.gnome.org/doc/API/glib/glib-doubly-linked-lists.html#G-LIST-PREPEND

http://developer.gnome.org/doc/API/gtk/gtkcombo.html#GTK-COMBO-SET-POPDOWN-STRINGS

See also the very simple programming example at:
http://developer.gnome.org/doc/API/gtk/gtkcombo.html#GTKCOMBO-SIMPLE-EXAMPLE



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