Commit Graph

12347 Commits

Author SHA1 Message Date
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
Mike Blumenkrantz cd075d0d73 elm border: change shadow toggle program signal source e -> elm
@fix
2015-12-04 13:49:57 -05:00
Chris Michael 605823be21 elementary: Don't call ecore_wl2_shutdown unless we have a display
During _elm_config_sub_shutdown we were explicitly calling
ecore_wl2_shutdown. We should only be doing this if we are actually in
a wayland environment.

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2015-12-04 10:48:45 -05:00
Vincent Torri 7728ab47c0 cursor: add cursor support on Windows.
@feature

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:44:16 -08:00
Vincent Torri 333ff6d481 win32: call ecore_win32 shutdown as part of the shutdown subsystem.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:38:11 -08:00
Vincent Torri 8042bc82d3 cnp: add Copy & Paste support for Windows
It needs the clipboard management in Ecore_Win32

@feature

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:36:50 -08:00
Jean Guyomarc'h aa93516e5f elementary_test: fix memory leak
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:06:37 -08:00
Jean Guyomarc'h 469f90bc67 priv: centralized and safe inclusion of Ecore_Cocoa.h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:06:16 -08:00
Jean Guyomarc'h 9c8dcc5b7d win: add Cocoa support for elm_win_window_id_get() API
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:05:58 -08:00
Jean Guyomarc'h 8c8e811b29 win: use EINA_UNUSED instead of void casting.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:04:58 -08:00
Jean Guyomarc'h 1ef5874225 cnp: cocoa support for copy and paste (text only).
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:04:42 -08:00
Jean Guyomarc'h 20e7090f0f cursor: add support for Cocoa system cursors.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:04:28 -08:00
Jean Guyomarc'h 073beec9ff config: add error messages when profile or config could not be saved.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:04:10 -08:00
Nicolas Aguirre 7408bc7bfa cocoa: call ecore_cocoa_init as part of the init process.
This mimic what x and wayland do. This is need if you want
that ecore_event was inited early.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:03:55 -08:00
Chris Michael bc6184479f elementary: Remove misuse of EINA_UNUSED
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 10:22:37 -05:00
Chris Michael 436e9e91f8 elementary: Port elementary config code to use Ecore_Wl2 library
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 10:22:37 -05:00
Chris Michael 7519a39736 elementary: Port elementary copy/paste code to use Ecore_Wl2 library
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 10:22:37 -05:00
Chris Michael 7e1ca56236 elementary: Port elementary window code to use Ecore_Wl2
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 10:22:37 -05:00
Chris Michael 67033e85ba elementary: Port elementary cursor code to use ecore_wl2 library
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 10:22:37 -05:00
Chris Michael b3af99a3ea elementary: Include header for Ecore_Wl2 and add external display
variable

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 10:22:37 -05:00
Chris Michael d33b27af9e elementary: Use ecore_wl2 library for elementary
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 10:22:37 -05:00
Daniel Hirt 929cb0ad45 Entry: add "selection,reset" state
This change will hide the cursor once there is an actual change, and
there is a difference between the selection cursors. If there is no
difference, then it is better to show the cursor again.
2015-12-03 10:10:47 +02:00
woochan lee 70a888cc03 spinner: prevent scrolling when longpress timer enabled.
Summary:
Spinner on scroller case.

Scroll should be freeze when spinner button in long press state.
If not, the scolling will be started after delete longpress timer.

Like a other widgets, scroll not allowing is correct action for this.

@fix

Reviewers: jaehwan, Hermet, eagleeye, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-02 14:56:40 -08:00
Shilpa Singh e69eeef28c elm: set language to edje when elm_language_set is called.
Summary:
Application set language using elm_language_set and when elm_language_set is called
language should be set to edje as well

@fix

Test Plan:
Call elm_language_set and check language should be set to
edje as well.

Reviewers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-02 14:55:12 -08:00
Lukasz Stanislawski ea4f743551 menu: enhance accessibility support 2015-12-02 12:04:56 +01:00
Lukasz Stanislawski ce286ab6e1 box: skip box in accessibility tree by default 2015-12-02 11:56:45 +01:00