Re: gtkclist



Just access the GtkClist widget structure member "rows" and this will
tell you how many items there are in the Clist.


    GtkWidget *CList_Widget;
    gint rows;

    row = GTK_CLIST(CList_Widget)->rows;

You can then loop throught the clist based on the "rows" variable.

    for (i=0; i<rows; i++)
    {
        /* Process each row here */
        gtk_clist_get_text(...
        etc...
    }

Monserrat Seisdedos Nuņez wrote:
> 
> Hello everybody:
> how can i know how many rows are there in a gtkclist????
> Is there any conversion macro to get a glist from a gtkclist???
> 
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list

-- 
        __.--'\     \.__./     /'--.__
    _.-'       '.__.'    '.__.'       '-._
  .'                                      '.
 /         Matt Keenan (MattMan)            \
|      CDE, Sun Microsystems Ireland         |
|              GO JAGUARS !!                 |
|   E-Mail : Matt Keenan ireland Sun Com     |
|            mattman iol ie                  |
|   URL    : http://www.iol.ie/~mattman      |
|   Phone  : +353 1 8199251, Sun Ext : 19251 |
 \         .---.              .---.         /
  '._    .'     '.''.    .''.'     '.    _.'
     '-./            \  /            \.-'
                      ''




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