Re: widget destroy



zze-coframi balr001 <coframi balr001 rd francetelecom com> writes:

Does the following code release memory of the widget or does it simply but a
flag to true ??

      gtk_object_ref (widget);
      GTK_OBJECT_SET_FLAGS (widget, DESTROYED);
      gtk_object_unref(widget);

Thanks for answer

That code doesn't make any sense, it's not something you want to do.

Just call gtk_widget_destroy (widget).

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]