Commit Graph

46686 Commits

Author SHA1 Message Date
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
Amitesh Singh 4cd002fc7d doc: fix typo in 410cdd1501 2016-04-08 10:14:35 +05:30
Amitesh Singh 410cdd1501 doc: add widget_preview_nstate.c to noinst_PROGRAMS 2016-04-08 09:48:47 +05:30
Carsten Haitzler 5e6bdd6da9 efreetd - dont use netdb.sh as per man page on windows 2016-04-08 12:57:30 +09:00
Carsten Haitzler 09435e5e81 efreet - use eina tmp dir instead of /tmp dir
use eina_environment_tmp_get() for windows
2016-04-08 12:57:30 +09:00
Amitesh Singh ea6027b3c8 theme: add nstate.edc in Makefile.am
fixes make dist
2016-04-08 09:20:24 +05:30
Amitesh Singh 4cf98237ee doc: add elm nstate preview 2016-04-08 09:20:24 +05:30
Carsten Haitzler 978f416b8c efreetd - fix more cache path handling to live in the cache dir
follow on fixes from 5028a88077

@fix
2016-04-08 12:41:36 +09:00
Carsten Haitzler 5028a88077 efreet: fix tmp file/dir/log handling to not leave a mess and work
so efreets tmp file/cache/log file handling was broken, using
filenames in tmp and renaming them to a caceh dir that can be on
different filesystems. also log file should have been in a tmp dir ...
and subsidrs cache didnt get renamed properly at all and thus not
updated.

@fix
2016-04-08 12:13:42 +09:00
Jean-Philippe Andre 81c1b8b530 doc: Remove widget_preview_nstate.c
These is no such file.
Hopefully this will fix make dist.
2016-04-08 11:25:14 +09:00
Jean-Philippe Andre e1eb5b8b86 efl_vpath: Fix compilation for windows
Patch by @vtorri

Fixes T3431
2016-04-08 11:13:06 +09:00
Jean-Philippe Andre f253f9a7bc Evas 3d: Fix compilation for Windows
near and far are #defined in windows.h. Old legacy stuff.
To be sure the code compiles, rename the variables.

Fixes T3423
2016-04-08 11:13:06 +09:00
Carsten Haitzler 0e5fee0041 eina tmp get - support other tmp dir env vars and dont use xdg runtime
xdg runtime dir is NOT a tmp dir in the normal sense. it's not world
writable nor world readable. only for the user.  using
eina_environment_tmp_get() would imply that it is a regular tmp dir,
not a per-user private only runtime dir. that is something else
entirely.

@fix
2016-04-08 11:03:44 +09:00
Carsten Haitzler 65bae9cd8a efl vpath - fix fallback handling to use right buffer for stat 2016-04-08 10:50:48 +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 5292b3de05 ecore-wl2: redo Ecore_Wl2_Event_Window_Configure entirely
this is an event representing the "new" state of the surface after a
configure event. it must contain the exact states which could potentially
have changed in the configure in order to ensure synchronization between
csd states and window size.

ecore events for xdg-shell configures must be sent only upon receiving a
configure event since states are set by the compositor and not by the client

@fix

 #hoorayforbeta
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
Mike Blumenkrantz af1c7d3407 ecore-wl2: remove maximized/fullscreen/transient from window types enum
these aren't real window types and only complicate internals/api

 #hoorayforbeta
2016-04-07 14:19:25 -04:00
Marcel Hollerbach 8400c9d3d2 ecore_x: fix emission of ECORE_X_EVENT_XKB_NEWKBD_NOTIFY
Summary:
the event XkbNewKeyboardNotify was never selected with
XkbSelectEventDetails so the event type could never occur.

The event is now each time emitted when a new event to the keyboard
happens. To clarify a bit: A new keyboard is always detected in x when
the set of keymaps changes.

@fix

Reviewers: raster, devilhorns, zmike

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3867
2016-04-07 14:02:29 +02: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 d03b45f030 Eo: Try to fix windows build
For windows, EAPI needs to be redefined as dllexport/dllimport.
Since we marked all EO APIs as weak, we had two different EAPI
macros: EAPI and EWAPI. Unfortunately, EWAPI was never redefined
(only declared inside Eo.h).

See also a1a506e13e.

See T3423. Thanks @vtorri for the report.
2016-04-07 15:51:48 +09:00
Jean-Philippe Andre 7de2f28b45 Eo: Mark class_get() as weak APIs
While eolian-gen was generating EWAPI (weak) class_get()
symbol declarations, they were implemented as EAPI (strong).
Not sure if this mismatch had any significant effect.

This patch tries to address T3423 (windows build).
The mismatch between EAPI and EWAPI might be the problem.
2016-04-07 15:39:56 +09:00
Jean-Philippe Andre 83a591b335 Ecore: Try to fix build for windows
Move efl.h above ecore.h to not mess with EAPI's dllimport
vs. dllexport definition. This addresses T3423.
2016-04-07 15:25:42 +09:00
Jean-Philippe Andre 4e4b42ec03 Efl: Add internal strong symbol to fix build on GCC < 5.3
This fixes a crash in ecore_init, calling a weak function from
libefl that was resolved to NULL.

So, here's a fun thing happening with GCC < 5.3. Since a1a506e13e
all EOAPI and EO class_get() functions are weak symbols. This means
that all APIs inside libefl.so are weak.

As a result, gcc linker with --as-needed skipped linking to libefl
since not a single strong symbol from libefl was required by
libecore. This is actually a bug in gcc linker since we do in fact
use symbols from libefl, just weak ones.

GCC 5.3 seems to be fixed, so people with GCC 5.3+ will not
experience any build/runtime issue. The current patch is
a workaround that bug, by artifically creating a strong symbol
required by ecore.

Other libraries than ecore might also need to call
__efl_internal_init, if they end up not being linked to libefl.
2016-04-07 14:40:10 +09:00
Cedric Bail 7b0d332e01 ecore: attempt to fix windows build by putting header in a more logical place. 2016-04-06 14:34:45 -07:00
Felipe Magno de Almeida dc954d8dba eolian: add Eolian support for Eina Promises
Add a promise object to allows Eolian interface to include promises
as a way to have asynchronous value return and composibility.

The usage is like this in a .eo file:

class Foo {
   methods {
      bar {
         params {
            @inout promise: Promise<int>;
         }
      }
   }
}

Which will create the following API interface:

void foo_bar(Eo* obj, Eina_Promise** promise);

and a Eina_Promise_Owner for the implementation, like this:

void _foo_bar(Eo* obj, Private_Data* pdata, Eina_Promise_Owner* promise);

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2016-04-06 14:34:15 -07:00
Felipe Magno de Almeida 944e11559c eo: add before and after macro hooks for API generation functions
Add two parameters for macros that generate API functions in Eo so
that the generation can be customized with macros used by Eolian.

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2016-04-06 14:32:04 -07:00
Tom Hacohen c9347b1ca2 Revert "Eo: Fix rare crash after call_resolve"
I'm reverting this because according to jpeg it was possibly fixed in
5284b62e93.
I reverted this patch after his fix and followed his reproduction cases
and it seems that his second patch does indeed fix this issue so this
patch is no longer needed.

This reverts commit 0862b9d083.
2016-04-06 11:18:36 +01:00
Tom Hacohen c6159e042b Eo tests: Also test function calls in reinit test.
Since we cache ops we also need to check function calls work
when we reinit eo, not just class_get functions.

This commit essentially verifies that
5284b62e93 was done correctly.
2016-04-06 11:15:24 +01:00
Carsten Haitzler b67413bc33 efl build - ecore - add efl link as a PUBLIC link as efl headers it in
I added Efl.h to Ecore.h - because we really want to use efl
interfaces ... like everywhere. so add it to the link too.
2016-04-06 18:27:34 +09:00
Jean-Philippe Andre ba9a2c3612 elm_test: Fix warning with clang
Invalid enum type
2016-04-06 16:36:55 +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
Jean-Philippe Andre 5284b62e93 Eo: Fix function cache after eo reinit
The function call resolve cache may be broken after an eo
shutdown + init cycle, leading to calls to invalid functions.
This adds an static uint for each and every single EO API
entry point, as well as an extra if() check.

Now I'm not sure if the previous commit 0862b9d083 is
still necessary.
2016-04-06 14:24:23 +09:00
Jean-Philippe Andre 7eaf7af1d1 Efl vpath: Fix usage of @class function
Calling an @class function with a real object is not safe.
Missing check somewhere? I believe this should have failed safely.
2016-04-06 13:27:09 +09:00
Jean-Philippe Andre 0862b9d083 Eo: Fix rare crash after call_resolve
It seems that calling a @class function with an EO object
(that was not the required Eo_Class) lead to a situation
where func->func was NULL. And that meant a crash after
call_resolve.

The proper fix is to properly call a @class function with a
class object.
2016-04-06 13:27:04 +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
Stephen Houston 31114fb650 Elementary: Don't send selected signal to a part with no selected state. Removes warnings. 2016-04-05 20:39:35 -05:00