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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtktreemodel.pre:151:   //! Go to next node.   {    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); +  if (res) { +  push_pgdk2object(iter,pgtk2_tree_iter_program,1); +  } else { +  push_int(0); +  g_free( iter );    }    } -  + }      +GTK2.TreeIter iter_children(GTK2.TreeIter parent)   //! Get first child of parent.   {    pgtk2_verify_inited();    {    GtkTreeIter *iter;    struct object *o1;    int res;    get_all_args("iter_children",args,"%o",&o1);