GtkList again! :(



Hi,
 
Sorry to bother you people again! But for some reason my GtkList doesn't have a scrollbar. I'm guessing that it should have one automatically after what the API says about it...I've currently got:
 
list_shopping_list = gtk_list_new();
gtk_widget_ref (list_shopping_list);
gtk_object_set_data_full (GTK_OBJECT (window_main), "list_shopping_list", list_shopping_list, (GtkDestroyNotify) gtk_widget_unref);
gk_widget_show (list_shopping_list);
gtk_box_pack_start (GTK_BOX (hbox3), list_shopping_list, TRUE, TRUE, 0);
 
 
 
In a seperate file:
 
GtkWidget *item;
GList *list = NULL;
 
and then in a while loop which goes around about 200 times:
 
{
    item = gtk_list_item_new_with_label (i);
    list = gtk_list_append (list, item);
}
 
gtk_list_append_items (GTK_LIST (list_shopping_list), list);
gtk_widget_show_all (window_main);
 
 
 


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