Commit Graph

5347 Commits

Author SHA1 Message Date
SangHyeon Lee c5427e875d genlist : arrange focus set in mouse up
Summary :
when mouse up happens, item must be focused, and after that,
select must be called.
current logic, focus is already called inside the select function
and again focus set is called in the end of mouse_up,
so if user new focused widget inside the select callback,
mouse_up forcely take the focus into the item again.
select callback should comes after the focus callback calls
to work properly.

@fix
2016-04-22 16:08:25 +09:00
Cedric BAIL 539d79c0a3 elementary: use Efl.Loop event directly as an API test. 2016-04-21 16:26:25 -07:00
Mike Blumenkrantz 8325b78aed elm_cnp: accept appropriate text types in wl drop handlers
this fixes text dnd

@fix
2016-04-21 13:58:45 -04:00
Mike Blumenkrantz f6f76bf87f elm_cnp: do not send null accepts for every type within wl data offers
once is sufficient
2016-04-21 13:58:45 -04:00
Mike Blumenkrantz c9208871ae elm_cnp: attempt to get all applicable mime types when getting selection
@fix
2016-04-21 13:58:45 -04:00
Carsten Haitzler 5e09d1307b eo base - remove the duplicated key dels and just do eo_key_del() now
this rationalizes all the duplicated key dels (key_data, key_obj and
key_value).
2016-04-21 18:02:31 +09:00
Jean-Philippe Andre 80da5099c1 Elm: Don't install box, table and grid eo files
Box, Table and Grid now belong to legacy land.
Their Evas counterparts are already not installed anymore,
and Efl.Ui.Box and Efl.Ui.Grid are here to replace those
widgets (note: code was initially copy & pasted).

This should fix installed EO files consistency.
2016-04-20 20:39:58 +09:00
Tom Hacohen 5bec0d07b4 Ecore eo: Resolve duplicate Ecore_Cb definition. 2016-04-20 10:11:21 +01:00
Jean-Philippe Andre 2d946d03ae Efl.Pack: Rename methods and properties
- Children are now contents
- Efl.Pack_Layout is now a separate class and
  merges Pack_Engine.
- Removed dumb class Efl.Pack_Item
- Updated docs
- Added pack_ or grid_ prefixes to some methods
2016-04-20 11:15:53 +09:00
Jean-Philippe Andre a0f92d9bef Efl.Ui.Grid: Implement custom layout functions
Untested yet. Will need to add the common 3 classes:
- standard
- homogenous
- homogenous max_size

And then implement a true custom layout function, that
respects weights in a certain manner (need to define it
clearly).
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre e4889ca367 Ui.Box: Fix flow layout
Set align, fix usage with eo_add(EFL_UI_BOX_FLOW_CLASS).
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre f2eff88640 Efl.Ui.Box: Add pack_align property
While at first I wanted to remove the box_align / table_align
properties, it ends up being a necessary value in some cases.
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre 101cb7fe2a Efl.Ui.Grid: Fix new API behaviour
This fixes the linear API usage with a table.
TODO:
- remove internal table (as it doesn't support layout funcs)
- implement multiple layout functions (regular, homogenous, ...)
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre 86a59a3a24 Elm_test/Grid: Add linear API test for Efl.Ui.Grid
At this point, it proves that the grid API does not work.
Some things still need to be implemented or fixed.
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre a84468cf4b Elm_test: Add test case for Ui.Grid
Right now the proper layout functions for Ui.Grid are not
implemented, so most controls don't work. This tests that the
grid works fine as a table.
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre 548efd7fa4 Efl.Ui.Box: Implement flow layouts
This reuses the Evas.Box code, since we are still using the
box internally. The flow layout function is far from perfect
(it works well only with items of same height).

This shows how to use specific layouts provided by EFL.
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre 24eccb6d62 Efl.Ui.Box: Implement way to override layout function
So, since we don't have function pointers, all the solutions
to reimplementing the layout function are quite convoluted:

1. use events
2. reimplement layout func
3. use an extra object
4. use a generic class (non instanciated)

Promises don't apply here (layout will run multiple times).

Problems:

1. Multiple event callbacks will be called, resulting in
   potential performance impact, extra events, etc...
   Also, there is no way to define standard implementations
   that would be provided by the framework.

2. Reimplementation of a function requires extra EO work
   (create an EO class, etc...), doesn't allow on-the-fly
   change of the layout method.

3. Probably the best solution is to have an object implementing
   the layout. But this means creating an extra object along
   with the container.

4. To avoid the extra object, use a class, and reimplement
   a @class function. This unfortunately requires extra
   EO work.

Solution 4. has been selected, but it's not very nice...
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre 11403a4ec4 Elm: Compile in box and grid
Ui.Grid is definitely not complete.
Ui.Box still needs a few adjustments:
- alternative layout
- aspect ratio support
- RTL support
- remove evas box
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre 2343aa7900 Efl.Ui.Grid: Add implementation of a grid/table
This is only a partial implementation, work in progress.

The grid object should be a replacement for evas and elementary's
table and grid. Only the layout of items inside the container
is different, otherwise the API should be the same.

For now, this widget is based on an evas table but the full
layout logic will need to be reimplemented, eventually.

@feature
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre b18a993dc0 Efl.Ui.Box: Add implementation of a simple box
This should be the only linear packing container.
This replaces: evas box and elm box.

Edje box needs to be kept around for compatibility,
but it stays an EDC object only (for apps).

Lots of things are still to be fleshed out in this
box implementation:
- Simplify smart object / elm widget code
- Maybe stop using evas object box altogether
- Implement other layout strategies

@feature
2016-04-20 10:47:40 +09:00
Tom Hacohen 6f4f9bd051 Elm glview: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen fb110d2de8 Elm box: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen bd14c3ffd3 Elm web: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 4264a58a11 Elm app server view: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 7d5bcd1a2c Elm slideshow: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 8b6948fa42 Elm app client view: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 64cb0942d4 Elm app server: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen aa577541e8 Elm gengrid: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 8cfa381452 Elm map: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 86720888fa Elm calendar: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 8425b07fbf Elm eo: Make Eina_Compare_Cb accessible to all widgets. 2016-04-19 17:15:28 +01:00
Tom Hacohen 1bddce0113 Elm sys notify interface: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 5e670d05af Elm prefs: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 22345bd744 Elm app client: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 83b8b6da07 Elm multibutton entry: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 7d45bbcc5e Elm app server: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen b2be0b0506 Elm genlist: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 352a9055b2 Elm view list: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen ff0f41933f Elm naviframe item: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 82591ac46e Elm interface fileselector: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 179395126d Elm slider: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 6989db76c2 Elm toolbar item: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen efcf577efd Elm systray: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 4d026032d0 Elm toolbar: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen e1c1bbbc4a Elm list: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen bb0bcce384 Elm layout: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen f021a858ad Elm atspi text: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 9933362a12 Elm atspi widget action: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 4d89465caf Elm hoversel item: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen f8dbd98e84 Elm win: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 79cbfd7c23 Elm check: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 3cb13c4f83 Elm image: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 42bfde5088 Elm entry: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 8ea5cbb0bf Elm atspi accessible: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 02619820c9 Elm widget: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 4cc81388d6 Elm gesturelayer: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 80310b1cbe Elm photocam: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 452254e5ec Elm general: Ignore more types (callbacks) in eolian. 2016-04-19 17:15:28 +01:00
Tom Hacohen dc05a18731 Elm interface scrollable: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen bb4c14e9cc Elm widget item: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 002456f92b Elm gen item: Add missing eolian type definitions. 2016-04-19 17:15:28 +01:00
Tom Hacohen 079003d043 Elm eo files: Add missing include of efl_types. 2016-04-19 17:15:28 +01:00
SangHyeon Lee 81f45c1b90 genlist: call update_job after smart_calculation done
Summary :
if item_update happens before the smart calcuate finished,
item can be delayed updated(next frame).
to prevent this issue, if unsolved job is remaining after
smart calc done, call update_job directly and remove job.

@fix
2016-04-19 18:43:55 +09:00
SangHyeon Lee b48d3eb04e genlist: recalc item size after item content field updated
Summary :
after item content fields updated, item and block should be
recalculated about it's height because content size can be updated.
if do not recaculate, items can be overlapped.

@fix
2016-04-19 14:57:45 +09:00
Jee-Yong Um 87b12327c3 genlist: scroll to item when calc is done
Summary:
If elm_genlist_item_bring_in() is called immediately after appending
item, genlist will not scroll to the last one but stop in the middle.
This patch blocks genlist from scrolling to not calculated item.

Test Plan:
1. Uncompress attached file
2. make
3. ./test

Reviewers: cedric, SanghyeonLee

Reviewed By: SanghyeonLee

Subscribers: jpeg

Differential Revision: https://phab.enlightenment.org/D3861
2016-04-19 14:00:42 +09:00
Jee-Yong Um 3f17d0d090 elementary: remove redundant reswallow logic in elm_layout
Summary:
When theme is changed by elm_layout_theme/file_set,
_edje_object_file_set_internal will be called internally
and it updates swallowed objects.
Elm.Layout doesn't need to reswallow its child objects.
(with current code, searching cost for real part occurs.)

Reviewers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-04-18 16:33:46 -07:00
Stefan Schmidt 6fc6a9eebe elm_photo: make sure we have a separate variable for the sanitized path
That way we can safely free it again after it got memory allocated from
eina_file_path_sanitize(). Fixes a memory leak.

CID: 1353601
2016-04-18 16:02:30 +02:00
Stefan Schmidt 6b7172d6e3 elm_atspi_bridge: unref eldbus msg before returning to avoid memory leak
If we goto fail here we still have the ret eldbus message referenced. Make
sure we unref so it can be free'd and we do not leak memory.

CID: 1353603
2016-04-18 16:02:07 +02:00
Stefan Schmidt 39eb3004f8 elm_spinner: free string in all cases before returning
If len < max_len was true here we leaked new_str. Make sure we also free it
in this case.

CID: 1353605
2016-04-18 16:01:21 +02:00
Stefan Schmidt ed793bab3b elm_conform: fix memory leak for state variable
Make sure we actually free state here before going out of scope.

CID: 1353606
2016-04-18 16:01:02 +02:00
Tom Hacohen 1d7caffed5 Elm popup: use the correct parent for calculations.
It just so happens that these parents are the same at the moment.
They don't have to be. We should use the correct, popup specific parent for
that.
2016-04-18 10:10:23 +01:00
Tom Hacohen aff4171e73 Elm widget: rename parent to widget_parent and mark as protected.
This removes the conflicts between the different parents and also
indicates that this is to be used internally by widgets and should
not be confused with the normal user visible parent.

It is an internal attribute that should not be used by people
not implementing widgets. Marking it as protected signifies it
as such.
2016-04-18 10:10:23 +01:00
Tom Hacohen a73cdbdb46 Elm: Reparent when swallowing an object.
Make the layout the parent on swallow, and the canvas the parent on
unswallow.
2016-04-18 10:10:23 +01:00
WooHyun Jung 1c6f3fd966 elm_focus: keep all focused states to be consistent when win loses and gets focus
Since focus_clear removed all the focused traces, focus was not reverted well
whenever win lost and got focus repeatedly.
For instance,
1. set focus to button1
2. set focus to button2
3. win focus out and in
4. remove button2
5. focus is on win not on button1

So, focus logic changes to not clear focused states when win loses focus.

@fix
2016-04-16 13:47:13 +09:00
WooHyun Jung f24dce9bc9 elm_win: remove duplicated focused/unfocused event call
These are already called in elm_widget's on_focus.

@fix
2016-04-16 10:37:34 +09:00
Tom Hacohen 6d135944be Elm ctxpopup: Remove useless implementation of sub_object_add.
Was just calling super and nothing more.
2016-04-15 13:45:41 +01:00
Youngbok Shin 726c6171bf Elementary Toolbar: Send order signals when a item is added/removed
Summary:
Send order signals for changing item's state according to its order.
It does not affect to existing themes. It sends the following signals.
	elm,order,first,item
	elm,order,default,item
	elm,order,last,item
@feature

Test Plan: N/A

Reviewers: woohyun, jaehwan, eagleeye, cedric

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3883
2016-04-15 15:10:49 +09:00
Cedric BAIL 70cc3677ae elementary: make it possible to build the library alone. 2016-04-14 16:22:23 -07:00
Davide Andreoli c23a61a49c eo: adjust direction of parameters
They are OUT params in real

Side note: the doc for this function miss the x parameter in the generated .eo.h file
...if someone want to look at the doc generation code.
2016-04-13 20:14:14 +02:00
Amitesh Singh bc9bde253a ctxpopup: pass const object ptr as argument in horizontal_get() 2016-04-13 16:11:19 +05:30
Tom Hacohen f14305024e Eo event: rename Eo_Event->event_info to Eo_Event->info.
The previous naming was redundant and too long.
2016-04-12 15:23:55 +01:00
Amitesh Singh 736fb9d498 ctxpopup: implement Efl.Orientation interface functions
Also move horizontal_set/get as legacy APIs.
2016-04-12 17:51:45 +05:30
Hermet Park 5f9e73b966 elementary/scroller: code refactoring.
try to update scroller size when popup layout is updated.
2016-04-12 00:36:12 +09:00
Jinyong Park 33d9bcc551 elc_popup: If popup's parent is resized, popup need to resized, too
Summary:
When window's size is not enough to show popup, popup resize smaller to show it in appropriate size.
But if window resize larger enough to show popup, popup is locked in small size.
On the contrary to this case, if window resize too smaller, popup has still large size, so popup doesn't display properly.

Test Plan:
1. elementary_test popup
2. maximize test list window
3. click 8th item, "popup-center-title + items + 3 buttons"
4. restore window size
5. close popup, resize window to smaller than popup in 3).
6. click 8th item, "popup-center-title + items + 3 buttons"
7. restore window size
popup size of 4. and 7. is different

Reviewers: jaehwan, cedric, raster, id213sin, singh.amitesh, SanghyeonLee

Subscribers: jpeg

Differential Revision: https://phab.enlightenment.org/D3854
2016-04-12 00:28:55 +09:00
Jinyong Park edcfc6d036 popup : fix scale calculation in _scroller_size_calc
Summary:
when calculate real size of action area in _scroller_size_calc,
edje base scale is omitted.

Reviewers: jaehwan, id213sin, cedric, raster, singh.amitesh, SanghyeonLee, Hermet

Reviewed By: Hermet

Subscribers: Hermet, herb, jpeg

Differential Revision: https://phab.enlightenment.org/D3857
2016-04-11 23:31:03 +09:00
Ji-Youn Park e561a65c39 Elm_icon: fix build error. --; 2016-04-11 21:48:46 +08:30
Ji-Youn Park 44d6506b8a Elm_icon: move thumb_set API from eo to legacy. 2016-04-11 21:44:31 +08:30
Ji-Youn Park 02a37da0ed Elm_thumb: move all api from eo to legacy
elm_thumb,elm_icon,elm_photo will be removed.
2016-04-11 21:31:42 +08:30
Shuhrat Dehkanov eae53f2218 genlist: do not evaluate against max coord if the value is negative
Summary:
If x is already less than '0', there is no need to check if it is
bigger than pan_max_x. Likewise, if y is already less than '0',
there is no need to check if it is bigger than pan_max_y.

Reviewers: Hermet, cedric, SanghyeonLee, singh.amitesh

Reviewed By: singh.amitesh

Subscribers: seoz, minkyu, sju27, jpeg

Differential Revision: https://phab.enlightenment.org/D3865
2016-04-11 17:44:56 +05:30
Ji-Youn Park 810ebb5db8 Elm_image: remove no_scale and resizable property.
elm image add new API to deal with scale type.
if we use scale type for elm_image, we don't need to use no_scale and resizable property
2016-04-11 20:03:25 +08:30
Ji-Youn Park 7b4c23489d Elm_photo: move api from eo to legacy.
elm_photo will be deprecated in the future.
so move all api from eo to legacy.
2016-04-11 13:21:05 +08:30
Daniel Zaoui 9936b92ce3 CtxPopup: fix auto-hide property setting
Set and get functions are inconsistent one with the other. When set
function is used with a certain value, one expects the get function
to return this value.
2016-04-10 15:23:13 +03:00
Mike Blumenkrantz b6f87499e1 elm_win: force opaque update on maximize state change
enforce csd recalc to ensure accurate maximize sizing

@fix
2016-04-08 15:50:44 -04:00
Youngbok Shin f4f9753c20 Evas: Add API to reinit the language and use it in elementary.
Summary:
evas_common_language_from_locale_* functions kept static pointers
inside of its functions. Once these function was called, it was never reset.
It made big problems for harfbuzz and hyphenation. Also, Elementary
provides elm_language_set() API. Then we need to support it fully.
@fix

Test Plan: Test case for hyphenation is included in Evas test suite.

Reviewers: raster, tasn, herdsman, woohyun, z-wony, Blackmole, minudf

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3864
2016-04-08 11:24:32 +01:00
Jee-Yong Um f7a4a2b2a0 list: fix item highlight geometry correctly
Summary:
Calculation for item highlight geometry is incorrect when item
is larger than viewport geometry.
This patch adjusts highlight geometry to fit visible item size.

Test Plan: enventor (look "Settings-Text Editor-Font Names" list)

Reviewers: Jaehyun_Cho

Subscribers: jpeg, cedric

Differential Revision: https://phab.enlightenment.org/D3738
2016-04-08 17:47:11 +09:00
Jean-Philippe Andre a6d7efcf73 elm_win: Fix warning (unused variable) 2016-04-08 14:19:58 +09:00
Mike Blumenkrantz 0712218537 wayland: hook engine data from elm_win and update rect with evas size
the only way to accurately calculate the "evas" size in the engine from
window geometry is to have the size of the frame available to subtract from
window geometry

window geometry is NOT framespace--framespace is the entire csd region, possibly
containing a shadow, and window geometry is explicitly the region occupied by the
window, ie. not the shadowed part.

not my ideal solution to the synchronization issue here, but I guess this is a
benefit of the unified tree

fix T3396
2016-04-07 14:19:25 -04:00
Mike Blumenkrantz 6a1c466136 elm_win: handle icon object lifetimes more accurately, use icon_name in csd icon
in the case where an icon existed upon having an icon object set, the previous icon
object would be orphaned while still being visible. the new icon would then never
be set into the csd.

@fix
2016-04-07 14:19:25 -04:00
Mike Blumenkrantz 53f0b89671 elm_win: move frame obj creation/deletion for fullscreen property to state change cb
this was broken if the compositor unset fullscreen without being prompted by
the client (eg. ctrl+alt+f). it also created timing differences for csd calcs based
on when the fullscreen call occurred in the render cycle

@fix
2016-04-07 14:19:25 -04:00
Ji-Youn Park beb6fa61c7 Elm_image: remove elm_image_sizing_eval from eo to legacy.
elm_image_object_get api will be deprecated, so moved sizing eval func to legacy
2016-04-07 19:08:41 +08:30
Yeshwanth Reddivari ce22fa292a efl.progress: Rename property from value to progress_value
Reviewers: jpeg, singh.amitesh

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3872
2016-04-07 19:06:09 +09:00
Amitesh Singh 56ab435998 elm_nstate: introduce nstate widget and inherit check from it
Test Plan:
elementary_test -to "nstate"

@feature

Reviewers: yashu21985, tasn, Hermet, seoz, smohanty, felipealmeida, JackDanielZ, jypark, woohyun, herdsman, raster, cedric, jpeg

Subscribers: saurabhbunty, seoz

Differential Revision: https://phab.enlightenment.org/D3786
2016-04-07 19:05:57 +09:00
Jean-Philippe Andre d1709a2b57 Efl: Rename flip and orient enums
Efl.Flip is now the enum, the interface is Flipable.
We could even use names like Efl.IFlip a la Java.

eo_prefix is used to have pretty names in C. legacy: null
is removed from the enums. orient_x0 is removed and only
defined in C with #define
2016-04-07 17:32:40 +09:00
Yeshwanth Reddivari 7f9036dce5 Interface: Progress - Add common interface for Slider and Progressbar
Summary:
Implement common interface efl_ui_progress and inherit slider and progressbar from common interface.
Currently legacy APIs will also call interface functions and later it can be deprecated.
This interface will be moved to EFL in src/lib/efl/interfaces when elementary is merged into efl.

Test Plan:
elementary_test -to 'slider'
elementary_test -to 'progressbar'

Reviewers: singh.amitesh, raster, tasn, felipealmeida, woohyun, cedric, jpeg

Subscribers: saurabhbunty, alok25

Differential Revision: https://phab.enlightenment.org/D3759
2016-04-07 16:50:57 +09:00
Jean-Philippe Andre d61e243f0f elm_glview: Fix warning with clang
I'm using the same gcc construct to initiliaze a complex
struct with {} instead of {0}.
2016-04-06 16:35:48 +09:00
Jean-Philippe Andre b476075081 elm_config: Fix typo and warning
A major typo (hard to find with the naked eye) was present in
elm_config's list of text & color classes. See D3487.

I'm pretty sure this feature has not been used at all.
2016-04-06 16:33:16 +09:00
Jean-Philippe Andre cd8fb35951 els_box: Fix warning with clang
warning: comparison of constant 100 with expression of type
         'Evas_Aspect_Control' is always true
         [-Wtautological-constant-out-of-range-compare]
2016-04-06 16:28:33 +09:00
Jean-Philippe Andre 7c05a957cd elm: Fix some warnings with clang
warning: missing field 'desc' initializer
         [-Wmissing-field-initializers]

Solution: use gcc extension to init structs with {}.
This is a bit ugly, but having too many warnings leads to
ignoring them and not noticing valid ones.

The warning is triggered because the first member of Eo_Event
is not a primitive type (it's a struct _Eo_Opaque *).
2016-04-06 16:28:28 +09:00
Jean-Philippe Andre be41b5afb0 elm_web: Fix warning (missing initializer) 2016-04-06 16:28:17 +09:00
Jean-Philippe Andre c19030b301 elm_image: Fix warning (wrong enum type) 2016-04-06 14:24:50 +09:00
Yeshwanth Reddivari 98edbd23a4 Interface: Flip and orientation interface
Summary:
Added flip and orientation interface and used them in evas_image.
Removed efl_image_orientation_set API and used efl_orientation_set and efl_flip_set API.
In implementation part, converted enums back and forth in order to keep current implementation as it is.

Test Plan: src/examples/evas/evas-images5.c

Reviewers: singh.amitesh, raster, tasn, herdsman, woohyun, cedric, felipealmeida, jpeg

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3844
2016-04-06 10:46:39 +09:00
Jean-Philippe Andre a142f0bd39 elm_layout: Attach object to iterator
This is part of a new API, not a fix

This was missing in 3c40ebb998
2016-04-06 10:44:59 +09:00
Jean-Philippe Andre 26715dad0b elm_box: Minor fixes 2016-04-06 10:44:55 +09:00
Mike Blumenkrantz 01156d3469 elm_win: update wayland opaque region during pre-flush...always
@fix
2016-04-05 15:11:31 -04:00
Jinyong Park c2cebb9fbc popup : fix create scroller bug when list item add.
Summary:
data-> scr = scroller object
data-> scroll = scrollable flag.
in _list_add function, when scroller object is not created, do _create_scroller.
 if (!sd->scroll) _create_scroller(obj);
must change to
 if (!sd->scr) _create_scroller(obj);

@fix

Reviewers: jaehwan, id213sin, cedric, raster, singh.amitesh

Reviewed By: singh.amitesh

Subscribers: herb, jpeg

Differential Revision: https://phab.enlightenment.org/D3866
2016-04-05 13:59:12 +05:30
Carsten Haitzler 0c91f39db6 elm - add vpath paths for application resources
this now allows vpath files to be looked uop using app directory
resources like @app.data/file.jpg ... if the object uses vpath to do
its hunting.

@feature
2016-04-05 16:22:59 +09:00
Daniel Zaoui a7400abbf6 Popup: don't set wrap type if ELM_WRAP_NONE is given
If ELM_WRAP_NONE is forbidden, the internal variable should not be set
if this value is given as parameter.
2016-04-05 08:43:35 +03:00
Taehyub Kim 4d9a19a1d5 elc_popup: support siganl emit for the main layout of popup
Summary:
Popup has the main layout to show popup view, but it is not resize object of popup.
As the result, we cannot emit the signal to the main layout when we want to change the state of the popup.
So, popup inherited a layout signal emit and redirect the signal to the main layout.

Test Plan:
1. add the custom signal in elm/popup/base/default layout
2. send the custom siganl in application code

Reviewers: woohyun, raster, cedric, Hermet, singh.amitesh

Reviewed By: singh.amitesh

Subscribers: jpeg

Differential Revision: https://phab.enlightenment.org/D3852
2016-04-05 10:16:38 +05:30
WooHyun Jung fe7ba5af00 elm_win: newest is always unfocused when window just gets focus 2016-04-05 11:23:04 +09:00
Mike Blumenkrantz 3121ea07c2 elm_win: conditionally emit focus and maximize signals in frame creation
@fix
2016-04-04 18:00:26 -04:00
Mike Blumenkrantz e376db9189 elm_win: update opaque region while fullscreened
@fix
2016-04-04 18:00:24 -04:00
Mike Blumenkrantz c84a4e5a5f elm_win: unset opaque region when alpha is set
@fix
2016-04-04 16:30:53 -04:00
Ji-Youn Park 8c3f4cd816 Elm_image: remove resizable_up and resizable_down Eo api
risizable_up and resizable_down api will be deprecated
after creating the apis to deal with image content using scale type
2016-04-04 10:19:18 +08:30
Carsten Haitzler d1f4f6c8af elm win - null out freed data on smart del
this fixes double-frees of strings in oddball cases where a deleted
window that is not done deleting is accessed.

@fix
2016-04-02 16:02:07 +09:00
Ji-Youn Park e438bd09b2 Elm_image: remove object_get from eo and object_size_get to view.size.get
remove elm_image_object_get frome eo.
    change elm_image_object_size_get to efl_gfx_view_size_get
2016-04-01 17:19:14 +08:30
SangHyeon Lee c0bbf53cb9 support elm_object_item_style_set/get on genlist items 2016-04-01 16:53:57 +09:00
SangHyeon Lee fc2f341e41 fix item_class refcount bug when class updated 2016-04-01 16:40:16 +09:00
SangHyeon Lee e8c3346379 fix genlist content leak in reausable case 2016-04-01 16:26:57 +09:00
Ji-Youn Park 1dc9741d0f Elm_image: remove Elm_Image_Orient and orient property from EO. 2016-04-01 14:42:01 +08:30
Ji-Youn Park 66b9884ab3 Elm_image: move preload_disabled API from eo to legacy. 2016-04-01 14:36:58 +08:30
Ji-Youn Park 5be49ace8f Elm_image: remove elm_image_fill_outside_get
This api will be removed.
   elm_image_fill_outside_get is same as !elm_image_fill_inside_get.
   elm_image_fill_outside_set function is too.
2016-04-01 14:14:51 +08:30
Cedric BAIL 2136038a7a elementary: only complain once during init when elm prefs module is not installed. 2016-03-29 14:53:38 -07:00
Andrii Kroitor 19139450c0 elm_fileselector: fix progressbar mode
Summary:
There are calls of elm_progressbar_pulse (start/stop pulsing), but they have
no effect because progressbar is not in pulse mode

@fix

Test Plan:
open elementary_test fileselector and navigate through folders
Wheel progressbar in right up corner should have pulse animation

Reviewers: cedric, raster, reutskiy.v.v

Subscribers: jpeg

Differential Revision: https://phab.enlightenment.org/D3843
2016-03-29 16:49:51 +02:00
Marcel Hollerbach aa7e017fd8 fileselector: add HOLD flag
adds the hold flag when the keystroke is used.

If this is not done a backspace is used for reducing the search-string
AND for going into the top level directory.
2016-03-29 16:49:39 +02:00
Jean-Philippe Andre 3c40ebb998 elm: Replace contents list by iterators
This introduces two new methods:
- content_names_iterate
- content_objects_iterate

Replacing:
- elm_layout_content_swallow_list_get
2016-03-29 13:58:39 +09:00
Jean-Philippe Andre d2b7621907 elm: make content_get/set a property
This doesn't change the C code.
2016-03-29 13:32:12 +09:00
Jean-Philippe Andre 8fb8e6d257 Evas render: Fix no-render with smart objects
Setting the no-render flag on an elm widget had no effect,
as it was not properly propagated to its children. This should
fix that, but I'm not a fan of the solution.

Fixes T3371
2016-03-29 10:43:00 +09:00
Cedric BAIL 5155c2d156 elementary: add back C++ generated binding. 2016-03-28 16:16:15 -07:00
Amitesh Singh 9229654571 slider: Add range support
Slider can have two indicators if enabled and user can select
range values.

phab: https://phab.enlightenment.org/D3822
Test Plan: elementary_test -to slider

@feature

Change-Id: If4ca74de6f5a94531ebd21750d52704b2b02afee
2016-03-28 14:09:13 +05:30
Carsten Haitzler 1c2a5cec93 elm: fix window resize self-trigger
so there was/is a case where when an elm window is resized from
outside, it will happen to use the last known size (maybe old) and end
up requesting a resize to that size again itself. it basically
triggers its own resize request as a result of resize events. this
fixes that and stops the loop

@fix
2016-03-25 15:11:38 +09:00
Stefan Schmidt 9e5e69da4c elm_map: remove unused variables 2016-03-24 21:31:24 +01:00
Mike Blumenkrantz 25f0de1147 elm_win: monitor wl CONFIGURE events and unset resizing flag accordingly
resolves inability to resize again after resizing

@fix
2016-03-24 15:39:08 -04:00
Mike Blumenkrantz 2749775c74 elm_win: force resize during show if job is pending
this resolves the issue of all elm windows being created at 1x1 and
immediately resizing to another size after being shown, causing all
kinds of failures in various environments

@fix
2016-03-24 15:39:08 -04:00
Cedric Bail 14ec825aa9 elementary: search ELM_DATA_DIR environment for themes. 2016-03-24 11:23:11 -07:00
Cedric BAIL b0df722819 elementary: initial compilation of the library only. 2016-03-24 11:23:10 -07:00
Cedric BAIL 91367f2c11 elementary: merge configure logic. 2016-03-23 16:00:47 -07:00
Cedric BAIL c2a1c49ab2 elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00