Re: GtkIconView set_item_width question



Thanks... this is the screenshoots:
http://martini.gurumeditation.it/gtkiconview_problem.jpg
(the image are available at http://martini.gurumeditation.it/gtkiconview_problem.jpg)

How can you see some icon (like Duel) take 2 much space...I can't find why.

This is the code i used:

//init
icon_view = gtk_icon_view_new ();
list_store = gtk_list_store_new (3, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_POINTER);
gtk_icon_view_set_item_width(GTK_ICON_VIEW(icon_view),128);
gtk_icon_view_set_column_spacing(GTK_ICON_VIEW(icon_view),10);
gtk_icon_view_set_pixbuf_column (GTK_ICON_VIEW (icon_view), PIXBUF_COLUMN);
gtk_icon_view_set_text_column (GTK_ICON_VIEW (icon_view), TEXT_COLUMN);
gtk_icon_view_set_selection_mode(GTK_ICON_VIEW(icon_view),GTK_SELECTION_MULTIPLE);
gtk_icon_view_set_model (GTK_ICON_VIEW (icon_view), GTK_TREE_MODEL(list_store));

//this for add icon
gtk_list_store_set (list_store, &iter, PIXBUF_COLUMN, pixbuf, TEXT_COLUMN, mafile->name_utf8->str, DATA_COLUMN, mafile, -1);




Thanks
Dave



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