diff options
| author | Po Lu | 2023-06-01 15:16:02 +0800 |
|---|---|---|
| committer | Po Lu | 2023-06-01 15:16:02 +0800 |
| commit | aed0a11147e29fc73405f1815fef91ecf6cca7fb (patch) | |
| tree | 35f335168eb4fe2c642a4c1a26109c71c3dacae6 /src/android.c | |
| parent | 9a958c59a2ce546e6ec99c58ca181dafeac8dd6b (diff) | |
| download | emacs-aed0a11147e29fc73405f1815fef91ecf6cca7fb.tar.gz emacs-aed0a11147e29fc73405f1815fef91ecf6cca7fb.zip | |
Update Android port
* java/org/gnu/emacs/EmacsInputConnection.java
(EmacsInputConnection, performContextMenuAction): New function.
* java/org/gnu/emacs/EmacsNative.java (EmacsNative)
(performContextMenuAction): New function.
* src/android.c (android_get_gc_values): Implement more
efficiently.
* src/androidterm.c (android_handle_ime_event): Pass through
`update' argument to `finish_composing_text'. Fix thinko.
* src/textconv.c (really_finish_composing_text)
(really_set_composing_text, really_set_composing_region)
(handle_pending_conversion_events_1, finish_composing_text): New
argument `update'. Notify IME of conversion region changes if
set.
* src/textconv.h: Update structs and prototypes.
Diffstat (limited to 'src/android.c')
| -rw-r--r-- | src/android.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/android.c b/src/android.c index 67590ae373d..94587344eb5 100644 --- a/src/android.c +++ b/src/android.c | |||
| @@ -3863,22 +3863,13 @@ android_get_gc_values (struct android_gc *gc, | |||
| 3863 | values->clip_y_origin = gc->clip_y_origin; | 3863 | values->clip_y_origin = gc->clip_y_origin; |
| 3864 | 3864 | ||
| 3865 | if (mask & ANDROID_GC_FILL_STYLE) | 3865 | if (mask & ANDROID_GC_FILL_STYLE) |
| 3866 | values->fill_style | 3866 | values->fill_style = gc->fill_style; |
| 3867 | = (*android_java_env)->GetIntField (android_java_env, | ||
| 3868 | gcontext, | ||
| 3869 | emacs_gc_fill_style); | ||
| 3870 | 3867 | ||
| 3871 | if (mask & ANDROID_GC_TILE_STIP_X_ORIGIN) | 3868 | if (mask & ANDROID_GC_TILE_STIP_X_ORIGIN) |
| 3872 | values->ts_x_origin | 3869 | values->ts_x_origin = gc->ts_x_origin; |
| 3873 | = (*android_java_env)->GetIntField (android_java_env, | ||
| 3874 | gcontext, | ||
| 3875 | emacs_gc_ts_origin_x); | ||
| 3876 | 3870 | ||
| 3877 | if (mask & ANDROID_GC_TILE_STIP_Y_ORIGIN) | 3871 | if (mask & ANDROID_GC_TILE_STIP_Y_ORIGIN) |
| 3878 | values->ts_y_origin | 3872 | values->ts_y_origin = gc->ts_y_origin; |
| 3879 | = (*android_java_env)->GetIntField (android_java_env, | ||
| 3880 | gcontext, | ||
| 3881 | emacs_gc_ts_origin_y); | ||
| 3882 | 3873 | ||
| 3883 | /* Fields involving handles are not used by Emacs, and thus not | 3874 | /* Fields involving handles are not used by Emacs, and thus not |
| 3884 | implemented */ | 3875 | implemented */ |