Mercurial > dwindows
comparison android/dw.cpp @ 2796:0c534743b7a9
Android: Allow passing a menu window handle to dw_window_destroy().
Internally if it is a menu, instead of following the Window/View code path,
instead pass the handle to menuDestroy().
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 15 Jul 2022 23:58:19 +0000 |
parents | 5c61aba17b69 |
children | b004cc75d574 |
comparison
equal
deleted
inserted
replaced
2795:5c61aba17b69 | 2796:0c534743b7a9 |
---|---|
5961 { | 5961 { |
5962 // First get the class that contains the method you need to call | 5962 // First get the class that contains the method you need to call |
5963 jclass clazz = _dw_find_class(env, DW_CLASS_NAME); | 5963 jclass clazz = _dw_find_class(env, DW_CLASS_NAME); |
5964 // Get the method that you want to call | 5964 // Get the method that you want to call |
5965 jmethodID windowDestroy = env->GetMethodID(clazz, "windowDestroy", | 5965 jmethodID windowDestroy = env->GetMethodID(clazz, "windowDestroy", |
5966 "(Landroid/view/View;)I"); | 5966 "(Ljava/lang/Object;)I"); |
5967 // Call the method on the object | 5967 // Call the method on the object |
5968 retval = env->CallIntMethod(_dw_obj, windowDestroy, handle); | 5968 retval = env->CallIntMethod(_dw_obj, windowDestroy, handle); |
5969 _dw_jni_check_exception(env); | 5969 _dw_jni_check_exception(env); |
5970 } | 5970 } |
5971 return retval; | 5971 return retval; |