aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorLi Yuan <li.yuan@sun.com>2005-05-20 10:21:29 +0800
committerHarry Lu <haip@src.gnome.org>2005-05-20 10:21:29 +0800
commit85bf0e61d2559728a4fe6b39ead80a248bac817a (patch)
treec6e0a2938673a1cd25f42d5dfc727776b4c8ac0d /widgets
parentb0d7f928cba7c6120639634b2b9af3895ddb3bde (diff)
downloadgsoc2013-evolution-85bf0e61d2559728a4fe6b39ead80a248bac817a.tar.gz
gsoc2013-evolution-85bf0e61d2559728a4fe6b39ead80a248bac817a.tar.zst
gsoc2013-evolution-85bf0e61d2559728a4fe6b39ead80a248bac817a.zip
export ethi_change_sort_state, so we can call it in a11y part.
2005-05-20 Li Yuan <li.yuan@sun.com> * 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
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-table-header-item.c2
-rw-r--r--widgets/table/e-table-header-item.h3
-rw-r--r--widgets/table/e-tree.c8
-rw-r--r--widgets/table/e-tree.h2
4 files changed, 14 insertions, 1 deletions
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_ */