method for destroying GtkFileSelection
- From: Axel <axel azerty netcourrier com>
- To: gtk-app-devel-list gnome org, gtk-list <gtk-list gnome org>
- Subject: method for destroying GtkFileSelection
- Date: Fri, 28 Mar 2003 11:06:24 +0100
Hi
here is the handler I use to destroy a gtkfileselection, when CANCEL 
button is pushed
void cancel(GtkButton *cancel_button)
   {
   GtkWidget *window;
   window=gtk_wifget_get_parent(GTK_WIDGET(cancel_button));
   window=gtk_wifget_get_parent(window);
   window=gtk_wifget_get_parent(window);
   gtk_widget_destroy(window);
   }
Is there a better way than that? (get the parent widget until you get 
the window)
Axel
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]