diff options
Diffstat (limited to 'chrome/common/gtk_tree.h')
-rw-r--r-- | chrome/common/gtk_tree.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/chrome/common/gtk_tree.h b/chrome/common/gtk_tree.h new file mode 100644 index 0000000..8a6f694 --- /dev/null +++ b/chrome/common/gtk_tree.h @@ -0,0 +1,25 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_COMMON_GTK_TREE_H_ +#define CHROME_COMMON_GTK_TREE_H_ + +#include <gtk/gtk.h> + +namespace gtk_tree { + +// Get the row number corresponding to |path|. +gint GetRowNumForPath(GtkTreePath* path); + +// Get the row number corresponding to |iter|. +gint GetRowNumForIter(GtkTreeModel* model, GtkTreeIter* iter); + +// Get the row number in the child tree model corresponding to |sort_path| in +// the parent tree model. +gint GetTreeSortChildRowNumForPath(GtkTreeModel* sort_model, + GtkTreePath* sort_path); + +} // namespace gtk_tree + +#endif // CHROME_COMMON_GTK_TREE_H_ |