Commit Graph

332 Commits

Author SHA1 Message Date
Daniel Juyung Seo 33a5e33ddb object_item: Check null in elm_object_item_del.
As all EFL del/free APIs handle null as an exception,
   elm_object_item_del() should check null as well.
@fix
2014-03-03 18:19:20 +09:00
Amitesh Singh 069a3de27d list: implemented widget item focus feature.
@feature

Summary:

  #    Added "item,focused" and "item,unfocused" smart callbacks.
  # Added elm_object_focused_item_get() in elm_widget
  # Added elm_object_item_focus_set and elm_object_item_focus_get() APIs for
  # Added one argument in existing _focus_highlight_geometry_get(...,is_next)
  This is required to find out previous and current widget item.
  # Added a elm_win function _focus_highlight_start() which starts the focus

Test Plan: elementary_test->List Focus , List Horizontal Focus

Reviewers: seoz, woohyun

Reviewers Comments: SeoZ - there are some known bugs. we will actively
fix them in a near future.

CC: nirajkr

Differential Revision: https://phab.enlightenment.org/D532
2014-02-26 01:26:22 +09:00
nirajkr 2a8c2f1b53 focus: Added elm_object_focus_highlight_style_get/set() to support custom focus highlight on widget
Summary: This new API will allow widget to have its own focus highlight style

Reviewers: seoz

CC: woohyun, singh.amitesh

Differential Revision: https://phab.enlightenment.org/D501
2014-02-05 19:23:34 +09:00
Daniel Juyung Seo 5353aa863c elm: Removed unnecessary null check for free. 2014-01-22 11:13:11 +09:00
Daniel Juyung Seo 0c3c2572b9 elm: Removed unnecessary null check for ecore_event_handler_del. 2014-01-22 10:54:58 +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 fd5c046dfe elm: Changed __UNUSED__ to EINA_UNUSED. 2014-01-06 23:33:57 +09:00
ami afa4398ce2 [elm_object_item] - Added elm_object_item_style_set/elm_object_item_style_get().
Reviewers: seoz, raster

CC: aryarockstar, nirajkr, chinmaya061

Differential Revision: https://phab.enlightenment.org/D373
2013-12-27 20:00:04 +09:00
Daniel Juyung Seo 6d71a23c3a elm lib: removed all the unnecessary empty lines.
being pedantic.
2013-12-15 06:18:35 +09:00
Lukasz Stanislawski 4b81deaa8c accessibility: ATSPI2 support.
Summary:
Hello guys,

Below You can find a proof o concept for ATSPI2 support for elementary applications. Currently application can only be listed on bus by clients such as 'accersiser'. I am strongly looking for comments to this design.

Here are my comment regarding following code:
* This pach requires https://phab.enlightenment.org/D327 patch to compile
* I have decided to include whole atspi-constants header, because in fact i will need one-to-one copy of all its enums and defines. Qt has something like 3rdparty folder from which they include this header and don't require atspi dev packages at compilation time. Maybe efl needs the same solution or should just require next package in compilation? I agree that putting atspi-constant.h in main source tree is bad idea, but where? src/utils ??

Reviewers: cedric, raster, kimcinoo

Reviewed By: raster

CC: pkaczmarek-samsung, seoz, jaehwan, kimcinoo

Differential Revision: https://phab.enlightenment.org/D328
2013-12-03 17:07:05 +09:00
Daniel Juyung Seo ca210a2d66 elm_main.c: use a direct variable check instead of unnecessary additional function call like other lines of code. 2013-11-15 21:53:39 +09:00
Jean-Philippe Andre 1f5cd17110 Quicklaunch: don't increment init count twice
Ooops, don't increment elm_init count from quicklaunch init
when running normally.
2013-11-14 10:39:16 +09:00
Carsten Haitzler 9d4a9900cc option build deps that efl guarantees... now just are assumed and not ifdef'd 2013-11-12 22:56:05 +09:00
Jean-Philippe Andre 9ab6c58530 elm/quicklaunch: Improve executable path search
Always search executable based on CWD if possible.
This way, elementary_run behaves more like sh where all of
sh script, sh ./script and sh `pwd`/script will work.

Also, remove quicklaunch-specific ELM_MAIN.
This needs some doc, but compiling with -fpie and -pie is much
better.

Note: There's an API/ABI break here, BUT these APIs are marked
as not to be used outside macros. And there isn't any macro
using them :)
2013-11-04 16:49:02 +09:00
Jean-Philippe Andre 9bb1ef2708 elm/quicklaunch: Increment _elm_init_count in ql_init
Apps call elm_shutdown before exiting. But when using
Quiklaunch, elm_init has never been called, so the
init count is still 0.

This will be especially useful since programs compiled
with -fPIC and linked with -pie can be loaded by
Quicklaunch.
2013-11-04 15:46:15 +09:00
Daniel Juyung Seo 6397761c6a elm_test: Fixed formatting. tab to space.
Changed tab to space before working on the code.
Kinda surprised by the number of tabs we had.
2013-10-14 19:12:32 +09:00
ChunEon Park 5957b118de elementary - introduces 3 apis elm_object_item_track/untrack/track_get(). 2013-09-12 23:24:02 +09:00
ChunEon Park 9f34119498 elementary - revert ddc3cf80ce0a50a9161fcb212d3414f5d7b5898c
We have a plan to add more proper API.
2013-09-12 14:13:59 +09:00
José Roberto de Souza cf8eed415a Add ecore system hooks 2013-09-06 15:53:25 -03:00
ChunEon Park b67b72f710 elementary/widget - introduce elm_object_item_object_get().
We've countered application's requirements multiple times to they have the object handle from the elm_object_item.

Now we introduce it for their convenient but they should use it carefully.
2013-09-02 17:20:36 +09:00
Ryuan Choi 27f6087892 Prefer eina_stringshare_strlen for shared strings 2013-06-27 19:24:18 +09:00
Ryuan Choi 5ae1e19911 elm_main : Do not release strings which eina_prefix returns
The getter functions of eina_prefix just returns internal string.
So they should not be released in application side.
2013-06-15 13:02:25 +09:00
Shinwoo Kim 4ec80b4e9f Revert "[Access] Add new API to register a part on an object item as an access object."
This reverts commit 741243b645248223527ef834ed0dc10622a0ffd3.
2013-06-05 15:05:58 +09:00
Daniel Juyung Seo d0d4afd590 elm: refactoring. no printf in the library. use eina log instead. 2013-06-05 14:40:03 +09:00
Tae-Hwan Kim 9aaf2f5587 [Access] Add new API to register a part on an object item as an access object.
Author: bluezery
2013-06-04 19:34:18 +09:00
Daniel Juyung Seo f7449d9ea5 elm_main.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.

In this commit, I used ELM_SAFE_FREE even inside shutdown function.
2013-05-29 21:00:40 +09:00
Tom Hacohen de1c965029 Made clouseau_enable an elm_config option.
You can now just use elementary_config to enable and disable clouseau on
run-time.
2013-05-20 14:46:44 +01:00
Tom Hacohen 123596ee5b Added basic clouseau auto-start support.
If the ELM_CLOUSEAU env var is set to 1 elm auto-starts clouseau.
Next step would be integrating it into the elm config and making it
toggle-able on run-time.
2013-05-13 11:09:06 +01:00
Cedric BAIL e08c1fee5d main: use eina_log_timing. 2013-05-03 16:07:06 +09:00
Lucas De Marchi cb495f13de Rename edbus->eldbus 2013-04-23 13:05:43 -03:00
ChunEon Park c81bda1077 elementary/widget item - and add elm_object_item_domain_part_text_translatable_set(). 2013-04-23 17:11:28 +09:00
ChunEon Park e95af92756 elementary/widget - added elm_object_part_text_translatble_set() 2013-04-23 16:49:49 +09:00
WooHyun Jung 45388e4581 elementary/focus : Add four more focus direftions. ELM_FOCUS_UP, ELM_FOCUS_DOWN, ELM_FOCUS_RIGHT, and ELM_FOCUS_LEFT. These are for supporting elm_object_focus_next with four directions. And I added elm_object_focus_next_object_set(get). By setting focus next object manually, developer can set its own first candidate of focus next. Lastly I added elm_object_focused_object_get, for easy finding of current focused object in one object sub-tree. 2013-03-23 09:36:21 +09:00
Cedric BAIL d7be2e6f55 elementary: make quicklaunch work again. 2013-03-22 14:45:09 +09:00
Tom Hacohen 1343040dcf Quicklaunch: Fixed unused and dead code warnings. 2013-03-21 13:35:45 +00:00
Daniel Juyung Seo 1bfede5163 elm_main.c: fixed formatting. 2013-03-16 17:28:10 +09:00
ChunEon Park 30ce1cf732 elementary/widget - added elm_object_item_signal_callback_add(), elm_object_item_signal_callback_del() 2013-03-06 21:33:13 +09:00
ChunEon Park afa738e3e6 elementary/widget - added widget orientation mode infra and 2 apis elm_object_orientation_mode_disabled_set(0, elm_object_orientation_mode_disabled_get()
Orientation Mode is used for widgets to change it's styles or to send signals
whenever it's window degree is changed. If the orientation mode is enabled
and the widget has different looks and styles for the window degree(0, 90,
180, 270), it will apply a style that is readied for the current degree,
otherwise, it will send signals to it's own edje to change it's any states if
the style doesn't be readied.



SVN revision: 83880
2013-02-14 05:38:26 +00:00
ChunEon Park f45b4efac0 elementary/widget - for consistency, revised internal func names.
SVN revision: 83865
2013-02-13 11:02:36 +00:00
ChunEon Park 09dc0877a0 elemenatry - replace elm_object_domain_translatable_text_part_set()/text_part_get() with elm_object_domain_transltable_part_text_set(), part_text_get()
SVN revision: 83856
2013-02-12 11:43:39 +00:00
ChunEon Park 867084e7ba elementary - added elm_object_item_translatable_part_text_set() elm_object_item_translatable_part_text_get()
SVN revision: 83852
2013-02-12 10:38:33 +00:00
Daniel Juyung Seo a2b89b001a elm access: Fixed wrong return value handling.
1. elm_object_item_access_order_get should return a list.
2. the return type is const Eina_List *.

SVN revision: 83782
2013-02-08 15:16:09 +00:00
Shinwoo Kim 166f5ae570 [access] convey(relay) focus(highlight) to the object which is swallowed by Elm_Object_Item.
SVN revision: 83742
2013-02-07 13:01:34 +00:00
Shinwoo Kim fd66920430 [access] follow consistent naming rule in elementary as below.
- elm_access_object_item_register(); -> elm_object_item_access_register();
  - elm_access_content_cb_set(); -> elm_access_info_cb_set(); The content would be considered as an evas object.
  - elm_access_text_set(); -> elm_access_info_set();


SVN revision: 82791
2013-01-15 04:20:37 +00:00
Cedric BAIL 80c628daeb elementary: fix mistake with ebus linking.
SVN revision: 82596
2013-01-11 00:23:58 +00:00
Eduardo de Barros Lima 5bb50d9645 dlopen and friends are now required by elm_need_e_dbus(), remove HAVE_FORK conditional to include the header.
Build was broken with the following message:

elm_main.c: In function 'elm_need_e_dbus':
elm_main.c:372:4: warning: implicit declaration of function 'dlopen' [-Wimplicit-function-declaration]
elm_main.c:372:46: error: 'RTLD_LAZY' undeclared (first use in this function)
elm_main.c:372:46: note: each undeclared identifier is reported only once for each function it appears in
elm_main.c:372:58: error: 'RTLD_GLOBAL' undeclared (first use in this function)
elm_main.c:374:4: warning: implicit declaration of function 'dlsym' [-Wimplicit-function-declaration]
elm_main.c:374:14: warning: assignment makes pointer from integer without a cast [enabled by default]
elm_main.c: In function '_elm_unneed_e_dbus':
elm_main.c:387:18: warning: assignment makes pointer from integer without a cast [enabled by default]
elm_main.c:392:4: warning: implicit declaration of function 'dlclose' [-Wimplicit-function-declaration]

I wonder if this is correct for other platforms other than linux??



SVN revision: 82573
2013-01-10 14:27:38 +00:00
Cedric BAIL 951f944737 elementary: remove build dependencie from old e_dbus.
SVN revision: 82517
2013-01-10 07:50:14 +00:00
Daniel Juyung Seo 081f9f8006 elm: Restructuring codes to remove dead codes.
SVN revision: 82445
2013-01-09 09:02:22 +00:00
Murilo Belluzzo abcc99fcd1 [elm] Add support to D-Bus systray icons
For now, it supports only one system tray icon per application.

Each instance of ELM_OBJ_SYSTRAY_CLASS is a handler for
the same system tray item. But the API is ready to support
multiple system tray items per application.

Also, since this is a new feature, it only provides an EObject API. So,
if the old style API is still required, please do it.

Patch by: Murilo Belluzzo <murilo.belluzzo@profusion.mobi>



SVN revision: 81747
2012-12-27 13:38:40 +00:00
Flavio Vinicius Alvares Ceolin b470aaa0f2 adding support for elocation
SVN revision: 80657
2012-12-11 14:05:48 +00:00