RE: how can i refresh or clear the window or widgets



ClearnAll(GtkContainer *parent) {
        GList *plst,*plsth;
        plsth=plst=gtk_container_children(parent);
        while(plst) {
                  if (GTK_IS_ENTRY(plst->data)){
                        gtk_entry_set_text(GTK_ENTRY(plst->data),"");
                }else if (GTK_IS_CONTAINER(plst->data)) {
                        ClearnAll(GTK_CONTAINER(plst->data));
                }
                plst=g_list_next(plst);
        }
        g_list_free(plsth);
}

-----Original Message-----
From: gtk-app-devel-list-admin gnome org
[mailto:gtk-app-devel-list-admin gnome org] On Behalf Of manu aradhya
Sent: Saturday, October 11, 2003 6:12 AM
To: gtk-app-devel-list gnome org
Subject: how can i refresh or clear the window or widgets

i have set of entry boxes in a page. on certain key i
have to clear all the entry fields. is there any
fuction like clear or refresh or redraw  like that.
                                      -manu

________________________________________________________________________
Yahoo! India Matrimony: Find your partner online.
Go to http://yahoo.shaadi.com
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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