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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtktreepath.pre:97:    pgtk2_verify_inited();    pgtk2_pop_n_elems(args);    PGTK_PUSH_INT(gtk_tree_path_get_depth((GtkTreePath *)THIS->obj));   }      array(int) get_indices()   //! Returns the current indices of path as an array   //! of integers, each representing a node in a tree.   {    int n=0; +  gint depth=gtk_tree_path_get_depth((GtkTreePath *)THIS->obj);    gint *arr=gtk_tree_path_get_indices((GtkTreePath *)THIS->obj);    pgtk2_pop_n_elems(args); -  while (arr[n]) -  PGTK_PUSH_INT(arr[n++]); -  if (!n) -  ref_push_array(&empty_array); +  if (!depth) ref_push_array(&empty_array);    else -  +  { +  while (n<depth) +  PGTK_PUSH_INT(arr[n++]);    f_aggregate(n);    } -  + }      void destroy()   {    if (THIS->obj && THIS->owned)    gtk_tree_path_free((GtkTreePath *)THIS->obj);    THIS->obj=0;    pgtk2_pop_n_elems(args);    PGTK_PUSH_INT(0);   }