Re: Post-init function?
- From: Owen Taylor <otaylor redhat com>
- To: gtk-devel-list gnome org
- Cc: Cody Russell <bratsche gnome org>
- Subject: Re: Post-init function?
- Date: 02 Sep 2000 11:15:17 -0400
Cody Russell <bratsche@gnome.org> writes:
> Hi rambokid and GTK hackers,
>
> I want to GTK to have some sort of post-init function that gets called
> after the
> set_arg() loop is finished. This would be very useful I think. So
> gtk_object_new()
> would do something like:
>
> while (slist_arg)
> {
> gtk_object_arg_set (object, slist_arg->data,
> slist_info->data);
> slist_arg = slist_arg->next;
> slist_info = slist_info->next;
> }
> gtk_args_collect_cleanup (arg_list, info_list);
> }
>
> if (object->postinit)
> (* object->postinit) (object);
>
> if (!GTK_OBJECT_CONSTRUCTED (object))
> gtk_object_default_construct (object);
>
> return object;
> }
>
>
> Is there any reason for this not to exist? Since 2.0 is getting a new
> object
> system and everything, it seems like a good time to have this sort of
> feature
> added.
Tim seems to have anticipated you on this one. See:
http://mail.gnome.org/pipermail/gtk-devel-list/2000-August/004521.html
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]