From 85bf0e61d2559728a4fe6b39ead80a248bac817a Mon Sep 17 00:00:00 2001
From: Li Yuan
Date: Fri, 20 May 2005 02:21:29 +0000
Subject: export ethi_change_sort_state, so we can call it in a11y part.
2005-05-20 Li Yuan
* e-table-header-item.c:
* e-table-header-item.h:
export ethi_change_sort_state, so we can call it in a11y part.
* e-tree.c: (e_tree_get_header_item):
* e-tree.h:
return the header item of e-tree.
Fix for #302154.
svn path=/trunk/; revision=29393
---
widgets/table/e-table-header-item.c | 2 +-
widgets/table/e-table-header-item.h | 3 +++
widgets/table/e-tree.c | 8 ++++++++
widgets/table/e-tree.h | 2 ++
4 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c
index 14438f39d2..393f24c25c 100644
--- a/widgets/table/e-table-header-item.c
+++ b/widgets/table/e-table-header-item.c
@@ -1538,7 +1538,7 @@ ethi_button_pressed (ETableHeaderItem *ethi, GdkEventButton *event)
ethi_signals [BUTTON_PRESSED], 0, event);
}
-static void
+void
ethi_change_sort_state (ETableHeaderItem *ethi, ETableCol *col)
{
int model_col;
diff --git a/widgets/table/e-table-header-item.h b/widgets/table/e-table-header-item.h
index d1e539888c..955cb402c3 100644
--- a/widgets/table/e-table-header-item.h
+++ b/widgets/table/e-table-header-item.h
@@ -112,6 +112,9 @@ typedef struct {
void (*button_pressed) (ETableHeaderItem *ethi, GdkEventButton *button);
} ETableHeaderItemClass;
+void
+ethi_change_sort_state (ETableHeaderItem *ethi, ETableCol *col);
+
GType e_table_header_item_get_type (void);
G_END_DECLS
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c
index 718444bb2b..3286d40907 100644
--- a/widgets/table/e-tree.c
+++ b/widgets/table/e-tree.c
@@ -2159,6 +2159,14 @@ e_tree_get_item(ETree * et)
return E_TABLE_ITEM (et->priv->item);
}
+GnomeCanvasItem *
+e_tree_get_header_item(ETree * et)
+{
+ g_return_val_if_fail (et != NULL, NULL);
+ g_return_val_if_fail (E_IS_TREE (et), NULL);
+
+ return et->priv->header_item;
+}
struct _ETreeDragSourceSite
{
diff --git a/widgets/table/e-tree.h b/widgets/table/e-tree.h
index 197ef05fef..dd7d615982 100644
--- a/widgets/table/e-tree.h
+++ b/widgets/table/e-tree.h
@@ -306,6 +306,8 @@ void e_tree_right_click_up (ETree *et);
ETableItem * e_tree_get_item(ETree * et);
+GnomeCanvasItem * e_tree_get_header_item(ETree * et);
+
G_END_DECLS
#endif /* _E_TREE_H_ */
--
cgit v1.2.3