gtk/gtk2/gtk2_listbox.c
/*
 * AddListItem
 *
 * Add the text to the listbox.
 */
AddListItem
Add the text to the listbox.
AddListItem Add the text to the listbox .
void AddListItem (GtkWidget *listbox, char *sText)
{
    GtkWidget     *item;
    item = gtk_list_item_new_with_label (sText);
    gtk_signal_connect (GTK_OBJECT (item), "select",
            GTK_SIGNAL_FUNC (listitem_selected), sText);
    gtk_container_add (GTK_CONTAINER (listbox), item);
    gtk_widget_show (item);
}
void AddListItem ( GtkWidget * listbox , char * sText ) { GtkWidget * item ; item = gtk_list_item_new_with_label ( sText ) ; gtk_signal_connect ( GTK_OBJECT ( item ) , " " , GTK_SIGNAL_FUNC ( listitem_selected ) , sText ) ; gtk_container_add ( GTK_CONTAINER ( listbox ) , item ) ; gtk_widget_show ( item ) ; }
AddListItem
 Add the text to the listbox.
AddListItem Add the text to the listbox .
/* --- Create a list item from the data element --- */ /* --- Conigure for the "select" event --- */ /* --- Add item to the listbox --- */ /* --- Make it visible --- */