aboutsummaryrefslogtreecommitdiff
path: root/src/gtkutils.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-04-12 09:41:28 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-04-12 09:41:28 +0000
commit5b061cee06fde861174b7e186c5bfacbd1a97b4c (patch)
tree59a9fbbb5689e339c8a87deef400975db7dac4f9 /src/gtkutils.c
parent0357b77bd93423f308ed98e31249e51a9d43ed5c (diff)
folderview.c: remember the column width and restored Search menu.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@212 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/gtkutils.c')
-rw-r--r--src/gtkutils.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gtkutils.c b/src/gtkutils.c
index 02cb7a36..3807c9ef 100644
--- a/src/gtkutils.c
+++ b/src/gtkutils.c
@@ -449,6 +449,25 @@ gboolean gtkut_tree_model_find_by_column_data(GtkTreeModel *model,
return FALSE;
}
+gboolean gtkut_tree_row_reference_equal(GtkTreeRowReference *ref1,
+ GtkTreeRowReference *ref2)
+{
+ GtkTreePath *path1, *path2;
+ gint result;
+
+ g_return_val_if_fail(ref1 != NULL && ref2 != NULL, FALSE);
+
+ path1 = gtk_tree_row_reference_get_path(ref1);
+ path2 = gtk_tree_row_reference_get_path(ref2);
+
+ result = gtk_tree_path_compare(path1, path2);
+
+ gtk_tree_path_free(path2);
+ gtk_tree_path_free(path1);
+
+ return (result == 0);
+}
+
gboolean gtkut_tree_view_find_collapsed_parent(GtkTreeView *treeview,
GtkTreeIter *parent,
GtkTreeIter *iter)