Re: destroy another widget
- From: Allin Cottrell <cottrell wfu edu>
- To: Pablo Fischer <exilion yifan net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: destroy another widget
- Date: Thu, 18 Jul 2002 07:24:31 -0400 (EDT)
On 18 Jul 2002, Pablo Fischer wrote:
Im still trying to get working my software, also.. when I pass a
GtkWidget to other function and in that function destroy it.. the
Widget that its destroyed its not the widget that I pass, its
another!! (the button that calls the function).
To destroy widget "foo" when widget "button" is clicked:
g_signal_connect (G_OBJECT(button), "clicked",
G_CALLBACK(delete_widget),
foo);
The callback is:
void delete_widget (GtkWidget *widget, gpointer data)
{
gtk_widget_destroy (GTK_WIDGET(data));
}
Allin Cottrell.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]