[maemo-developers] Displaying thumbnails in listbox gives garbage value

From: Pallavi Kandhare pallavi.kandhare at yahoo.com
Date: Wed Jun 2 15:43:07 EEST 2010
 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);
 }
 

 
 
       
 


      

More information about the maemo-developers mailing list