Re: gtk_widget_destroy
- From: Brandon McCombs <brandon ovnet com>
- To: Sven Neumann <sven gimp org>
- Cc: AndrXs Giraldo <andres_giraldo yahoo com>, Gtk List <gtk-list gnome org>
- Subject: Re: gtk_widget_destroy
- Date: Wed, 20 Jun 2001 16:30:05 -0400
Sven Neumann wrote:
Hi,
"AndrXs" Giraldo <andres_giraldo yahoo com> writes:
I'm creating a window from a nother window, something
like a message box, but when I want to unload this
window;
should I use gtk_widget_destroy?
Because I'm connecting this signal to a button clicked
event:
gtk_signal_connect (GTK_OBJECT (btnClose), "clicked",
GTK_SIGNAL_FUNC
(on_btnClose_clicked), NULL)
// callback function
void on_btnClose_clicked (GtkButton *button, gpointer
data)
{
GtkWidget *window = (GtkWidget *)data;
gtk_widget_destory (window);
}
you did not pass the window pointer when connecting
your signal. How is this supposed to work ??
true however he also didn't spell gtk_widget_destroy correctly....he
needs to fix that typo as well.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]