Re: Delete in GtkList
- From: John Cupitt <john cupitt ng-london org uk>
- To: arno-unix ifrance com
- Cc: Gtk List <gtk-list gnome org>
- Subject: Re: Delete in GtkList
- Date: Tue, 31 Jul 2001 17:10:01 +0100
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 :-)
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]