Creating GTKList elements

From: Date: Fri, 22 Feb 2002 17:58:43 +0000
Subject: Creating GTKList elements
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-1313@lists.php.net to get a copy of this message
Hi, my aim is to create a List in GTK similiar to: http://selfhtml.teamone.de/html/formulare/anzeige/select.htm in HTML. I figured out, that I should use the GTKList element, but it takes Items from GTKListItem which I could not create. Actually, what I need are two things the item should have #1 a string which is presented in the list #2 an id or hadnler so I can access this or know which item was selected, clicked on etc. the GtkListItem Element hast a function in C which is called gtk_list_item_new_with_label() which allows at list the string I want (although I wouldn't know how to identify each Item yet). Nevertheless, I couldn't figure out how to use this either. insert_items() of a GtkList object actually "says" that an element of GtkListItem is needed. In addtion to all of that, the GTK documentation itself says that gtk_list_insert_items() needs a GList element. I was not able to create an instance of GList element. Any help, advice, source sample would be very helpful. Thanks a lot -moh

« previous php.gtk.general (#1313) next »