Commit Graph

9363 Commits

Author SHA1 Message Date
Ryuan Choi 4855fa3f71 fileselector: Do not call _populate directly in APIs
Summary:
User application may call some fileselector APIs to configure fileselector instance.
And some of them may call _populate but only last request is needed.
However, T1663 raises that last request might be rejected with expansion option and
multiple requests of _populate.
It's because expansion mode do not allow next _populate until previous one is finished.

So, this patch fixes it via scheduling _populate instead of calling _populate() directly in APIs.

@fix

Maniphest Tasks: T1663
2014-10-29 12:57:31 +09:00
Adrien Nader d5952c875a doc: add API docs in elm_interface_scrollable.
This adds
- gravity_set
- gravity_get
- bounce_allow_set
- bounce_allow_get
- movement_block_set
- movement_block_get
- policy_get
- policy_set
- content_region_get
- content_region_set
- page_size_set
- page_size_get
- page_snap_allow_set
- page_snap_allow_get
- single_direction_get
- single_direction_set
- last_page_get
- current_page_get
- content_size_get

- scroll_up_cb
- hbar_drag_cb
- drag_start_cb
- scroll_left_cb
- vbar_press_cb
- hbar_press_cb
- hbar_unpress_cb
- drag_stop_cb
- page_change_cb
- animate_start_cb
- scroll_down_cb
- scroll_cb
- animate_stop_cb
- scroll_right_cb
- edge_left_cb
- vbar_drag_cb
- vbar_unpress_cb
- edge_bottom_cb
- edge_top_cb

- page_show
- region_bring_in
- page_bring_in
- content_region_show
- content_min_limit
2014-10-20 18:42:21 +02:00
Adrien Nader b5d0f91a9b doc: add API docs in button, container, image, store, general.
This adds API docs for:

- elm_button_admits_autorepeat_get

- elm_container_content_swallow_list_get
-               content_get
-               content_set
-               content_unset

- elm_image_resize_down_set
-           resize_down_get
-           resize_up_set
-           resize_up_get
-           scale_set
-           scale_get
-           fill_inside_set
-           fill_inside_get
-           sizing_eval

Light documentation for enum Elm_Object_Select_Mode, enum
Elm_Object_Multi_Select_Mode and Elm_Store_Item_Mapping_Type.
2014-10-20 18:42:21 +02:00
Adrien Nader bfd57b3d84 doc: fix mismatched variable names between prototypes and doxygen comments.
Several APIs are marked as not documented simply because the doxygen
documentation mentions a parameter named "foo" while the spelling in the
prototype is something like "fooh". An example correction is
  - * @param fsize Finger size
  + * @param sz Finger size

Nothing very complicated and there are also a couple typo fixes I noticed
while going over the files.
2014-10-20 18:42:21 +02:00
Tom Hacohen b12c544d21 Elm cnp: Fix infinite loop on drop target deletions in some cases.
In some cases, like having a drop target inside an inwin (looks like it
can be other containers too) can cause an infinite loop (as described in
the report). The reason for that is that while the drop target was added
when there was an X window available, the X window ws now gone, so the
non X path was being called which didn't have the code to remove the
item from the list being iterated. Yes, definition of spaghetti and
false assumptions.
Elm dnd/cnp need a massive overhaul, they are disgusting.

See the ticket for more information on the issue.

Fixes T1702
2014-10-20 17:24:07 +01:00
Jean-Philippe Andre 78f6a0048c GLView: Add legacy bindings for the new functions
rotation_get and evas_gl_get should have legacy bindings as well
2014-10-20 12:16:43 +09:00
Jean-Philippe Andre cdb6490b70 GLView: Add constructor for GLES 1.1 context glview
This also adds the legacy bindings

@feature
2014-10-20 12:16:43 +09:00
Jean-Philippe Andre 5b60f2f7ac GLView: cosmetic changes 2014-10-20 12:16:43 +09:00
Jean-Philippe Andre 37cb18740c GLView: Add support for client-side rotation
See recent changes in Evas GL for reference.

This also introduces the EO function rotation_get()

@feature
2014-10-20 12:16:43 +09:00
Jean-Philippe Andre d0241ad4c9 GLView: Add more configuration flags for the surface
This adds precise DEPTH, STENCIL and MSAA configurations.

@feature
2014-10-20 12:16:43 +09:00
Jean-Philippe Andre 5bcc39398f GLView: Clean up the native surface during deletion 2014-10-20 12:16:42 +09:00
Jean-Philippe Andre 706d2a28aa GLView: Add API to get the Evas_GL
Before screaming "don't expose this", here's the reasoning:
There will be a few new APIs in evas-gl (support pbuffer, ...)
that require a pointer to the Evas_GL to be called. So, instead
of exposing each and every one of these evas gl functions in
a dummy wrapper in elm_glview, we just give access to the real
pointer.
GLView will always be a wrapper around evas_gl, because that's
what it is by definition.
2014-10-20 12:16:41 +09:00
Amitesh Singh 797e75bb4f widget: fix seg fault when ts is NULL.
Summary:
if translatable is FALSE and _translate_string_data_get returns NULL, ts
would be NULL which results into crash.

@fix

Reviewers: seoz, raster, Hermet

Reviewed By: Hermet

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1543
2014-10-19 14:56:15 +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
Jihoon Kim ada335eedf entry: Describe input panel numberonly variations 2014-10-17 21:45:02 +09:00
Jihoon Kim fc06420d21 entry: Add input panel normal and password variations 2014-10-17 21:44:11 +09:00
ChunEon Park 37c850bba7 mapbuf: updated doc.
it's been under stablization for a long time and only "movement" is proved in performance improvement.
2014-10-17 19:42:43 +09:00
o.shcherbina 92f5ba1bfb win: fix segfaults (wrong checking)
Summary:
There were wrong checkings in elm_win_size_base_get and
elm_win_size_step_get
@fix

Reviewers: seoz, Hermet

Differential Revision: https://phab.enlightenment.org/D1533
2014-10-14 01:07:36 +09:00
woochanlee 2f7460acfb bg: fix the _elm_bg_elm_layout_sizing_eval bug.
Summary:
Since the sd->image is swallowed to the edje object, it's position and size will be managed by edje smart object.
in the bg side, it doesn't need to care the position and size of the image.

@fix

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1525
2014-10-11 00:19:27 +09:00
Hosang Kim f5508d8624 elm_interface_scrollable: fix last page get api
Summary: First page's number is 0. So I changed '+' to '-'.

Reviewers: seoz, jaehwan, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D1530
2014-10-10 14:36:52 +09:00
Mike Blumenkrantz 8391f8a860 elm_image no longer crashes when deleting the image from a download callback 2014-10-09 16:52:17 -04:00
Tom Hacohen 8a1c279e16 Elm win: Rename duplicate eo property wm_manual_rotation_done.
This has to be renamed otherwise it clashes for bindings.
2014-10-09 12:28:34 +01:00
Tom Hacohen ecc8aaab62 Elm scrollable: Include the scrollable interface in the main header. 2014-10-09 12:14:54 +01:00
zmike 2bcbe743d1 genlist item block recalc checks now more readable 2014-10-07 14:07:13 -04:00
zmike dbc3b87b18 genlist item block recalc checks make more sense 2014-10-07 14:07:13 -04:00
Daniel Zaoui 718b4900fb List: fix annoying Valgrind unitialized value. 2014-10-06 11:30:58 +03:00
ChunEon Park afeafc1774 panel: remove warning. 2014-10-06 14:30:19 +09:00
ChunEon Park 42b17337cb panel: add elm_panel_scrollable_get() 2014-10-06 12:11:05 +09:00
Ryuan Choi 9ddd97c7ff Introduce current_name_{set|get}
Summary:
When fileselector is opened, it would be nice to be able to provide initial filename.
Like "Untitled Document" in Gedit, when save for the first time.

More details in Gedit,
Gedit provies default name, "Untitled Document" and does not change default name
while navigating directories.
Once we selected any file, Gedit changes value of name entry to selected filename and
it is not also changed while navigating directories.

@feature

Reviewers: seoz, yakov-g

Reviewed By: yakov-g

Subscribers: seoz

Maniphest Tasks: T1664

Differential Revision: https://phab.enlightenment.org/D1504
2014-10-06 08:08:24 +09:00
Tom Hacohen 236bab8d53 Change according to recent Eo changes, and fix related wrong unrefs.
eo_add()'s counterpart is eo_del, not eo_unref. Regardless of that, some
objects were being double-deleted which spew out some eo errors. These
things should now be fixed.

bc6b6aa457 is the relevant EFL commit.
2014-09-30 14:54:52 +01:00
Jaehyun Cho 045ad420cd elm_menu: Add item_signal_emit_hook for elm_menu
Summary: Add item_signal_emit_hook for elm_menu

Reviewers: Hermet

Reviewed By: Hermet

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1500
2014-09-30 10:59:43 +09:00
Jaehwan Kim d62ba7548e scale: change the floating number comparison method. 2014-09-29 19:07:00 +09:00
ChunEon Park 67a90cdc3b elm_object_item: add a convenient macro api.
elm_object_item_translatable_set().
2014-09-29 19:00:09 +09:00
Daniel Juyung Seo ff6d8998ca authors: Updated authors list. 2014-09-28 23:57:01 +09:00
Srivardhan Hebbar c6ddc20220 elementary: Adding example to demonstrate radio "changed" functionality.
Summary:
Added this example which demonstrate the exact behavior or "changed" in radio button.
After changing the documentation of "changed" as in https://phab.enlightenment.org/D1445, thought the example might be useful, so added this.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: devilhorns, stefan_schmidt, seoz

Differential Revision: https://phab.enlightenment.org/D1490
2014-09-28 23:50:16 +09:00
Tom Hacohen 0ee7f4951b Elm win: fix wrong deletion of elm windows.
This is a fix upon 6e7686c030fab162edb3128de005ec00ea8c0ffc.
This correctly deletes the list even if the windows are still referenced
and even if they are deleted from under out feets.
2014-09-26 10:10:51 +01:00
Jaehwan Kim 75ef6e0929 scale: fix the floating number comparison.
There's no meaning 0.00001 in scale. So in that case, it is ignored.
2014-09-26 12:07:34 +09:00
Amitesh Singh 1f28fea220 slider: Removed unnecessary layer set call for popup.
Summary:
Setting layer of a smart member is not required as it would remain
on same layer of slider.

Reviewers: raster, seoz

Reviewed By: seoz

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1447
2014-09-26 02:05:47 +09: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
Tom Hacohen 0ac52480d0 Elm win: Fixed wrong deletion of win objects.
Some of them may be reference still, you don't want to do this.
2014-09-25 17:14:27 +01:00
Tom Hacohen f72bcf2b64 Eo: Get rid of eo_add_custom.
This has been deprecated for a while and is now completely dropped.
2014-09-25 10:46:04 +01:00
Amitesh Singh b9744e58f5 genlist: Removed unnecessary casting of genlist item.
Reviewers: seoz

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1471
2014-09-25 01:36:03 +09:00
Mike Blumenkrantz 34951cf692 revert most recent two elm engine commits
This reverts commits 123ca6a8744729525889bbc09ee1aff4b2b97b75, 0d527b03f4f630e81ab4480d7160bbf6352b0bac

this is still unusable even after being fixed so the fix was unnecessary to begin with
2014-09-24 11:34:03 -04:00
Tom Hacohen 3bc816a88c Elm container: Ship missing headers. 2014-09-24 11:27:21 +01:00
Mike Blumenkrantz 82c7788148 +elm_win_trap_data_get()
needed when using win traps to get the trap ctx at non-hookpoints
2014-09-23 17:38:22 -04:00
Mike Blumenkrantz 70920b3adb remove accel_override from elm_config
if this is saved, it can never be unset, which means that a user who later gains/loses hw accel can never change the existing config value

@fix
2014-09-23 16:57:53 -04:00
Mike Blumenkrantz 0d17c1a2a3 elm_win should not check ELM_ACCEL variable if application has overridden it
also simplify these checks to make it more clear how the ordering should work

@fix
2014-09-23 16:45:15 -04:00
Boris Faure e419746ca2 slider.eo: move since definition to be more conventional 2014-09-23 21:49:56 +02:00
Daniel Juyung Seo e072f17b5a test_genlist: Fixed wrong frame title in the genlist focus test.
Test Plan: elementary_test -> genlist focus

Reviewers: Hermet

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1479
2014-09-24 02:12:57 +09:00
Wonguk Jeong 96f6457fe6 naviframe: hide item added by elm_naviframe_item_insert_before()
Fixes T1650
2014-09-23 11:46:26 +02:00