pike.git / src / post_modules / GTK2 / source / gtkcontainer.pre

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkcontainer.pre:23:   //! Calling this function might result in a resize of the container.      void add(GTK2.Widget widget)   //! Add a subwidget to the container. Don't forget to call show() in   //! the subwidget. Some (even most) containers can only contain one child.   //! Calling this function might result in a resize of the container.   {    pgtk2_verify_inited();    {    struct object *o1; -  get_all_args("add",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    gtk_container_add(GTK_CONTAINER(THIS->obj),GTK_WIDGET(get_gobject(o1)));    }    RETURN_THIS();   }      void remove(GTK2.Widget widget);   //! Remove a child from the container. The argument is the child to remove.   //! Calling this function might result in a resize of the container.      int get_resize_mode();
pike.git/src/post_modules/GTK2/source/gtkcontainer.pre:137:   //! <p>   //! In principle each widget in the chain should be a descendant of the   //! container, but this is not enforced by this method, since it's allowed to   //! set the focus chain before you pack the widgets, or have a widget in the   //! chain that isn't always packed. The necessary checks are done when the   //! focus chain is actually traversed.   {    pgtk2_verify_inited();    {    struct array *a; -  get_all_args("set_focus_chain",args,"%A",&a); +  get_all_args(NULL,args,"%A",&a);    if (a==NULL)    Pike_error("Invalid argument.\n");    if (a->size) {    GList *gl = NULL;    int i;    GtkWidget *w;    for (i=0; i<a->size; i++) {    if (TYPEOF(ITEM(a)[i]) == PIKE_T_OBJECT) {    w=GTK_WIDGET(get_gobject((ITEM(a)+i)->u.object));    gl=g_list_append(gl,w);