I have a few needs that elm_cnp presently does not support. Both require modifications, new functions and other coding.
- Method to call to see if the paste buffer has content - Callback/Event that can be used when the clipboard buffer changes The first one I need for ecrire. I need to know when something is copied outside of ecrire. So i can activate/deactivate the copy/paste buttons. I do not need to access the paste buffer at all, elm_code handles all that. The way I presently do this, causes a bug in elm_code. The paste gets duplicated. There maybe a way to fix this. But really I am using the call in manner it was not intended. The code I am using also can be used to obtain the contents of the paste. Which I am not doing, I am just using it as the only available method to see if it has content. https://github.com/Obsidian-StudiosInc/ecrire/issues/11#issuecomment-337676064 The second one I need for clipboard module. This has been problematic for sometime. The previous version from TheWaiter/Štefan Uram used a timer that constantly ran and checked to see if there was content in the paste buffer. Which seems to be problematic. https://github.com/thewaiter/Clipboard/issues/15#issuecomment-340206877 I changed that when switching to elm_cnp. In place of a timer I have a hidden window and handlers. Which seems to work most of the time. Though some things like Terminology do not play well. I have to copy, click on desktop, and then its added to clipboard module paste history. But I have other copy/paste issues with terminology, unrelated. The old way with timer, ecore_x stuff, etc. https://github.com/thewaiter/Clipboard/blob/master/src/e_mod_main.c#L742 New way with hidden window, elm_cnp, no ecore_x for X or Wayland ideally https://github.com/Obsidian-StudiosInc/clipboard/blob/master/src/e_mod_main.c#L711 I think a listener and event is better than a hidden window hack. or the problematic timer. -- William L. Thomson Jr.
pgpEKr6Y0oGFq.pgp
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel