Re: Glade and gtk_object_set_data_full
- From: Damon Chaplin <damon helixcode com>
- To: Ron Martin <rmartin cps cmich edu>
- Cc: GTK List <gtk-list gnome org>
- Subject: Re: Glade and gtk_object_set_data_full
- Date: Tue, 09 May 2000 00:19:48 +0100
Ron Martin wrote:
>
> Hi there.
>
> I have noticed that in interface.c, Glade will do a
> gtk_object_set_data_full() on all the widgets to the parent widget. I
> was wondering why. I was under the impression that a widget will delete
> its children when it is told to delete itself. Perhaps there is another
> reason to use gtk_object_set_data_full()?
It is just to make sure that when calling lookup_widget() you never
get an invalid pointer. If we didn't ref the widgets pointed to and they
were destroyed somewhere this could happen.
Damon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]