Commit Graph

54327 Commits

Author SHA1 Message Date
Amitesh Singh 02e9af50a1 Efl.Ui.Image.Zoomable: rename data get macros 2017-06-23 09:15:21 +09:00
Amitesh Singh b7e55a288e Efl.Ui.Slider: implement slider internal part class 2017-06-22 18:50:02 +09:00
Jean-Philippe Andre 56a74238d1 edje: Improve error report with efl_part misuse
This improves a rare error message when a function is called on an
efl_part() that does not implement it. Example: calling a swallow
function on a non-swallow part.

This isn't entirely fool-proof but should already help quite a bit.

This also changes how the efl_part proxies are stored: the variable
is not reset to NULL every time we use it, instead we check it in
the del intercept.

Note: _part_reuse_error() can not be enabled inside
_internal_proxy_get because there are valid use cases such as:

  func1(efl_part(obj, part), func2(efl_part(obj, part), ...), ...)

Here we use two efl_part() at the same time, on the same object,
but we haven't entered "func1" yet when we are reaching the second
call to efl_part(). This is completely valid and there is pretty
much no way to detect this.

I think I will improve this later with a core function on
Efl.Object like "debug_string".

Ref T5584
2017-06-22 16:16:21 +09:00
Jean-Philippe Andre 5a98f78ce8 eo: Improve invalid EO ID error message
This focus on the domain and ID bits is very confusing. Let's
keep it at the end of the message, and also try to guess whether
the object may have been deleted or simply doesn't belong to the
current thread.
2017-06-22 13:19:23 +09:00
Jean-Philippe Andre eaf21eee14 evas: Lower log level for animator tick cbs
This doesn't deserve to be INF, it's really low-level debug
information.
2017-06-22 11:51:40 +09:00
Amitesh Singh 1775597671 Efl.Ui.Slider: move legacy APIs at the bottom of the file. 2017-06-22 11:14:24 +09:00
Stefan Schmidt 50b8fa08e5 eina: make sure the eina_debug_private.h header is included into dist
This has been missing in the dist tarball and failed distcheck.
2017-06-21 18:17:31 +02:00
Daniel Hirt 070171c7bb Canvas text: set 'changed' on the object when text is inserted
This fixes missed updates with the "Ui.Text" when text was inserted.
2017-06-21 11:29:34 +03:00
Daniel Hirt f3fff0c687 Ui text: defer region show to job
This moves the region-show logic to the proper update job where
cursors are also updated.
2017-06-21 11:29:34 +03:00
Daniel Hirt ec02b5f3fb Ui text: fix cursor api call
This widget doesn't have a text part.
2017-06-21 11:29:34 +03:00
Daniel Hirt 40e97c6589 Canvas layout: fix part text cursor geometry port
Forgot to consider the edje object's offset when porting the code
to efl_part (see 98dad1a52b).
This fixes a few bugs, one of which is region_show for the scrollable
mode.
2017-06-21 10:50:09 +03:00
Jean-Philippe Andre 4ca83755ed slider: Fix slider legacy API
See 4e79dd0f02

That patch was absurd. Do not change the use of a legacy stable
API when you change an EO API. If you need to do that then there
is very clearly a problem in the patch.

This reverts the test case to use the legacy API (which in turn
calls the EO API anyway so both are tested).

Fixes T5587
2017-06-21 15:40:48 +09:00
Chris Michael 52f35fde0c ecore-wl2: Fix issue(s) of setting wrong event device
As we may have both a pointer and touch device on a given system, we
need to accurately set event->device when sending mouse move, wheel,
down, and up events. Previous code here would always try to find a
mouse device first which could potentially end up setting the wrong
event->device (if a touch device also existed).

This patch fixes the issue by comparing the window used for the event
to our focused windows (either mouse or touch) and setting the proper
event->device based on that.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-06-20 11:59:36 -04:00
Vincent Torri fb6530ca2e examples/elm: Use POSIX threads on Windows 2017-06-20 14:34:52 +09:00
Vincent Torri aa17e28e5a examples/net: Fix compilation on Windows 2017-06-20 14:34:52 +09:00
Vincent Torri d03780fdf9 examples/net: Fix compilation on Windows (no getline)
Thnaks @vtorri who authored this patch
2017-06-20 14:18:36 +09:00
Jean-Philippe Andre 6e33145332 examples/net: Use PRIi64 where appropriate
Fixes a warning on Windows. Thanks @vtorri
2017-06-20 14:16:40 +09:00
Jean-Philippe Andre 98b1309c6f cxx examples: Fix button example 00
Text part API has changed.
2017-06-20 14:09:57 +09:00
Sanjeev BA 0e21b4d280 Documentation for elm_code_widget_selection.
Reviewers: jpeg, ajwillia.ms

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2017-06-19 14:08:54 -07:00
Cedric BAIL 5c16d4e15b evas: batman use legacy API only. 2017-06-19 14:08:54 -07:00
smohanty d6bd5d52fc evas/vg: Fixed the build issue in evas_vg_simple example
Reviewers: jpeg, vtorri

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2017-06-19 14:08:54 -07:00
Youngbok Shin 12787d6665 evas: fix version info for evas_language_direction_get
Summary:
The patch was created for EFL 1.18. But, it was merged for EFL 1.20.
@fix

Test Plan: N/A

Reviewers: herdsman, jpeg, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2017-06-19 14:08:54 -07:00
Lauro Moura bcd1bea56d js: Update after Eolian_Unit API change 2017-06-19 17:36:50 -03:00
Lauro Moura c4558e2910 js: Update after many elm/efl.ui changes
- Win.Standard
- Photocam to Image.Zoomable rename
- Widget namespace changes (elm -> efl.ui)
- setText/setPartText changes (see 3eb649b18)
2017-06-19 17:36:41 -03:00
Daniel Hirt a5e980fbbc Evas text: fix test with Oriya script
We are not providing a font to test that specific script.
Commenting-out this test until we can find one with proper license.
This fixes the test suite fail case.

@fix
2017-06-19 10:15:05 +03:00
Daniel Hirt 108bf99564 Efl text cursor: move around a few definitions
Need to handle this with special care as Efl.Text.Cursor is used in
some functions that are specific to Efl.Canvas.Text, was well as
functions in Efl.Text.Cursor interface.
2017-06-19 10:15:05 +03:00
Daniel Hirt d0da405620 Efl text format: change "halign" and "valign" to use enums
Value-based alignment (e.g. 0.5, 0.3 etc) isn't very practical.
Horizontal and vertical alignments will be assigned with enums
"left", "center", "right", "auto", "locale", for horizontal alignment,
and "top", "center" and "bottom" for vertical alignment.

This changes the previously added "halign" and "valign" properties.
2017-06-19 10:15:05 +03:00
Daniel Hirt 6033323e5c Canvas text: fix default format feature
Now that we can set the default parameters, there's no need to push
another one when having a style tag.

This fixes T5585.
2017-06-19 10:15:05 +03:00
Woochan Lee d6140f3854 test_multibuttonentry: Fix name of smart event for expand state changed.
Summary: There is no name of event for "shrink,state,changed"

Reviewers: jpeg, cedric, woohyun

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4969
2017-06-19 15:14:20 +09:00
Woochan Lee 3805544a32 multibuttonentry: Fix expand state changed callback called many times.
Summary:
The expand state changed callback has been called when layout property changed and other reason.
Even expand state is not changed.

So we need to check the current view state to call expand changed callback.
(We can't prevent calling the _shrink_mode_set() function. It needs to call the re-arrange internal items.)

Test Plan:
elemenatay_test - multibuttonentry.

Check the shrink, expand state.

Reviewers: jpeg, cedric, woohyun

Reviewed By: jpeg

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4970
2017-06-19 15:14:20 +09:00
Bryce Harrington 08f04b1496 ecore_evas: Document remaining new/get calls for misc. backends
Summary:
This completes the documentation for Ecore_Evas for all (non-deprecated)
APIs.

Note that ecore_evas_software_16_ddraw_new, ecore_evas_direct3d_new,
ecore_evas_gl_glew_new, and ecore_evas_sdl16_new are left undocumented
because while they're not declared as deprecated their implementations
are either missing or marked as obsolete or legacy.  I suspect a few of
the remaining routines are likely also obsolete but I added
documentation anyway.

Reviewers: cedric

Subscribers: jpeg

Differential Revision: https://phab.enlightenment.org/D4972
2017-06-19 15:14:20 +09:00
Jeeyong Um 864e854fa9 example: Add missing definition to invoke EO API 2017-06-19 13:19:30 +09:00
Felipe Magno de Almeida c40ecb6282 eolian-cxx: Add constructor with default argument
Fixes compilation error in clang. T5588
2017-06-18 20:02:10 -03:00
Andy Williams 800ac197f8 elementary: fix typos and warnings in my menu changes 2017-06-18 16:17:09 +01:00
Lauro Moura 1634c14169 eolian: function pointers
First steps toward explicit function pointer support in eolian.

To declare a function pointer type, use the following syntax, similar to
a regular eolian method declaration.

function FunctionName {
  params {
    ...
  }
  return: Return type
}
2017-06-18 12:09:22 -03:00
Felipe Magno de Almeida 0fcee227aa eolian-cxx: Fix C++ generation errors with handle opaque types 2017-06-18 11:31:43 -03:00
Andy Williams 81d01cfbd0 elementary: Balance menu operations with an open method 2017-06-17 18:00:34 +01:00
Andy Williams 53065309b8 elm_code: Fix select-all column calculations 2017-06-17 17:59:40 +01:00
Sanjeev BA ed201d7f30 Add support for select all with ctrl-a
Summary: Signed-off-by: Sanjeev BA <iamsanjeev@gmail.com>

Test Plan: Test with edi.

Reviewers: ajwillia.ms, jpeg, cedric

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D4971
2017-06-17 17:42:18 +01:00
Mike Blumenkrantz 4bf13c5c0c evas: add null checks for textblock stuff
this prevents a crash when starting verne but should be reverted when
a more appropriate fix can be put in place

ref T5585
2017-06-16 15:01:42 -04:00
Mike Blumenkrantz a4fcc0595e theme: set NOGRAB on all border event rects when e22 signal received
these are used in signal bindings and it's possible that a "resize" rect
could be set to trigger a move operation
2017-06-16 14:03:27 -04:00
Mike Blumenkrantz c408215a24 build: add flag to disable elua
build times are already insanely long, every little bit helps

@feature
2017-06-16 13:31:29 -04:00
Jean-Philippe Andre dc9ebdd706 evas: Always send mouse,move after mouse,in to objects
Fixes T5582
2017-06-16 12:49:33 -04:00
Mike Blumenkrantz a3d0af0069 ecore-drm2: add ecore_drm2_output_subpixel_get()
@feature
2017-06-16 12:23:08 -04:00
Mike Blumenkrantz ad0aae8f8d elput: remove keymap mmap+event
this was originally intended to allow some code to be moved out of the
compositor, but the idea turned out to be unfeasible since multiple
display backends need to be supported and not all related components
will provide similar functionality
2017-06-16 12:23:08 -04:00
Mike Blumenkrantz cad9d8fb55 evas: store current pointer state to dummy seat data if seat detaches
ensure the pointer state is maintained when devices are removed and added
2017-06-16 12:23:08 -04:00
Mike Blumenkrantz e3126bd23f evas: create dummy seat data for wl/drm outputs, store some pointer data
with async device init, it's possible for mouse in/out/move events to be added
by an application before the pointer devices are created. these are independent
of devices, so store the state and apply when pointer devices are added

fix T5531
2017-06-16 12:23:08 -04:00
Mike Blumenkrantz 7ca2da0f5d evas: change _evas_pointer_data_add() to return created pointer data 2017-06-16 12:23:08 -04:00
Mike Blumenkrantz 8dd12d2cfa evas: redo Evas_Pointer_Data/Seat to be inlist-based
simplify many internal lookups of pointer data and make hierarchy reflect
logical device hierarchy
2017-06-16 12:23:07 -04:00
Mike Blumenkrantz db06108f0d ecore-evas: block buffer canvas events during deletion
internal evas is destroyed before engine delete function is called,
so do not refeed events received during this time

@fix
2017-06-16 12:23:07 -04:00