Commit Graph

100 Commits

Author SHA1 Message Date
Daniel Zaoui ac01929f37 Elementary: Drag & Drop feature for items containers
New APIs have been added to facilitate DnD for genlist, gengrid and list
widgets.
Tests have been added in the new section DnD to play with that.
2013-05-09 13:57:31 +03:00
Carsten Haitzler 4d3220bd4c elm cnp bugs waiting to happen - not 0 terminating cnp strings in some
cases.
2013-05-08 12:50:09 +09:00
Carsten Haitzler 3bd16c052b fix elm_cnp free to null out ptr. 2013-03-17 11:41:41 +09:00
Carsten Haitzler c8ac271b79 only del cnp drop if removed from list. 2013-03-09 23:05:32 +09:00
Carsten Haitzler c2082c1973 fix 64bit complaint for elm cnp (harmless other than warning noise). 2013-02-24 12:11:24 +09:00
Carsten Haitzler 10bc37e9ca better check for awarenes setting.
SVN revision: 84300
2013-02-22 09:24:49 +00:00
Carsten Haitzler 1c66b0cf99 quick fix > 1 win for dnd! :)
SVN revision: 84299
2013-02-22 09:21:21 +00:00
Carsten Haitzler 30cc0a85c8 allow dealing with dnd actions and status at src.
SVN revision: 84296
2013-02-22 08:49:08 +00:00
Carsten Haitzler 3091ccc3f6 flesh out a lot more of dnd support in elm and add apis to set up dnd
targets for objects as well as initiate a dnd.



SVN revision: 84282
2013-02-21 13:21:08 +00:00
Carsten Haitzler 21338a73a3 more work on fixing cnp... still more to go. debug on.
SVN revision: 84260
2013-02-20 09:41:06 +00:00
Carsten Haitzler 3faccb1149 much better.. dnd actually works now.. doesnmt get stuck etc... need
to GRAB mouse etc... still not all there yet. cant dnd within ones own
window yet. that's NEXT



SVN revision: 84235
2013-02-19 12:10:02 +00:00
Carsten Haitzler b266a4c86c some cleanups missing from previous commit.
SVN revision: 84106
2013-02-19 10:48:37 +00:00
Carsten Haitzler eca7d3d879 this is messing woith internal apis in elm - but drop target delc was
wrong, and internally it didnt handle mime types properly. no one
really used/tested this much... because it wasnt available for use
really :). so fix up.



SVN revision: 84103
2013-02-19 10:14:35 +00:00
ChunEon Park 1ed0b739b1 elementary/cnp - do initialize memory to not fill dummy values.
SVN revision: 82849
2013-01-16 03:34:18 +00:00
Cedric BAIL e7ca3a31d0 elementary: correctly check error in elm_cnp.
SVN revision: 80576
2012-12-10 08:01:16 +00:00
Cedric BAIL 8c3981293b elementary: safer call to mkstemp.
SVN revision: 80409
2012-12-07 04:03:01 +00:00
Sebastian Dransfeld 870c91ca10 elementary: Add COMPOUND_TEXT handler
Needed for vim cnp

SVN revision: 77486
2012-10-04 23:19:05 +00:00
Sebastian Dransfeld 9444642ee7 elementary: Don't allocate unneeded data
SVN revision: 77475
2012-10-04 23:17:28 +00:00
Christopher Michael 5f73bd4b63 Elm: Fix Escape namespace to compile on Windows.
SVN revision: 76226
2012-09-06 07:43:10 +00:00
Christopher Michael 31575a5083 Elementary: Fix up copy/paste code to work properly with both X11 and
Wayland windows.

Remove x11, wayland, and local bits from cnp init.
Fix up elm_cnp_init to not need an object anymore.
Add missing function prototypes for the wl functions.
Add an init counter for the wl cnp init function so we don't end up
with multiple event handlers.



SVN revision: 75816
2012-08-29 07:29:21 +00:00
Christopher Michael f1d483ca36 Elementary: Fix selection_has_owner function. Check for valid wl
window. Thanks raster ;)



SVN revision: 75813
2012-08-29 07:15:32 +00:00
Christopher Michael 6ea2e696ff Elementary: Copy-Paste support for Wayland Engines.
NB: Based on patch from Alex <zhiwen.wu@intel.com>, but cleaned up for
compiler warnings.



SVN revision: 75810
2012-08-29 06:52:48 +00:00
Carsten Haitzler 0f4a856a7e fix cnp to only init x11 cnp if window was detected to be x11 elm win
too. :) oops.



SVN revision: 75759
2012-08-28 07:49:27 +00:00
Carsten Haitzler 782444ca1a clean up x11 impl a bit more and now add a fairly minimal "local" cnp
impl that manages copy & paste within a single process... this is an
example of how to implement cnp for another system and as well covers
fb cnp.. so terminology in fb has cnp work now :)



SVN revision: 75533
2012-08-22 09:37:00 +00:00
Carsten Haitzler 2e83d89fc8 core fixup of elm cnp to be able to work regardless ofr display
backend and isolate x11 specific stuff in its own fat ifdef and
functions/vars.



SVN revision: 75523
2012-08-22 08:33:43 +00:00
Carsten Haitzler b682a7dbcb alas por yorrick... umm errr... alas por html mode copy & paste, we
knew him well. disable because it seems nothing i try requests it
except thunderbird, and thunderbird seems to sumarrily ignore the text
we provide. why - don't know. would have to now dig into thunderbir
src, but suffice to say plaintext is working a charmer, so let's stick
to that.



SVN revision: 73913
2012-07-16 09:16:30 +00:00
Christopher Michael e7aff2633f Elm: Commit roberts patch which fixes the unsafe call to
ecore_evas_window_get with a replacement function that checks the
currently used engine first. This fixes a segfault when running elm
with the wayland engines.



SVN revision: 73568
2012-07-11 11:53:29 +00:00
Michael BOUCHAUD 9a280627db elementary: fix vcard cnp, patch from Guillaume PROUVOT. thx!
SVN revision: 73561
2012-07-11 10:08:46 +00:00
Carsten Haitzler af564b3dc7 improve cnp to tell you when you lost a selection and track obj
deletions.



SVN revision: 72798
2012-06-25 11:16:25 +00:00
Gustavo Sverzut Barbieri 866c5b7a98 CNP is completely broken -- note where it should be fixed.
come on... I'd rather remove this crap than keep it like that. :-(



SVN revision: 72507
2012-06-19 23:33:57 +00:00
Gustavo Sverzut Barbieri dafcd43f50 EAPI elm_drag and elm_drop so I can use them from terminology.
SVN revision: 72505
2012-06-19 20:17:46 +00:00
Gustavo Lima Chaves bbf0a4345e [elm] And now remove deprecated calls usage (WRT
icon/image thing).



SVN revision: 71473
2012-05-28 21:50:11 +00:00
Michal Pakula vel Rutka 39d0d27e53 From: Michal Pakula vel Rutka <m.pakula@samsung.com>
Subject: [E-devel] [patch] allow copy and paste operations for
non-widget evas objects

I am currently implementing a clipboard for WebKit-EFL. When using
elm_cnp_selection_get and set function an evas object passed has to be
a widget. Currently in WebKit-EFL we are using an view which is an
Evas_Object, but not a widget. Sample WebKit applications like
EWebLauncher and tests applications does not use elementary so I
cannot obtain parent widget for a view object and finally we cannot
perform copy and paste operations.
Widgets are used in elm_cnp_selection functions to obtain
Ecore_X_Window. My patch leaves current way of obtaining it and adds
an another in case when the standard one fails. When Evas_Object is
not a widget I am trying to get an Ecore_X_Window using ecore.



SVN revision: 71381
2012-05-24 04:34:53 +00:00
Hyoyoung Chang f4481a9fad elementary/cnp: add selection type checking at _get_selection_type and clean up indent
SVN revision: 71339
2012-05-23 02:15:56 +00:00
Hyoyoung Chang fc61e67329 elementary/cnp: typo error fix
SVN revision: 71338
2012-05-23 01:05:22 +00:00
Hyoyoung Chang e248599286 elementary/cnp: don't calc sizeof char at buffer malloc
SVN revision: 71337
2012-05-23 00:53:07 +00:00
Hyoyoung Chang 7c6499a975 elementary/cnp: free string after use at notify_handler_html
SVN revision: 71336
2012-05-23 00:51:11 +00:00
Hyoyoung Chang 101093c028 elementary/cnp: add failed malloc checking routines
SVN revision: 71293
2012-05-22 04:42:45 +00:00
ChunEon Park 255900a10f elementary/cnp - + null check
SVN revision: 71292
2012-05-22 04:30:24 +00:00
Michal Pakula vel Rutka 46b0eb6003 elementary/cnp: add null terminating at handling html type
Signed-off-by: Michal Pakula vel Rutka <m.pakula@samsung.com>


SVN revision: 71291
2012-05-22 01:35:12 +00:00
Hyoyoung Chang 7216eade28 elementary/cnp: fix minor indentation
SVN revision: 70889
2012-05-09 08:43:45 +00:00
Carsten Haitzler b6c827e27a remove +1 misleading extra byte
SVN revision: 70167
2012-04-13 10:19:45 +00:00
Carsten Haitzler db1d6cedeb handle malloc failure and free string if sel->datacb is not null
SVN revision: 69965
2012-04-09 08:06:33 +00:00
ChunEon Park 4a0a6b6362 elementary/cnp - [E-devel] [Patch] elm_cnp notify_handler patch
When pasting data to entry, notify_handler_text sent incorrect string. 

Because notify_handler_text received string including garbage value.

I cut string as its data length.

Signed-By-Off: Minseok Kim <minseok3.kim@samsung.com>



SVN revision: 69942
2012-04-06 05:58:50 +00:00
Daniel Juyung Seo 8c17d99712 elm: Fixed formatting. Added a space after 'if/while/for'
SVN revision: 69744
2012-03-29 11:09:45 +00:00
Hyoyoung Chang d7bc38e0d5 From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_cnp - revise apis
Date: Tue, 28 Feb 2012 15:11:12 +0900

Dear all.

I made a small patch about revise cnp apis.
It changed argument orders of apis to consistence and make elm widget centric.
now all cnp api's first argument is a elm widget.
It breaks api compatibility. so elementarychanges is needed to update.

thanks.


SVN revision: 68491
2012-02-28 06:17:22 +00:00
Carsten Haitzler 57d5595d97 warn--
SVN revision: 68431
2012-02-25 05:12:57 +00:00
Sanjeev BA bde5e891e6 Fix a few more review comments for cnp.
Signed-off-by: Sanjeev BA <eflelev8@gmail.com>

SVN revision: 68292
2012-02-23 02:52:11 +00:00
Sanjeev BA c4c2e2bdea Remove MAX, it is not useful for app. developers.
Signed-off-by: Sanjeev BA <eflelev8@gmail.com>

SVN revision: 68291
2012-02-23 02:52:07 +00:00
Daniel Juyung Seo d670c44ee0 elm cnp: Renamed elm_cnp_helper.c to elm_cnp.c for consistency.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68008
2012-02-16 07:10:50 +00:00