[10441] in The GTK GIMP ToolKit mailing list archive
[gtk-list] A dumb question about gtk_widget_destroy().
daemon@ATHENA.MIT.EDU (Sergei O. Naoumov)
Wed Nov 25 12:19:26 1998
To: gtk-list@redhat.com
Reply-To: serge@physics.unc.edu
Date: Wed, 25 Nov 1998 11:24:51 -0500
From: "Sergei O. Naoumov" <serge@physics.unc.edu>
Resent-From: gtk-list@redhat.com
Hi!
It must be a really dumb question but... Here is a piece of code from
testgtk (from 1.0.5):
button = gtk_button_new_with_label ("close");
gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
GTK_SIGNAL_FUNC(gtk_widget_destroy),
GTK_OBJECT (window));
However, looking at gtkwidget.h, I see that gtk_widget_destroy() only has
one argument, so the above piece of code should destroy the button
itself, not the whole window. It does exactly that when I program it
like this, but it works in testgtk.
Am I in sane? Thanks.
Sergei
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null