Commit Graph

12385 Commits

Author SHA1 Message Date
Felipe Magno de Almeida 4f44ca0a16 efl-js: JavaScript Eolian binding
To configure elementary sources with bindings to use in nodejs add
––with-js=nodejs in configure flags in EFL compilation to generate
node files, then compile elementary normally:

path/to/efl$ configure --with-js=nodejs
path/to/efl$ make
path/to/efl$ make install

path/to/elm$ configure
path/to/efl$ make
path/to/efl$ make install

To use, you have to require elm:

elm = require('elm')

The bindings is divided in two parts: generated and manually
written. The generation uses the Eolian library for parsing Eo files
and generate C++ code that is compiled against V8 interpreter library
to create a elm.node file that can be required in a node.js instance.

@feature
2015-12-23 22:23:46 -02:00
Hermet Park 81bf2796c6 rename an author 2015-12-24 09:19:47 +09:00
Subodh Kumar 7f38944ac6 Elm entry: Fix to hide magnifier when menu is disabled.
Summary:
Fix to hide magnifier when menu is disabled

@fix

Test Plan:
1. Enable magnifier
2. Disable menu
3. Long press and mouse up
4. observe magnifier is not hidden.

Reviewers: tasn, herdsman, thiepha

Subscribers: shilpasingh

Differential Revision: https://phab.enlightenment.org/D3490
2015-12-23 13:05:11 +00:00
Mike Blumenkrantz d512b185bf box: implement Evas.Object_Smart.calculate
this allows boxes to be manually calculated

ref T2836
2015-12-22 13:46:30 -05:00
Youngbok Shin 8d756fe505 calendar: Apply elm_button widgets instead of manually implemented spinner buttons.
Summary:
The spinner buttons in elm_calendar widget can be replaced by elm_buttons.
Then, using elm_button widgets makes it much easier to maintain.
And the buttons has to be focusable with "tab" key just like elm_spinner widget.
The lagacy callbacks for signals from edje is not removed for backward compatibility.
@feature

Test Plan: elementary_test -> calendar, calendar2, calendar3

Reviewers: seoz, Hermet, kimcinoo, cedric, woohyun

Reviewed By: woohyun

Subscribers: CHAN

Differential Revision: https://phab.enlightenment.org/D3198
2015-12-22 18:48:16 +09:00
Shinwoo Kim e1ca60f5c0 [config] fix static analysis issue
Summary: Fix static analysis issue

Fix possible pointer mis-use in elm profile string handling

@fix

Test Plan: Static analysis

Reviewers: cedric, jpeg, raster

Reviewed By: raster

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D3474
2015-12-22 08:04:31 +09:00
Tom Hacohen 2b8c9217e8 Entry: clean up single line init function. 2015-12-21 14:45:34 +00:00
Subodh Kumar 1adf598584 Entry: Add newline filter for single line entry
Summary:
Add newline filter

Using the present filter infra
a newline or paragraph separator filter
is being added for single line entry.

@fix

Test Plan:
Copy multiline text from
and paste it to single line entry.

it will fix T2660

Reviewers: herdsman, tasn

Subscribers: thiepha, DaveMDS

Maniphest Tasks: T2660

Differential Revision: https://phab.enlightenment.org/D3109
2015-12-21 14:41:28 +00:00
Marcel Hollerbach 860baa4657 Elm config: use a name instead of elm_widget_type_get
Summary:
The use of elm_widget_type_get here is pretty harmfull, for the usecase
of inheriting a widget elm_widget_type_get is something else than
before. But the key binding should still work.

@fix T2891

Reviewers: tasn

Reviewed By: tasn

Maniphest Tasks: T2891

Differential Revision: https://phab.enlightenment.org/D3470
2015-12-21 12:57:15 +00:00
Subodh Kumar aadac4388d Elm entry: Fix a typo
Summary:
Fix a typo.

Test Plan: NA

Reviewers: tasn, herdsman

Differential Revision: https://phab.enlightenment.org/D3476
2015-12-21 11:41:47 +00:00
Mike Blumenkrantz d0c95e2eef image: do not block null image loading in the elm layer
this is handled correctly in evas. checking load errors from
the engine/loaders is sufficient, but the printed ERR messages
for these cases have been improved

partially reverts 865383aa0da5d1eb6d29f4ed5447a73f63800a33
reverts ee7d5425628942a45e23a2cb6be253db8ec0b3fd
ref 840dcc618ead292414b0de64a7a3ae38d778311f
ref a915229dc87606472480a8b2eacce9514055ac27

fix Titalia
2015-12-20 11:10:41 -05:00
Jaehyun Cho ae27542219 elm_win: Remove unnecessary layer set for elm_win. 2015-12-18 19:18:51 +09:00
Lukasz Stanislawski eb9a1049fa popup: enable to dismiss popup with accessibility API
Clean up elm_popup actions. Move actions should not be used
from accessibility API. Only dismiss seems to be resonable
action which could be triggered.
2015-12-17 12:13:20 +01:00
Lukasz Stanislawski 9a47568685 tests: adjust atspi roles. 2015-12-17 11:44:25 +01:00
Lukasz Stanislawski 7b690b61d1 atspi: return previous name in overloaded getters
Some overloaded accessible name getters did not respect
values set by developer.

@fix
2015-12-17 11:38:43 +01:00
Thiep Ha 435a8bcd24 wayland cnp: check selection owner before calling losscb
The selection is cleared by losscb when we set it.
As result, selection is not done.
To avoid it, we should check if the new selection owner
is current selection owner or not and only call losscb
if the new selection owner is not the current one.

Test Plan:
In wayland, select text in entry (e.g double click, ctrl-a).
2015-12-17 18:13:17 +00:00
SangHyeon Lee 71cdc2f269 genlist : fix genlist build errors 2015-12-17 17:13:43 +09:00
Sung-Taek Hong 1ea1bba734 elm_photocam: add NULL check
@fix

Reviewers: woohyun, jaehwan, eunue

Differential Revision: https://phab.enlightenment.org/D3429
2015-12-17 16:18:09 +09:00
SangHyeon Lee 278df0cc76 genlist: remove unnecessary data creation
Summary :
after using hash, sd is not needed on block_recalc
so it must be removed.

@fix
2015-12-17 16:15:11 +09:00
Sung-Taek Hong a5eed521fe elm_layout: fix typo in error message
Summary: fix "box part" to "table part" in _elm_layout_table_pack()

Reviewers: woohyun, jaehwan, Jaehyun, Hermet

Differential Revision: https://phab.enlightenment.org/D3453
2015-12-17 15:56:27 +09:00
SangHyeon Lee 9c58a193b0 genlist : fix size hash issue when genlist layout sizing evaluated
Summary :
When genlist compressed, size width must updated after sizing eval,
but still hash is not changed after sizing eval, so wrong width are
applied.

so when sizing eval called, free all buckets to get updated width.

@fix
2015-12-17 15:27:59 +09:00
Lukasz Stanislawski ce741b8e55 widget: limit emission of state-changed:showing
Sending atspi events notyfying about visibility change during
widget destruction is pointless.
2015-12-16 16:52:05 +01:00
Lukasz Stanislawski 40eb680d97 naviframe: set better accessibility role and name 2015-12-16 16:28:21 +01:00
Lukasz Stanislawski 8e3b8d947e multibutton_entry: improve atspi support
Expose multibutton items as push buttons supported with three
possible actions: activate, longpress and delete.
2015-12-16 14:00:10 +01:00
Jean-Philippe Andre 01f5083cab image: Lock access to thread variables
Fixes CID 1343345 "Data race condition"
2015-12-16 20:46:09 +09:00
Tom Hacohen 91859748e3 Elm win: Fix potential NULL deref.
Looking at other parts of the code, this could actually be
NULL.

CID1343344
2015-12-16 10:39:20 +00:00
Lukasz Stanislawski 1e0304ea43 hoversel: accessibility enhancements
Allow to dismiss hover using accessibility API.
Change accessibiility role to popup.
2015-12-15 13:30:52 +01:00
Lukasz Stanislawski 328c7d6ba7 hoversel: change accessibility role to popup 2015-12-15 13:30:20 +01:00
SangHyeon Lee 08277c48e5 genlist: supporting homogeneous mode about each item class.
Summary:
previously, homogeneous was only supported for one type of items or group items,
so if user want to use various item styles with different height,
they should set homogeneous false.

This patch is increase usability of homogeneous to make possible homogeneous for
each item class, with the assumption that every item in same class have same height.

Now the item class not only define it's style and class funcitons, also define the
shape properties of item including height and width also.

@feature

Test Plan: Already exist test case in genlist group

Reviewers: raster, cedric

Differential Revision: https://phab.enlightenment.org/D3396
2015-12-14 12:03:07 +09:00
Vaibhav Gupta 394a7e1d4d Entry: Context Menu is now configurable
Summary:
Added a config variable Context_Menu_Disabled to make the appearance
of the context menu configurable.

@feature

Signed-off-by: Vaibhav Gupta <g.vaibhav1@samsung.com>

Reviewers: Hermet, SanghyeonLee, raster, singh.amitesh

Subscribers: stefan_schmidt, alok25, cedric, thiepha, sachin.dev

Differential Revision: https://phab.enlightenment.org/D2463
2015-12-11 16:08:54 +09:00
Mike Blumenkrantz 5a3ca38701 win: redo resize deferral to trigger during pre render
using a job results in the resize occurring after render in the same loop,
meaning that anything which depends on resizes to happen in a certain
time will not have synchronized display vs toolkit geometries

fixes all issues related to wayland window geometries
2015-12-10 15:53:31 -05:00
Mike Blumenkrantz 3efa05c52a win: run wayland region updating during RENDER_FLUSH_PRE
regions have not yet been calculated during RENDER_PRE, and commit
happens during the outbuf flush, so this callback should be the latest
possible time at which window geometry can be sent
2015-12-10 14:20:16 -05:00
Yakov Goldberg c6c3a7f78a Fileselector entry: fix a case when file was not selected
Expected behavior: when Cancel or X is pressed in Filesector
don't change entry.
Wrong behavior: entry is cleaned.
If no file was selected 'file' variable is NULL,
and elm_entry_utf8_to_markup(NULL) returns empty string.
Thus this empty string was set to entry.

@fix
2015-12-10 16:41:08 +02:00
Vincent Torri b51e267447 Fix compilation on Windows (and propably also on Mac)
Reviewers: cedric

Differential Revision: https://phab.enlightenment.org/D3419
2015-12-10 16:10:46 +09:00
Daniel Hirt 616a0c1832 Elm entry: fix null item in item provider.
Item anchors can have null items likes <item size=10x10>. That is,
there is no "href". The problem is that Elm Entry segfaults as it
expects a non-null item. I prefer this fix over passing "" from Edje
Entry, and leave the decision to be made by Elm Entry. It will now just
show the error emoticon if there is no "href".

@fix
2015-12-09 13:38:21 +02:00
Tom Hacohen fbaac7c231 Examples genlist 5: Fix children aspect of the test not working.
This code is obviously wrong and could never have worked.
The parent that is being kept between iterations is being overwritten on
ever iteration, leading to the wrong result.

CID1327358.
2015-12-08 13:18:37 +00:00
Tom Hacohen 6eb2edfbd9 Examples performance: Fix wrong always true condition.
This is again obviously wrong. This code tries to check if the type is not
one of three, what it does instead is checking if it's either not the
first two, or is the third, which is always true (because format can't
be too different values at the same time) and always wrong.

CID1327361
2015-12-08 13:10:33 +00:00
Tom Hacohen ca041fc99c Examples performance: Fix resource leak + potential null deref.
This example is completely broken and doesn't make much sense. Should be
overhauled and probably rewritten/dumped.

This is just to fix the more obvious errors (some pointed out by coverity).

CID1327356
2015-12-08 13:06:04 +00:00
Tom Hacohen c60f8fbae3 Colorselector: Fix some coding style issues. 2015-12-08 12:56:45 +00:00
Tom Hacohen 4df0ca1168 Colorselector: Fix out of bound read.
high should be the last item of the array, not the length of the array.
As part of this change, I also changed the code to use the better way of
getting the array size.

CID1339827
2015-12-08 12:55:33 +00:00
Tom Hacohen 2c686c83c8 Genlist: Add NULL item check to *_item_next_get().
It's there for _item_prev_get(), so I guess it's expected.
2015-12-08 12:55:26 +00:00
Tom Hacohen 467814278f Genlist: Put null check before the deref.
CID1339825
2015-12-08 12:55:20 +00:00
Tom Hacohen 3a9d8ed30f Elm spinner: Fix potential null deref in decimal get function.
This whole code reeks. This generating and parsing strings as a value
store is hacky and could use an overhaul.

This just fixes the more obvious possible errors (that are maybe not
        even possible, just look possible).

CID1339828
CID1339829
2015-12-08 12:47:46 +00:00
Lukasz Stanislawski bdcfa7974b slider: minor accessibility events fix
Emit accessibility events if slider value was chagned through API.
Moreover emit accessibility event more rarely if value is being
changed by the user.
2015-12-08 10:41:36 +01:00
Umesh Tanwar 58b9f34035 gengrid: fix Logic in _item_single_select_left and _item_single_select_right.
Summary:
In _item_single_select_left/right functions if logic is corrected from && to ||.
The previous thing is like: if "there is a generation mismatch" and "item is
disable" then only get the next gengrid item. This seems logically incorrect.

The suggested logic is if "there is generation mismatch" OR "item disabled" then
go for the new item. Whether we get a generation mismatch or item disable, we
should look for next item. So there should be || logic instead of && logic.

@fix

Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com>

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

Subscribers: cedric, sachin.dev

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-07 16:39:40 -08:00
taehyub 51355d307e popup: add popup default align config for other profiles.
Summary:
The alignment of popup can be different in each profiles.
So I added the align configuration of popup.
@feature

Reviewers: cedric, woohyun

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-07 16:39:40 -08:00
Shilpa Singh 99e58b8a43 spinner: add possibility to enter negative value.
Summary:
Even if spinner's min max values range from -ve to +ve, it wasn't possible to enter
-ve values in spinner.

@fix T2915

Test Plan:
1. Launch Elementary Test
2. Launch spinner demo
3. Tap on the editable area of first spinner
4. Enter negative value

'-' is not allowed to enter even though the min max value of spinner ranges from -5000 to +5000.

Reviewers: CHAN, cedric

Reviewed By: cedric

Maniphest Tasks: T2915

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-07 16:39:40 -08:00
Chris Michael 94996d6952 elementary: Update ecore wayland window geometry
As Elementary handles the window border theme, we can more accurately
set ecore_wl2 window geometry from here. The window geometry is
defined as the "visible bounds" from the user's perspective, so the
values we set here should come from the theme.

@fix

ref T2919

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-07 15:34:19 -05:00
Yeshwanth Reddivari c5c228d5be Theme: label - Add fixed to silent warnings.
Summary:
Fix the edje calc error message.
ERR<41630>:edje lib/edje/edje_util.c:3465 _edje_object_size_min_restricted_calc()
file /usr/local/share/elementary/themes/default.edj, group
elm/label/base/slide_short has a non-fixed part 'elm.text'.
Adding 'fixed: 1 1;' to source EDC may help. Continuing discarding faulty part.

Test case:
elementary_test -to 'label slide' --> change sliding speed

Reviewers: cedric, singh.amitesh, herdsman, jpeg

Subscribers: mvsovani, alok25, sachin.dev

Differential Revision: https://phab.enlightenment.org/D3399
2015-12-07 18:25:15 +09:00
Mike Blumenkrantz 6081148d32 elm border: also change shadow program signal name... 2015-12-04 13:53:31 -05:00