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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtktreemodel.pre:123:    GValue v = {0};    gtk_tree_model_get_value(GTK_TREE_MODEL(THIS->obj),gti,i,&v);    pgtk2_push_gvalue_rt(&v);    g_value_unset(&v);    }    f_aggregate(cols);    }   }      mixed get_value(GTK2.TreeIter iter, int column) - //! Get value at column of iter. + //! Get value at column of iter. Column indices start at 0.   {    pgtk2_verify_inited();    {    GValue v={0};    struct object *o1;    INT_TYPE col;       get_all_args("get_value",args,"%o%i",&o1,&col);    gtk_tree_model_get_value(GTK_TREE_MODEL(THIS->obj),    (GtkTreeIter *)get_pg2object(o1,pgtk2_tree_iter_program),col,&v);    pgtk2_pop_n_elems(args);    pgtk2_push_gvalue_rt(&v);    g_value_unset(&v);    }   }    - +GTK2.TreeIter iter_next(GTK2.TreeIter iter) - //! Go to next node. + int iter_next(GTK2.TreeIter iter) + //! Sets iter to point to the node following it at the current level. If there + //! is no next iter, 0 is returned and iter is set to be invalid. + //! @returns + //! Returns 0 if there is no next iter, otherwise 1. + //!   {    pgtk2_verify_inited();    {    struct object *o1;    int res;    get_all_args("iter_next",args,"%o",&o1);    res=gtk_tree_model_iter_next(GTK_TREE_MODEL(THIS->obj),    (GtkTreeIter *)get_pg2object(o1,pgtk2_tree_iter_program));    pgtk2_pop_n_elems(args);    PGTK_PUSH_INT(res);