Logo Search packages:      
Sourcecode: pan version File versions

bool PanTreeStore::get_parent ( GtkTreeIter *  setme_parent,
GtkTreeIter *  child 
)

Equivalent to gtk_tree_model_get_parent().

Definition at line 323 of file pan-tree.cc.

References get_row(), PanTreeStore::Row::parent, root, and stamp.

{
  g_return_val_if_fail (child, false);
  g_return_val_if_fail (iter, false);
  g_return_val_if_fail (child->stamp == stamp, false);

  const Row * row (get_row (child));
  const bool has_public_parent (row->parent != root);
  if (has_public_parent)
    set_iter (iter, row->parent);
  else
    invalidate_iter (iter);
  return has_public_parent;
}


Generated by  Doxygen 1.6.0   Back to index