Hi All,
   Currently in elm_entry context menu code, whenever we append menu items to
   entry they are statically appended,
   and we can see those items only after menu is re-created.
   Assume this use case, application appends items to menu in "longpressed"
   callback, say based on text content(cursor
   located on what text), In this kind of use case, the menu items will not be
   seen (as menu is created and shown already) and
   menu items will be seen only on second longpress but the second longpress
   can be anywhere and if decision of appending items in to menu is dynamically
   decided based on text content then we can never really show the desired menu
   items.

   (Specific usecase: Say we are appending translation or synonym of the word
   on which long press was done in to context menu)

   our fix was to send "longpressed" signal before creating context menu so
   that application can append menu items based on word on which longpress is
   done.

   As the above solution is too specific to longpress scenario, Tom suggested
   to send a signal just before creating menu and append the items in its
   callback, this method works well )


   but can we handle this in a better way? looking for suggestions. One way
   might be to directly append items to menu when menu item add is called
   instead of just storing it and keeping it and using it

   on next menu create.
   Best Regards,
   Shilpa Singh

   [cid:[email protected]]

   [SeenTimeChecker?do=502122e85cbba61abf37f499cbab7d53fb80820eafb9cad8733afbaf
   10963357ba777c355c197185c465c2cf80a2b7ef9aba4bb3b2b5ca43ddd7e184e0604d958075
   b6b33f32d245b7f8aafe245478a5f1d21d5ebee74427cf878f9a26ce15a0]
------------------------------------------------------------------------------
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to