Re: [gtk-list] gtk_object_destroy() or gtk_widget_destroy()
- From: Tim Janik <timj gtk org>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] gtk_object_destroy() or gtk_widget_destroy()
- Date: Mon, 9 Aug 1999 17:53:19 +0200 (CEST)
On Mon, 9 Aug 1999, Per Erik Stendahl wrote:
>
> Hi.
>
> For a widget: do I have to call gtk_widget_destroy() or can I
> use gtk_object_destroy() instead?
gtk_widget_destroy() is just a convenience alias for gtk_object_destroy():
void
gtk_widget_destroy (GtkWidget *widget)
{
g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_WIDGET (widget));
g_return_if_fail (GTK_OBJECT_CONSTRUCTED (widget));
gtk_object_destroy ((GtkObject*) widget);
}
>
> Cheers.
>
> --
> Per Erik Stendahl
>
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]