Re: Delete in GtkList

Arno wrote:
> I would like to know if there is a function which makes it possible to remove
> all the elements of GtkList. If not, how can do that ?

Hi Arno, I did this with:

static void
delete_all( GtkWidget *list ) 
        GList *children = GTK_LIST( list )->children;
        int len = g_list_length( children );

        if( len > 1 ) 
                gtk_list_clear_items( GTK_LIST( list ), 0, len - 1 );

No doubt there's a better way :-)


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