Commit Graph

203 Commits

Author SHA1 Message Date
Ryuan Choi 743042501b elc_fileselector: Do not send "selected" signal when anchor was clicked.
Because anchor on path_entry just changes current path,
we don't need to send "selected" signal
2013-09-11 20:40:55 +09:00
Ryuan Choi 119ebdcabe Fixed wrong indentation and missing break in 74f308df9 2013-09-11 17:07:10 +09:00
Ryuan Choi 87f58fb5c3 elc_fileselector : Select path which user typed on path_entry.
Summary:
In fileselector, user can write directory path or file path which they want.
If then, fileselector navigates path when directory path is given,
but just send a "selected" signal without real selection when file path or wrong path is given.

With this path,
- fileselector will navigate (if needed) and select file with signal when file path is given.
- no action when wrong path is given.
2013-09-10 19:11:43 +09:00
Daniel Juyung Seo 280987dd1d ctxpopup, fileselector, fileselector_button, fileselector_entry, actionslider: apply more signal macro. 2013-09-03 08:39:02 +09:00
ChunEon Park fe0f0a445e elementary/widgets - set parents before widget constructs their body.
This avoids unnecessary setups again when obj <-> sub has connected.
2013-08-27 00:29:45 +09:00
Daniel Juyung Seo d9637f96b7 elc_fileselector.c: fixed formatting. 2013-08-22 05:24:46 +09:00
Ryuan Choi 5cfb0d9b7c fileselector: Simple refactoring to fix possible leak.
This fixes "Resource leaks" which was spotted by coverity. CID 1054518
2013-08-06 20:08:16 +09:00
Yakov Goldberg 5ed1390c9f fileselector: unfocus if anchor clicked/entry activated
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
2013-08-06 11:17:40 +03:00
Yakov Goldberg a355c3f3f5 fileselector: fix show filename in anchor for some cases
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
2013-08-06 11:17:40 +03:00
Yakov Goldberg de24d2c5c0 fileselector: fix typo + behavior
- _anchors_do() receive fileselector object as first parameter,
    in _on_text_unfocused cb fileselector passed as 'data' and not as
    'obj';
 - when entry is unfocused, it can contain usual text or anchor-styled text,
   so the only secure way to pass path is to pass sd->path.
2013-08-06 11:17:40 +03:00
Yakov Goldberg b26418ae7d fileselector: added TODO note
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
2013-08-06 11:17:40 +03:00
ChunEon Park 99921e7f7e Revert "elementary/fileselector - added new api. elm_fileselector_entry_entry_get()"
This reverts commit c699ec2158d6ee56fc8cf07c3ded2b2688267f28.

Since "selected" smart callback returns the current entry text,
This is not necessary.
2013-07-29 11:42:23 +09:00
ChunEon Park 71358bdeb4 elementary/fileselector - added new api. elm_fileselector_entry_entry_get() 2013-07-29 01:31:49 +09:00
Daniel Juyung Seo 2e3fb71933 elc_fileselector.c: check null for part name and set the label for another part as well. 2013-07-23 06:11:30 +09:00
ChunEon Park 95ca372382 elementary/fileselector - support elm_object_part_text_set() to set the ok, cancel button label. 2013-07-23 01:51:27 +09:00
Ryuan Choi f12b32955a Revert "Remove redundant check routine what elm_entry_utf8_to_markup() returns."
This commit is invalid.
It just use strdup and strdup may return NULL when memory is not enough.

This reverts commit f579f7fd4b5e863f01a001876e536f5becc40811.
2013-07-18 10:26:27 +09:00
Ryuan Choi 51e684553b Cleanup _on_item_selected
Just return for the exception and avoid unnecessary allocation.
2013-07-18 02:56:50 +09:00
Ryuan Choi d6b87a1859 Remove redundant check routine what elm_entry_utf8_to_markup() returns.
elm_entry_utf8_to_markup() always returns allocated string.
So, we don't need to check what it returns.
2013-07-18 02:01:43 +09:00
Ryuan Choi 0ccfc31ee1 fileselector: Fixed regression of rELM3d2ae6d25ddc
https://phab.enlightenment.org/T198

After rELM3d2ae6d25ddc, buttons are destroyed when ok_cancel_set(true) is
called twice.
Spotted by uartie.
2013-06-29 07:27:23 +09:00
Ryuan Choi 27f6087892 Prefer eina_stringshare_strlen for shared strings 2013-06-27 19:24:18 +09:00
Ryuan Choi 989c343d16 fileselector : Fix Segfault in elementary file_selector_example when closed
https://phab.enlightenment.org/T133

list_itc and grid_itc are static variables, but they were managed by file_selector instance.
For example, they are allocated two times and first allocated classes are dangling
when two file selector are created.

This patch moves their init/deinit logic to constructor/destructor of file selector class.
2013-06-27 15:38:46 +09:00
Ryuan Choi fec9eab52c fileselector: Fix possible leak of _buttons_ok_cancel_set
When called _buttons_ok_cancel_set(true) two times,
buttons are created without release.
2013-06-25 06:08:18 +09:00
Ryuan Choi 2cfa0ce7db file selector:Add support mime type filter 2013-06-24 15:42:51 +09:00
Daniel Juyung Seo c7cfcc43f2 elc_fileselector.c: check null path before fileselector populate.
If no path was selected we don't need to populate fileselector.
This fixes https://phab.enlightenment.org/T132.
Thanks uartie for the report.
2013-06-12 15:03:49 +09:00
Stefan Schmidt 06c869eece elc_fileselector: Small formatting fix.
Spotted by devilhorns. Somehow I feel watched here. ;)
2013-06-11 08:48:20 +01:00
Stefan Schmidt 33eca6e2c0 elc_fileselector: Fix memory leak in _selected_set.
Using ecore_file_dir_get() like this will leak the returned string as we
have no way to control its free'ing. Better use a separate variable for it.
2013-06-10 15:47:54 +01:00
Cedric Bail c929b33052 elementary: properly sanitize headers order. 2013-05-03 16:07:06 +09:00
Daniel Zaoui 187d6bf8de Elementary: replace eo_data_get for objects data referencing. 2013-05-01 11:04:09 +03:00
Daniel Juyung Seo 74b3eed5fd elm: print the error message inside elm_widget_sub_object_add().
1. Do not need to print the same error message from all the widget codes.
2. Even though elm_widget_sub_object_add() can be used internally, there should be no error message at all.
   Elm devs should fix it beforehand.
   So it looks ok to print the error message in elm_widget_sub_object_add() to force elm devs to fix it.
3. Got additional code cleanups.
2013-04-03 11:28:53 +09:00
Tom Hacohen d75cb616da Change usage of eo_do_super to the new prototype. 2013-03-18 16:15:12 +00:00
Daniel Juyung Seo 78c042cdbe elm *.c: fixed formatting with EINA_LIST_FREE.
EINA_LIST_FREE (xxx) -> EINA_LIST_FREE(xxx)
2013-03-09 13:23:42 +09:00
Gustavo Lima Chaves 312d0217a0 An internal layout error, on a widget set, is a CRITICAL error. 2013-03-01 23:04:31 -03:00
Daniel Zaoui cdd1eea853 Replace supported_types
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 83803
2013-02-10 07:52:31 +00:00
ChunEon Park dacd0c80c1 elementary/fileselector - ++ unused
SVN revision: 82155
2013-01-04 07:38:26 +00:00
Flavio Vinicius Alvares Ceolin 06414efc47 [elm] file_selector: making the widget more desktop
friend

Allowing select dir/file in the entry box.



SVN revision: 82105
2013-01-03 20:48:14 +00:00
Daniel Zaoui 0c915e9023 Cleaning: removed include Eo.h in widgets because it was indirectly included by Elementary.h
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 79682
2012-11-26 09:29:01 +00:00
Yakov Goldberg 5c98343198 We have ported to Eo all the widgets of elementary. We didn't change the inheritance itself, only the mechanism, as done previously in Evas, Ecore and Edje. We removed totally the previous inheritance mechanism.
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 79668
2012-11-26 06:32:53 +00:00
Daniel Juyung Seo 30dba54610 elm: Fixed indentations for EINA_LIST/INLIST_FOREACH(_SAFE).
SVN revision: 77244
2012-10-01 07:36:27 +00:00
Gustavo Lima Chaves 7347460504 [elm] Remove duplicated code.
SVN revision: 75054
2012-08-09 14:46:58 +00:00
Gustavo Lima Chaves 12f50a523b [elm] File selector now inheritable.
SVN revision: 74756
2012-08-01 21:03:33 +00:00
Carsten Haitzler 84643ee0f2 fix fileselctor to not display > next to files... in expand mode.
SVN revision: 74386
2012-07-25 11:19:59 +00:00
Gustavo Lima Chaves 584c53c1be [elm] New elm_widget_add() usage spread.
SVN revision: 74148
2012-07-18 21:03:39 +00:00
Gustavo Lima Chaves dbd0cb20c9 [elm] Old cosmetical diff flush.
SVN revision: 73992
2012-07-17 14:56:23 +00:00
Michael BOUCHAUD b5e474ebb1 elementary: I think this needs some fixing. fileselector, select the wrong dir
SVN revision: 72834
2012-06-26 00:10:15 +00:00
Davide Andreoli 8babe97704 whops, this file wasnt mean to be committed
SVN revision: 71968
2012-06-11 23:35:05 +00:00
Davide Andreoli 5a1213ec8c evas only handle premul colors (note: not making any news or bp)
SVN revision: 71965
2012-06-11 23:25:43 +00:00
Davide Andreoli 5872d450d7 Fileselector: Add a wheel spinner that show/spin while EIO is working
SVN revision: 71178
2012-05-16 19:40:47 +00:00
Davide Andreoli 0c7ab74390 Simplify file listing when using EIO
SVN revision: 71129
2012-05-15 20:02:59 +00:00
Davide Andreoli be531ba2af * Fileselector: honor folder_only when using EIO
* Fileselector test: add a check to enable/disable buttons

 Updated Changelog and NEW, also add myself as authors...

 btw: the EIO code in the Fileselector is crazy-complex, about 200 
 lines of code just to have the list of files ina dir...  :/



SVN revision: 70965
2012-05-13 12:23:39 +00:00
Gustavo Lima Chaves 6a18b15a1b [elm] Fix booboos for people not having eio,
ewebkit or emotion.



SVN revision: 70749
2012-05-03 22:45:01 +00:00
Gustavo Lima Chaves 7abded1fb1 [Elm] File selector now a layout.
SVN revision: 70742
2012-05-03 22:44:26 +00:00
Carsten Haitzler c0f2f4be91 REVERT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
this breaks theme api. so NO! come back with a version that doesn't
break it.



SVN revision: 70679
2012-05-03 01:19:05 +00:00
Gustavo Lima Chaves e275948e76 [elm] Fix booboos for people not having eio, ewebkit or
emotion.



SVN revision: 70677
2012-05-02 21:14:28 +00:00
Gustavo Lima Chaves 57b848157f [Elm] File selector now a layout.
SVN revision: 70665
2012-05-02 17:01:48 +00:00
Carsten Haitzler 3a7b769a63 use the new escape text set to clear up issues if theme has TEXT vs
TEXTBLOCK items and handling escapes so text is consistend across elm.
fiuxes the fileselector issues kai reported.



SVN revision: 70362
2012-04-20 12:51:10 +00:00
Sanjeev BA 8cc2af2d7c Renaming ITEMS_SUBITEMS to ITEMS_TREE.
Signed-off-by: Sanjeev BA <eflelev8@gmail.com>

SVN revision: 68942
2012-03-07 12:57:13 +00:00
Carsten Haitzler 7a5a301a63 rename a whole host of config-related functions to be elm_config_*
now. yes - no deprecation. no time to do that.



SVN revision: 68810
2012-03-06 12:04:25 +00:00
ChunEon Park 2b3dad09a2 elementary/gengrid - removed elm_gengrid_item_sorted_insert
and rename elm_gengrid_item_direct_sorted_insert to elm_gengrid_item_sorted_insert



SVN revision: 68545
2012-02-29 10:30:51 +00:00
ChunEon Park c2a70894ad elementary/genlist - killed elm_genlist_item_sorted_insert.
renamed elm_genlist_item_direct_sorted_insert to elm_genlist_item_sorted_insert



SVN revision: 68496
2012-02-28 07:17:00 +00:00
Hyoyoung Chang 7ab200383d From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_gengrid - add item class management api
(1/3)

As like genlist item class management api, I added 4 apis to
elm_gengrid.

+EAPI Elm_Gengrid_Item_Class *elm_gengrid_item_class_new(void);
+EAPI void elm_gengrid_item_class_free(Elm_Gengrid_Item_Class *itc);
+EAPI void elm_gengrid_item_class_ref(Elm_Gengrid_Item_Class *itc);
+EAPI void elm_gengrid_item_class_unref(Elm_Gengrid_Item_Class *itc);

gengrid item class is maintained by gengrid in automatic manner.
it maintains its reference count. and item_class_free api marks
"delete_me".
Unless item_class_free, item class will not be freed.



SVN revision: 68308
2012-02-23 07:36:12 +00:00
Yakov Goldberg 54772a399d Elm fileselector: fixed elm_fileselector_is_save_get function
Return value was fixed

Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>

SVN revision: 68159
2012-02-20 12:53:12 +00:00
Yakov Goldberg 0b2bd861e8 Elm fileselector: Fixed initial paths for fileselector
Path parameter for elm_fileselector_selected_set() and
elm_fileselector_path_set() parsed as realpath.

Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>

SVN revision: 68149
2012-02-20 09:22:23 +00:00
Hyoyoung Chang 068985b187 From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_genlist - add item_class management
functions

I make controversial apis for item class management.
As raster and other guys suggest, I simplify APIs and its behaviors.

First, Two public apis and two internal apis are introduced

+EAPI Elm_Genlist_Item_Class *
+elm_genlist_item_class_new(void)

+EAPI void
+elm_genlist_item_class_free(Elm_Genlist_Item_Class *itc)

+void
+_elm_genlist_item_class_ref(Elm_Genlist_Item_Class *itc)

+void
+_elm_genlist_item_class_unref(Elm_Genlist_Item_Class *itc)

genlist item class is maintained by genlist in automatic manner.

And three fields are introduced in genlist item class.
+   int version;
+   unsigned int refcount;
+   Eina_Bool delete_me;

Normally a user add a elm_genlist_item_class by
elm_genlist_item_class_new().
Then its reference counter is automatic maintained.
If the user wanna to remove the elm_genlist_item_class, then call
elm_genlist_item_class_free()
After refcount reaches to 0, it will be removed.



SVN revision: 68147
2012-02-20 08:26:17 +00:00
ChunEon Park 57611ce2d7 elementary/fileselector - just renamed internal var.
SVN revision: 67628
2012-01-31 06:46:39 +00:00
ChunEon Park 7fd3d1fe88 elementary/fileselector - fixed a wrong change caused when gengrid API changes.
SVN revision: 67627
2012-01-31 05:13:59 +00:00
ChunEon Park b1f436569c elementary/gengrid - deprecated 3 APIs.
elm_gengrid_item_data_set -> elm_object_item_data_set
elm_gengrid_item_data_get -> elm_object_item_data_get
elm_gengrid_item_gengrid_get -> elm_object_item_widget_get



SVN revision: 67619
2012-01-31 01:22:16 +00:00
ChunEon Park 7c0738c762 elementary/gengrid - Elm_Gengrid_Item -> Elm_Object_Item
Be happy! now all widgets are using the Elm_Object_Item interface.



SVN revision: 67599
2012-01-30 10:29:51 +00:00
ChunEon Park d4ffe4c8c2 elementary/genlist - deprecated elm_genlist_item_data_set/get
but please use elm_object_item_data_set/get instead.


and what was purpose of this double casting? 

(int)(long) elm_genlist_item_data_get(gli);

these calls are used in some places. 

I removed the (long) casting because it looks useless.



SVN revision: 67546
2012-01-26 07:31:30 +00:00
ChunEon Park da7b8465a3 elementary/genlist - Elm_Genlist_Item -> Elm_Object_Item
SVN revision: 67370
2012-01-20 05:18:31 +00:00
Carsten Haitzler f6a3fc40e1 stop using deprecated calls.
SVN revision: 66681
2011-12-30 10:02:19 +00:00
Michael BOUCHAUD 5a627ce166 elementary: fix fileselector with dir selection
SVN revision: 66227
2011-12-14 20:53:44 +00:00
ChunEon Park 17baa1f76b elementary/fileselector
Hi,

On behalf of Rajeev Ranjan, I am submitting the elc_fileselector patch.

Change Log:
Fix for the memory leak in function elm_fileselector_selected_get. Memory allocated by ecore_file_dir_get() internally using strdup was not freed.
Introduced a char *dir variable to store the memory returned by ecore_file_dir_get() function and releasing the memory before returning to caller.

Please review it.
I'd appreciate any comments on this.

Thank you,
Prince

Signed-Off-By: Rajeev Ranjan (rajeev.r@samsung.com)
Signed-Off-By: Prince Kumar Dubey (prince.dubey@samsung.com)
Signed-Off-By: ChunEon Park (hermet@hermetpe.kr)



SVN revision: 65950
2011-12-06 08:18:14 +00:00
Daniel Juyung Seo 9266096bdf elm gengrid/genlist: Changed 'label_get' to 'text_get' according to the
recent elementary api corrections.

I changed item class's 'label_get' to 'text_get'. But 'label_get' is still
supported by union structure. So 'label_get' will just give you
deprecated warnings while compiling but it's recommended to fix your
apps to 'text_get'. Sometimes when you initialize item class using
braces, you will get 'missing braces around initializer' but ignore
this. That warning will be gone after I remove 'label_get' backport. I
will remove this 'label_get' backport after I finish below
jobs.

[TODO]
1. Fix all apps in trunk.
2. Change edc "labels" to "texts" as well. I haven't done this yet.


SVN revision: 65751
2011-12-01 06:15:08 +00:00
Daniel Juyung Seo c6b3a7b863 elm gen/gengrid/genlist: Applied gen deprecation and gengrid/genlist undeprecation.
SVN revision: 65716
2011-11-30 14:19:29 +00:00
Daniel Juyung Seo 6f1dd8c84d elm gen/gengrid/genlist: Undeprecate some gengrid/genlist APIs and
deprecate all elm_gen APIs.

We will merge gengrid into genlist later and remove elm_gen.
I updated http://trac.enlightenment.org/e/wiki/ElementaryChanges
I will fix other libraries/programs in trunk soon.


SVN revision: 65700
2011-11-30 00:59:19 +00:00
Boris Faure 1112d30a41 elm: change elm_object_content_part_set/get/unset to elm_object_part_content_set/get/unset
SVN revision: 65349
2011-11-17 21:02:31 +00:00
ChunEon Park 236192cd9a elementary - modified content_set/get/unset part names to be simple names.
Previous part names are just the swallow part names
but in modified version, the part names chaned to simpler meaning names to use.

i.e for button

elm_object_content_part_set(button, "elm.swallow.icon", icon);
-> elm_object_content_part_set(button, "icon", icon);




SVN revision: 65295
2011-11-16 12:51:53 +00:00
ChunEon Park 8d85b136bf elementary/button -> use elm_object_content_set/get/unset
SVN revision: 64370
2011-10-25 01:23:25 +00:00
Daniel Juyung Seo 2bb2b1f0ee elm gen/gengrid/genlist: Changed item class's icon_get to content_get.
Do not limit the swallowed objects to icon. This had to be done before
elm 1.0 and now it's time to break. This will break all applications
which are using gengrid/genlist. Please fix it icon_get -> content_get.

TODO
1. fix theme as well.
2. fix documents.


SVN revision: 64344
2011-10-24 02:10:35 +00:00
Mike Blumenkrantz 82cfec36d5 deprecate elm_genlist_clear and elm_gengrid_clear: use elm_gen_clear instead
SVN revision: 64276
2011-10-21 23:05:02 +00:00
Mike Blumenkrantz 6026896d03 remove mode_item_style from item class, use genlist_mode_item_style_set() instead
SVN revision: 64228
2011-10-21 03:31:26 +00:00
Mike Blumenkrantz 29f5f480b8 quiet some warnings
SVN revision: 64225
2011-10-21 02:53:13 +00:00
Iván Briano 057a00829c Get us some nice auto translation scheme
First things first, I'm not sure I'm setting the right variable on
the setlocale() call, so someone more knowledgeable can look at it and fix it.

How this works, you say? Just like elm_object_text_part_set(), except now it
will pass the string given through dgettext() with the given domain (NULL
means it uses whatever the app set with textdomain()), and when changing
language with elm_language_set(), it will re-set the strings with a new
translation.



SVN revision: 64179
2011-10-19 14:17:14 +00:00
Cedric BAIL ba60ba6ebe elementary: fix ordering bug in fileselector.
SVN revision: 63216
2011-09-05 20:30:12 +00:00
Carsten Haitzler 5eeb449427 fix get of filesel is save
SVN revision: 61882
2011-07-29 06:47:33 +00:00
Cedric BAIL 1cd4c15305 elementary: oops, thanks Rafael Antognolli.
SVN revision: 61873
2011-07-28 22:14:32 +00:00
Cedric BAIL 3c51a8547f elementary: fix fileselector expandable mode with eio.
SVN revision: 61864
2011-07-28 16:44:10 +00:00
Carsten Haitzler f1b6434fc2 remove printf
SVN revision: 61849
2011-07-28 10:31:12 +00:00
Carsten Haitzler ddced6c6e9 fix file selector get is _save. never worked!
SVN revision: 61848
2011-07-28 10:28:55 +00:00
Gustavo Lima Chaves d1454b4742 [elementary] Documenting/exemplifying file selector
widget.



SVN revision: 61401
2011-07-15 14:02:54 +00:00
Mike McCormack 252c052ea7 elementary: elementary_config.h is a local include
Using #include <elementary_config.h> will fail if
elementary has never been installed.

Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>

SVN revision: 61220
2011-07-11 01:22:19 +00:00
Vincent Torri 3fcd1757ea fix win32 compilation
SVN revision: 61215
2011-07-10 21:35:33 +00:00
David Walter Seikel b2171db9e9 Make it compile under linux again.
If it's still broken under Windows, caro can fix it after the spanking.


SVN revision: 61214
2011-07-10 15:08:12 +00:00
Vincent Torri 2e1a80fd31 fix compilation on Windows
SVN revision: 61192
2011-07-10 08:55:46 +00:00
Tom Hacohen 2d498587d4 Elm: Fix a couple more deprecation warnings and use elm_object_text_set/get.
SVN revision: 60809
2011-06-29 09:31:01 +00:00
Cedric BAIL 72db171f44 elementary: remove warning and work around insane ecore_thread_check bug.
SVN revision: 60725
2011-06-27 10:26:06 +00:00
Hyoyoung Chang 133cc990c3 From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elementary - elc_fileselector
Date: Sun, 26 Jun 2011 11:55:55 +0900

Dear elementary developers

When I compiled svn elementary, it seems a define(HAVE_EIO) is omitted.
I sending a patch, check about it please.

Thanks.


SVN revision: 60697
2011-06-26 04:56:47 +00:00
Cedric BAIL 452e2d379f elementary: use Eio when available for fileselector.
SVN revision: 60692
2011-06-25 23:39:43 +00:00
Cedric BAIL 303f6f594e elementary: use Eina_File.
SVN revision: 60685
2011-06-25 15:35:53 +00:00
Carsten Haitzler c44f45485f big move forward. scrolled entry and entry merge into entry. entry now
can be scrollable or not. scrolled entry now just calls entry calls
and is marked as dperecated to be killed off in the future so no need
to document it etc. edje external also goes.



SVN revision: 60438
2011-06-17 09:44:31 +00:00