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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtktreepath.pre:59:    my_pop_n_elems(args);    PGTK_PUSH_GCHAR(a1);    }   }      void append_index(int index)   //! Appends a new index to path. As a result, the depth   //! of the path is increased.   {    pgtk_verify_inited(); -  if (args) { +  {    int index;    get_all_args("append_index",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.   {    pgtk_verify_inited(); -  if (args) { +  {    int index;    get_all_args("prepend_index",args,"%i",&index);    gtk_tree_path_prepend_index((GtkTreePath *)THIS->obj,index);    }    RETURN_THIS();   }      int get_depth()   //! Returns the current depth of path.   {
pike.git/src/post_modules/GTK2/source/gtktreepath.pre:97:      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 *arr=gtk_tree_path_get_indices((GtkTreePath *)THIS->obj);    my_pop_n_elems(args);    while (arr[n])    PGTK_PUSH_INT(arr[n++]); -  if (!n) { +  if (!n)    ref_push_array(&empty_array); -  } else +  else    f_aggregate(n);   }      void destroy()   //! Destructor.   {    if (THIS->obj)    gtk_tree_path_free((GtkTreePath *)THIS->obj);    THIS->obj=0;    my_pop_n_elems(args);
pike.git/src/post_modules/GTK2/source/gtktreepath.pre:160:      void prev()   //! Moves the path to point to the previous node at the current depth,   //! if it exists. Returns TRUE if the move was made.   {    pgtk_verify_inited();    gtk_tree_path_prev((GtkTreePath *)THIS->obj);    RETURN_THIS();   }    - int up() + void up()   //! Moves the path to point to its parent node, if it has a parent.   {    pgtk_verify_inited();    gtk_tree_path_up((GtkTreePath *)THIS->obj);    RETURN_THIS();   }      void down()   //! Moves path to point to the first child of the current path.   {