Commit Graph

100 Commits

Author SHA1 Message Date
Sung-Taek Hong 1f03888c27 elc_file_selector_button: free allocated path name
Summary:
Currently path is strdup() when getting real path, but it is not freed
in some cases.

@fix

Reviewers: seoz, Hermet, woohyun, cedric

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D3194

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-19 11:55:30 -07:00
Vincent Torri 6cb5842268 Fileselector: Use eina_environment_home_get() instead of getenv("HOME") 2015-07-22 14:24:36 +01:00
Avi Levin 6ebe43e042 elc_fileselector, elc_fileselector_button: porting evas smart callbacks to eo 2015-07-05 13:05:38 +03:00
Thiep Ha c5014981be fileselector button: correct window parent finding
Summary:
Fileselector button fails to run in inwin mode.
It is caused by incorrect window parent finding.
This patch corrects the window parent finding.

@fix

Test Plan:
run FileSelector Button, toggle Inwin mode option to on,
eo gives error and nothing is shown.

Reviewers: Hermet, seoz

Reviewed By: seoz

Differential Revision: https://phab.enlightenment.org/D2552
2015-05-22 03:35:47 +09:00
Tom Hacohen 27b72840c8 Adjust usage of eo_constructor() according to recent changes. 2015-05-20 13:03:28 +01:00
Daniel Juyung Seo f5d144e421 elm: Use eo_isa() to check object types instead of manual string comparison. 2015-03-10 22:52:29 +09:00
Daniel Juyung Seo c9e3ab3363 elm: Clean up elm_win_resize_object_add caller.
- Do not need to call align_set for window resize object.
- Call weight_set before adding an object to a window's resize object.
2015-03-10 22:41:44 +09:00
Lukasz Stanislawski 2ca1f8a75a atspi: properly include at-spi headers.
Summary:
Change requested by TAsn. Previuosly AT-SPI headers were kept private
and included directly into elementary source code. From now on,
AT-SPI headers can be included from Elementary.h public header, however
will be marked as beta APIs.

Commit includes following changes:
* include all atspi headers into new elm_interfaces.h header.
* marking all at-spi interfaces methods/properties as @protected.
* wrap all common headers with EFL_BETA_API_SUPPORT.
* make some common APIs visible in lib, by adding EAPI attribute
  (if someone decides to use beta APIs).

Test Plan: out-off tree build with gcc, g++

Reviewers: tasn

Reviewed By: tasn

Subscribers: seoz, q66, kuuko

Maniphest Tasks: T1721

Differential Revision: https://phab.enlightenment.org/D1528
2014-10-17 16:57:26 +01:00
Tom Hacohen 7629c147eb Eo related: Change according to recent changes in eo_add().
For more info check out a7560dbc61 in
the EFL tree.
2014-09-25 17:39:34 +01:00
Daniel Kolesa c159cb2ebc update according to Eolian syntax changes 2014-08-21 09:27:32 +01:00
Zbigniew Kosinski 9ce23f0004 atspi:Set roles for widgets
Reviewers: stanluk, m.jagiello, raster

Differential Revision: https://phab.enlightenment.org/D930
2014-06-11 11:07:16 +09:00
Tom Hacohen efa41c7d75 Elm: Update code to use the new class names generated by eolian. 2014-06-03 11:54:44 +01:00
Daniel Zaoui 1303a6dbec Eolian: fix names for elc widgets.
Even if the file names are elc_..., the class names are supposed to be
elm_...
2014-04-22 16:39:35 +03:00
Tom Hacohen 978223b0a1 fileselector button: Adjusted to Eo2. 2014-04-10 09:34:59 +01:00
Ryuan Choi c8d412d07f fleselector_button: Implement some missing interfaces of Elm_Interface_Fileselector
Implemented below.
- Elm_Interface_Fileselector::selected_paths::get;
- Elm_Interface_Fileselector::thumbnail_size;
- Elm_Interface_Fileselector::selected;
- Elm_Interface_Fileselector::hidden_visible;
- Elm_Interface_Fileselector::sort_method;
- Elm_Interface_Fileselector::multi_select;
- Elm_Interface_Fileselector::mode;
2014-04-10 00:52:37 +09:00
Daniel Zaoui 4ef3173bd5 Eolian: Integration of File Selector Button 2014-03-31 13:48:25 +03:00
Daniel Zaoui 2c24e9899d Eolian: Integration of File Selector Interface 2014-03-31 13:48:25 +03:00
Daniel Zaoui e2206a1a22 Eolian: Integration of Elm Widget 2014-03-17 09:03:56 +02:00
Jaehwan Kim db23689614 access: Add smart signal "access,changed"
It occurs that access mode is changed.
Application can add this callback for each widget.
2014-02-08 14:05:14 +09:00
WooHyun Jung 0a1179dde4 elm_layout now supports focused/unfocused smart callback
by itself for widgets that inherit layout class.
If it uses elm_widget's, smart callback will be called at the
beginning or smart_on_focus function.
2014-02-06 16:18:57 +09:00
ChunEon Park dbacb2fef9 elementary - send signal "language,changed" with one way in the widget.
Call the smart callback in the widget infra so that each widget don't need to hook the smart_translate only for the smart call.

This makes reducing duplicated code and supporting language,chagned from all widgets.
2014-01-23 19:30:34 +09:00
ChunEon Park aebdcff513 elementary - use the focused/unfocused string in widget defined.
Now, it will share the strings so that reduce the binary size also user uses it in one way.
2014-01-23 17:27:17 +09:00
Daniel Juyung Seo 43533a2fb9 elm: Removed unnecessary null check for eina_stringshare_del. 2014-01-22 10:54:45 +09:00
Daniel Juyung Seo 471db42fe4 fileselector_button: Moved declarations of deprecated APIs to
elm_deprecated.h and marked them as EINA_DEPRECATED in c code.
2014-01-21 23:43:41 +09:00
Ryuan Choi 26dd1db99c Introduce fileselector interface and applied to elm_fileselector.
Summary:
fileselector_button and fileselector_entry should have almost same interfaces with fileselector.
Previously , we exposed them individually such as elm_fileselector_is_save_set().

Instead of adding the same APIs three times, we can reuse one fileselector's API using Eo interface.

This patch introduced fileselector interface and applied it to elm_fileselector.

Reviewers: seoz, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D475
2014-01-21 22:50:35 +09:00
Yakov Goldberg 3379c124df all widgets: change Eo API for "elm_widget_theme()" to "theme_apply"
There are elm_widget_theme/theme_set/theme_get functions.
    In Eolian these functions will be described as "theme" method and
    "theme" property. There is clash here.
    So add suffix "_apply" to Eo API for "elm_widget_theme".
2014-01-21 11:08:29 +02:00
Daniel Juyung Seo fd5c046dfe elm: Changed __UNUSED__ to EINA_UNUSED. 2014-01-06 23:33:57 +09:00
Daniel Juyung Seo 6d71a23c3a elm lib: removed all the unnecessary empty lines.
being pedantic.
2013-12-15 06:18:35 +09:00
Gustavo Sverzut Barbieri efc71d3ab2 remove unused var. 2013-11-12 17:56:45 -02:00
Gustavo Sverzut Barbieri 47a3fafd00 delete window and children when button is gone 2013-11-12 17:17:13 -02:00
Gustavo Sverzut Barbieri e6f2591b0c fix doc typo and breakage due widget_type case changes.
elm_widget_type_get() is not lowercase anymoe, rather "Elm_Win". As
other parts of the elementary source were using evas_object_type_get()
use it, and it still returns the legacy lowercase name.
2013-11-12 17:05:18 -02:00
Tom Hacohen 2f1e1554e5 Changed Eo class names to be consistent.
All the class names are now of the format: Elm_Type_Subtype_Extra
2013-11-07 11:44:22 +00:00
Daniel Juyung Seo 8ec25b69fb elm: Added missing undefs. 2013-10-19 02:20:34 +09:00
Daniel Juyung Seo c4478645f6 elc_fileselector_button.c: adopted ELM_WIDGET_DATA_GET_OR_RETURN macro. 2013-10-05 17:12:19 +09:00
Cedric Bail 29af5e1e43 elementary: update to new eo_parent_get/set API. 2013-09-25 13:34:27 +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 f1b685897d elm: do not declare SIG_FUCSED/SIG_UNFOCUSED if the const char is not used more than once.
ctxpopup, fileselector_button, naviframe, player, popup, bubble, button, calendar, check, clock, colorselector, datetime, diskselector, flipselector, gengrid.
2013-06-10 14:13:55 +09:00
Daniel Juyung Seo 7b71bd1973 ctxpopup, fileselector_button, naviframe, player, popup, bubble, button: added "focused" and "unfocused" documentations. 2013-06-09 18:54:43 +09: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
ChunEon Park d139c5bc11 elementary/fileselector_button - rename the internal func. 2013-04-23 21:39:21 +09:00
ChunEon Park fd772a71eb elementary/fileselector_button, fileselector_entry, spinner - support language,changed callback. 2013-04-23 21:00:50 +09: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 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
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
Gustavo Lima Chaves 0243d9bba2 [elm] File selector button now inheritable.
SVN revision: 74762
2012-08-01 21:04:26 +00:00
Gustavo Lima Chaves 584c53c1be [elm] New elm_widget_add() usage spread.
SVN revision: 74148
2012-07-18 21:03:39 +00:00