×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    34

    Display image in listbox in Maemo

    Hi,
    Is it possible to display image in listbox in Maemo C using GTK?
    Thanks

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Display image in listbox in Maemo

    You can do it using GtkTreeView and GtkListStore
    http://library.gnome.org/devel/gtk/s...kTreeView.html
    http://library.gnome.org/devel/gtk/s...ListStore.html
    Example how you shoud create a model:
    Code:
    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);
    }
    Last edited by divanov; 2010-06-02 at 14:09.

Similar Threads

  1. resize image and display in list box
    By chinnu_p in forum Mobile Java General
    Replies: 2
    Last Post: 2009-12-30, 11:48
  2. Nokia N-Series Complete Model Line-Up
    By Dopod in forum General Development Questions
    Replies: 6
    Last Post: 2008-07-22, 20:16
  3. Display an image in tabs
    By srouil in forum Symbian
    Replies: 2
    Last Post: 2006-03-02, 14:41
  4. simple script to display rgb image
    By gojkoa in forum Symbian
    Replies: 1
    Last Post: 2005-11-21, 09:33
  5. I want to Display an image as part of installation
    By johnward1978 in forum Symbian
    Replies: 1
    Last Post: 2004-10-19, 04:02

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×