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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtktreepath.pre:3:      //! TreePath.      void create(?string path)   //! Creates a new GTK2.TreePath.   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    if (args) {    char *s; -  get_all_args("create",args,"%s",&s); +  get_all_args(NULL,args,"%s",&s);    if (s) {    THIS->obj=(void *)gtk_tree_path_new_from_string(s);    THIS->owned=1;    } else {    THIS->obj=(void *)gtk_tree_path_new_first();    THIS->owned=1;    }    } else {    THIS->obj=(void *)gtk_tree_path_new_first();    THIS->owned=1;    }    pgtk2_pop_n_elems(args);    pgtk2__init_this_object();   }      string _sprintf(int flag)   {    INT_TYPE mode=0;    pgtk2_verify_inited();    if (args) -  get_all_args("_sprintf",args,"%i",&mode); +  get_all_args(NULL,args,"%i",&mode);    pgtk2_pop_n_elems(args);    if (mode!='O') {    push_undefined();    return;    }    {    gchar *s=gtk_tree_path_to_string((GtkTreePath *)THIS->obj);    if (s) {    ref_push_string(_STR("GTK2.TreePath( \""));    PGTK_PUSH_GCHAR(s);
pike.git/src/post_modules/GTK2/source/gtktreepath.pre:65:    }   }      void append_index(int index)   //! Appends a new index to path. As a result, the depth   //! of the path is increased.   {    pgtk2_verify_inited();    {    INT_TYPE index; -  get_all_args("append_index",args,"%i",&index); +  get_all_args(NULL,args,"%i",&index);    gtk_tree_path_append_index((GtkTreePath *)THIS->obj,index);    }    RETURN_THIS();   }      void prepend_index(int index)   //! Prepends a new index to a path. As a result, the depth   //! of the path is increased.   {    pgtk2_verify_inited();    {    INT_TYPE index; -  get_all_args("prepend_index",args,"%i",&index); +  get_all_args(NULL,args,"%i",&index);    gtk_tree_path_prepend_index((GtkTreePath *)THIS->obj,index);    }    RETURN_THIS();   }      int get_depth()   //! Returns the current depth of path.   {    pgtk2_verify_inited();    pgtk2_pop_n_elems(args);
pike.git/src/post_modules/GTK2/source/gtktreepath.pre:139:      int compare(GTK2.TreePath b)   //! Compares two paths. If this path appears before b, -1 is returned.   //! If b before this path, 1 is return. If they are equal, 0 is returned.   {    pgtk2_verify_inited();    {    GtkTreePath *gp=NULL;    struct object *o1;    int res; -  get_all_args("compare",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    if (o1)    gp=(GtkTreePath *)get_pg2object(o1,pgtk2_tree_path_program);    res=gtk_tree_path_compare((GtkTreePath *)THIS->obj,gp);    pgtk2_pop_n_elems(args);    PGTK_PUSH_INT(res);    }   }      void next()   //! Moves the path to point to the next node at the current depth.
pike.git/src/post_modules/GTK2/source/gtktreepath.pre:189:   }      int is_ancestor(GTK2.TreePath descendant)   //! Returns TRUE if descendant is a descendant of this path.   {    pgtk2_verify_inited();    {    GtkTreePath *gp=NULL;    struct object *o1;    int res; -  get_all_args("is_ancestor",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    if (o1)    gp=(GtkTreePath *)get_pg2object(o1,pgtk2_tree_path_program);    res=gtk_tree_path_is_ancestor((GtkTreePath *)THIS->obj,gp);    pgtk2_pop_n_elems(args);    PGTK_PUSH_INT(res);    }   }      int is_descendant(GTK2.TreePath ancestor)   //! Returns TRUE if this path is a descendant of ancestor.   {    pgtk2_verify_inited();    {    GtkTreePath *gp = NULL;    struct object *o1;    int res; -  get_all_args("is_descendant",args,"%o",&o1); +  get_all_args(NULL,args,"%o",&o1);    if (o1)    gp=(GtkTreePath *)get_pg2object(o1,pgtk2_tree_path_program);    res=gtk_tree_path_is_descendant((GtkTreePath *)THIS->obj,gp);    pgtk2_pop_n_elems(args);    PGTK_PUSH_INT(res);    }   }