[java-atk-wrapper] JNI: Create jaw_table_set_column_header
- From: Magdalen Berns <mberns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] JNI: Create jaw_table_set_column_header
- Date: Sat, 4 Jul 2015 13:36:38 +0000 (UTC)
commit f3e635a622b5e0c8d2e63eec66c4cacb5d2390b8
Author: Magdalen Berns <m berns thismagpie com>
Date: Sat Jul 4 14:35:12 2015 +0100
JNI: Create jaw_table_set_column_header
Bug https://bugzilla.gnome.org/show_bug.cgi?id=751938
jni/src/jawtable.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/jni/src/jawtable.c b/jni/src/jawtable.c
index 1e1fdd2..2fa0807 100644
--- a/jni/src/jawtable.c
+++ b/jni/src/jawtable.c
@@ -55,6 +55,7 @@ static void jaw_table_set_column_description(AtkTable *table,
gint column,
const gchar *description);
static void jaw_table_set_row_header(AtkTable *table, gint row, AtkObject *header);
+static void jaw_table_set_column_header(AtkTable *table, gint column, AtkObject *header);
typedef struct _TableData {
jobject atk_table;
@@ -89,6 +90,7 @@ jaw_table_interface_init (AtkTableIface *iface)
iface->set_row_description = jaw_table_set_row_description;
iface->set_column_description = jaw_table_set_column_description;
iface->set_row_header = jaw_table_set_row_header;
+ iface->set_column_header = jaw_table_set_column_header;
}
gpointer
@@ -590,3 +592,19 @@ jaw_table_set_row_header(AtkTable *table, gint row, AtkObject *header)
"(ILjavax/accessibility/AccessibleTable;)V");
(*env)->CallVoidMethod(env, atk_table, jmid, (jint)row, (jobject)header);
}
+
+static void
+jaw_table_set_column_header(AtkTable *table, gint column, AtkObject *header)
+{
+ JawObject *jaw_obj = JAW_OBJECT(table);
+ TableData *data = jaw_object_get_interface_data(jaw_obj, INTERFACE_TABLE);
+ jobject atk_table = data->atk_table;
+
+ JNIEnv *env = jaw_util_get_jni_env();
+ jclass classAtkTable = (*env)->FindClass(env, "org/GNOME/Accessibility/AtkTable");
+ jmethodID jmid = (*env)->GetMethodID(env,
+ classAtkTable,
+ "setColumnHeader",
+ "(ILjavax/accessibility/AccessibleTable;)V");
+ (*env)->CallVoidMethod(env, atk_table, jmid, (jint)column, (jobject)header);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]