[maemo-developers] Displaying thumbnails in listbox gives garbage value
From: Daniil Ivanov daniil.ivanov at gmail.comDate: Wed Jun 2 16:01:35 EEST 2010
- Previous message: Displaying thumbnails in listbox gives garbage value
- Next message: Displaying thumbnails in listbox gives garbage value
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Pallavi!
You are supposed to use something like this in order to create a model
GtkTreeIter iter;
GtkListStore *model = gtk_list_store_new (1, GDK_TYPE_PIXBUF);
for (i = 0; i < 100; i++) {
GdkPixbuf *pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB,
FALSE, 8, 100, 100);
gtk_list_store_append (model, &iter);
gtk_list_store_set (model, &iter, 0, pixbuf, -1);
}
Thanks, Daniil.
On Wed, Jun 2, 2010 at 3:43 PM, Pallavi Kandhare
<pallavi.kandhare at yahoo.com> wrote:
> Hi Andre,
> I am not able to view ur recent mail content. Can u pls reply once again.
> Thanks.
>
>
> Please note that when i try to display the same image in
> window the image is seen.
> But when i add the image to listbox , on screen I can see
> garbage value in place of each image.
> Code is as follows:
>
> void add_to_list(GtkWidget *list, GtkImage *image) {
> GtkListStore *store;
> GtkTreeIter iter;
>
> store = GTK_LIST_STORE(gtk_tree_view_get_model
> (GTK_TREE_VIEW(list)));
>
> gtk_list_store_append(store, &iter);
> gtk_list_store_set(store, &iter, LIST_ITEM, image, -1);
> }
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
- Previous message: Displaying thumbnails in listbox gives garbage value
- Next message: Displaying thumbnails in listbox gives garbage value
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
