Post-init function?



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.

Thanks,
     bratsche





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