Commit Graph

147 Commits

Author SHA1 Message Date
Jaeun Choi 62f95be91c elm_image: return EINA_FALSE if the data source is NULL in elm_image_memfile_set
@fix
2015-04-10 18:31:58 +09:00
Jean-Philippe Andre fc2980cead elm_image: Fix potential race conditions in async mode
Without any locking or thread-safe mechanism, the previous implementation
would have failed as soon as too many file_set() happened on the same
object. Indeed, file_set() can happen while the async open thread is
running. I shouldn't have blindly listened to Cedric :P
2015-04-10 16:46:56 +09:00
Carsten Haitzler ddfa4cb977 elm image - stop repeating events by default - wrong
why have elm image repeat events always (and unable to stop it)? this
is neither useful nor convenient. it's just painful. it makes images
not behave like prety much every object. they already are set up to
capture events - then do it normally.

@fix
2015-04-08 09:54:25 +09:00
Jean-Philippe Andre 8a801c995f elm_image: Simplify file_get 2015-04-06 15:54:50 +09:00
Jean-Philippe Andre 4a0202b40d elm_image: Use Efl.File interface for mmap_set 2015-04-06 15:54:33 +09:00
Jean-Philippe Andre 3e7aff9501 elm_image: Implement async file open
Summary: This implements the interface Efl.File.async.{set,get,wait}

Reviewers: cedric, raster, tasn

Differential Revision: https://phab.enlightenment.org/D2262
2015-04-06 15:54:32 +09:00
Daniel Juyung Seo 53fafc464e image: Initialize parameters in case of it just returns without assigning any value.
In this way, callers does not need to consider initializing the
parameters for their local variables.
2015-03-16 23:19:20 +09:00
Hosang Kim 74b6b65426 elm_image: Fix to initialize variable.
Summary: If _elm_image_object_size_get fails, w and h have garbage value.

Test Plan: no

Reviewers: seoz, Hermet, cedric, raster

Differential Revision: https://phab.enlightenment.org/D2163
2015-03-16 21:18:28 +09:00
kabeer khan 97cefca273 elm_image: changed orient_set code to use evas_object_image_orient_set API
Summary:
evas_image_orient_set is a newly added API to set orientation of evas image.
Using this API to set orientation of image widget.
Also removed Elm_Image_Orient enums and replaced it with Evas_Image_Orient enums.

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: raster, seoz, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-20 14:31:12 +01:00
Youngbok Shin 10fae20d33 elm_image: fix elm_image_memfile_set API fail when elm_image widget is not visible.
Summary:
It could success only when the widget was visible.
The API must return EINA_TRUE if buffer and size has no problem, not visiblity of widget.
@fix

Reviewers: Hermet, woohyun, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-03 10:17:50 +01:00
Stefan Schmidt 26131fedc4 elm_image: Add missing semi-colon to terminate line.
No compiler warning for this because the macro was terminated with it.
It still looks wrong without it and does no harm.
2015-01-23 12:45:33 +01:00
Stefan Schmidt 969f9c1970 elm_image: Fix memory leak in GETDAT macro.
Free data2 on error path.

CID: 1265609, 1265610, 1265611, 1265612
2015-01-23 12:43:49 +01:00
Mike Blumenkrantz 0db8a01ab1 image now implements edje object size functions
Edje.Object.size_min.get;
      Edje.Object.size_max.get;
      Edje.Object.size_min_calc;
      Edje.Object.calc_force;

fixes all image-in-edje sizing issues/errors
2015-01-21 15:17:00 -05:00
Mike Blumenkrantz af7cfe1d6b image animation functions now work as expected for edje images 2015-01-21 15:17:00 -05:00
Carsten Haitzler a89f3d267c elm image - fix image rotation in non-common cases
this fixes d6f4040d0c62c220f2339d2a57126fde43e85e19 for the non-common
path that normalizes then applies new orientation

@fix
2015-01-13 08:53:14 +09:00
Carsten Haitzler 97e625c68c elm - elm image orientation api fix - major bug in implementation
@fix

The elm image orient_set api looks like it is a state, and it is
documented to SET the orietnation, but the code actually DOEs that
orientation when you set it. so docs and api name didnt match
functionality at all. this was bad an an oversight. you didn't notice
until you set orientation multiple times to an image. this fixes the
implementation to be as documented - a state that is applied and
remains that way until set to something else. setting to the same
orientation has no efect as with color, size, etc. etc. in evas.

you could look on this as an api break, but then either the docs
change AND api name changes to match the code, or code changes to
match the docs. we don't keep bug compatibility in efl and in this
case i'm making the call to break the behavior of a  function as it
was broken already with respect to name and docs.
2015-01-12 11:31:43 +09:00
Jee-Yong Um 4ade3552db elm_image: Fixed to have exact size using elm_image_fill_outside_set()
Summary:
There was a problem that image is stretched over its size
when elm_image_fill_outside_set() is applied.
This patch fixed that.

@fix

Reviewers: Hermet

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D1854
2015-01-08 15:47:24 +09:00
Mike Blumenkrantz 799171a0c8 elm_image now inherits edje signal emit
@feature
2015-01-06 15:19:26 -05:00
jiin.moon c3397d302b image: fix clipped image issue if x or y is less than zero
Summary:
After applying clipping patch about image on outside,
the width or height of the image be decreased
if x or y of an image is less than zero.
The way to calculate width/height has changed.

This fixes a side effect added in 2839881f37ea85b3469d8fd37cfaa4f9d67458fa

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1810
2014-12-24 14:10:05 +09:00
Daniel Juyung Seo 82eb0a210c image: Fix formatting for the latest commit 283988. 2014-12-19 02:36:16 +09:00
jiin.moon fe3bacf30a elm/image: Fix an unclipped issue about image bigger than object size
Summary:
When resizes an image
if "fill_inside" and "aspect_fixed" in Elm_Image_Data struct are "TRUE",
extra width or height go outside of the object area.
The width or height on outside will be clipped.
@fix

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1794
2014-12-18 17:53:44 +09:00
Lukasz Stanislawski 2ca1f8a75a atspi: properly include at-spi headers.
Summary:
Change requested by TAsn. Previuosly AT-SPI headers were kept private
and included directly into elementary source code. From now on,
AT-SPI headers can be included from Elementary.h public header, however
will be marked as beta APIs.

Commit includes following changes:
* include all atspi headers into new elm_interfaces.h header.
* marking all at-spi interfaces methods/properties as @protected.
* wrap all common headers with EFL_BETA_API_SUPPORT.
* make some common APIs visible in lib, by adding EAPI attribute
  (if someone decides to use beta APIs).

Test Plan: out-off tree build with gcc, g++

Reviewers: tasn

Reviewed By: tasn

Subscribers: seoz, q66, kuuko

Maniphest Tasks: T1721

Differential Revision: https://phab.enlightenment.org/D1528
2014-10-17 16:57:26 +01:00
Mike Blumenkrantz 8391f8a860 elm_image no longer crashes when deleting the image from a download callback 2014-10-09 16:52:17 -04:00
Tom Hacohen 7629c147eb Eo related: Change according to recent changes in eo_add().
For more info check out a7560dbc61 in
the EFL tree.
2014-09-25 17:39:34 +01:00
Tom Hacohen 307e03c1b1 Image: Use image interface. 2014-08-21 11:04:28 +01:00
Tom Hacohen 4cc392ce5e Image: Use file interface. 2014-08-21 11:04:28 +01:00
Lukasz Stanislawski 09b9ef0bc0 atspi: expose more actions through atspi bus.
Summary:
Main purpose of exposing widget actions and keyboard shortcuts
is to allow accessibility clients to implement alternative methods
of GUI navigation.

Reviewers: z.kosinski

Reviewed By: z.kosinski

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1227
2014-07-25 11:58:16 +02:00
Lukasz Stanislawski f9ad7f921a atspi: expose elm_image "activate" action through d-bus 2014-07-15 16:45:55 +02:00
Yakov Goldberg 4f0bc40b91 image: fix segv in elm_image_file_set() 2014-07-08 16:34:23 +03:00
Zbigniew Kosinski 9ce23f0004 atspi:Set roles for widgets
Reviewers: stanluk, m.jagiello, raster

Differential Revision: https://phab.enlightenment.org/D930
2014-06-11 11:07:16 +09:00
Tom Hacohen efa41c7d75 Elm: Update code to use the new class names generated by eolian. 2014-06-03 11:54:44 +01:00
Lukasz Stanislawski f4f2bbdbcd atspi: add AtspiImage interface support.
Summary: Sample implementation for elm_image added.

Reviewers: raster, seoz

Differential Revision: https://phab.enlightenment.org/D794
2014-05-27 16:23:13 +09:00
ChunEon Park a9c718361a image - null checking.
If the rotated image exceeds image maximum size, the data would be invalid.
2014-05-21 13:24:32 +09:00
Daniel Juyung Seo 8ffbf246f4 elm: fixed trivial formattings.
Just found them while reading codes.
2014-05-10 23:44:27 +09:00
ChunEon Park 5ab6a7739f widgets - don't handle the events(key,mouse) if the object is disabled.
we can prevent to handle the widget events from the widget infra,
if the object is disabled.

conceptually, disabled object should not be interacted to user input(key, mouse)
2014-04-16 10:59:43 +09:00
Jaeun Choi 3449c44221 image: apply key binding
Summary: This patch applies key binding to elm_image.

Test Plan: None

Reviewers: Hermet, raster

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D732
2014-04-15 14:49:35 +09:00
Tom Hacohen 687762a344 image: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Daniel Zaoui fceca47f28 Eolian: Integration of Image 2014-03-23 14:17:38 +02:00
Daniel Zaoui e2206a1a22 Eolian: Integration of Elm Widget 2014-03-17 09:03:56 +02:00
Daniel Juyung Seo 5f0ca660b4 elm: Unified the usage of strncmp.
- Use strlen instead of sizeof(x) - 1 for string length calculation.
- Use !strncmp for null check.
2014-01-27 02:07:44 +09:00
Jihoon Kim 54ec084e76 fix some typos in comment and description 2014-01-22 13:20:15 +09:00
Daniel Juyung Seo 5353aa863c elm: Removed unnecessary null check for free. 2014-01-22 11:13:11 +09:00
Daniel Juyung Seo db5fe2581d elm: Removed unnecessary null check for evas_object_del. 2014-01-22 10:54:52 +09:00
Daniel Juyung Seo 43533a2fb9 elm: Removed unnecessary null check for eina_stringshare_del. 2014-01-22 10:54:45 +09:00
Daniel Juyung Seo 68eca6d62e url: Added underscore(_) to elm internal functions, elm_url_xxx.
- _elm_url_download, _elm_url_cancel, _elm_url_get
- other internal functions in elm_priv.h also have same prefix.
2014-01-21 23:23:37 +09:00
Daniel Juyung Seo a4f3074f9c elm: Removed unnecessary null check for ecore_timer_del,
ecore_animator_del, and ecore_job_del.

As all efl public free apis get null as valid parameter, we do not need
to check null. I also removed some null check for other free apis which
were right next to timer/animator/job del. After this job code got
cleaner.
2014-01-21 23:18:16 +09:00
Yakov Goldberg 3379c124df all widgets: change Eo API for "elm_widget_theme()" to "theme_apply"
There are elm_widget_theme/theme_set/theme_get functions.
    In Eolian these functions will be described as "theme" method and
    "theme" property. There is clash here.
    So add suffix "_apply" to Eo API for "elm_widget_theme".
2014-01-21 11:08:29 +02:00
Carsten Haitzler d90886c992 fix alloc to use right sizeof type in elm_image
this should fix CID 1132738 - not a real issue as it still was * 4 but
more obvious and clean after fix
2014-01-09 15:04:46 +09:00
Daniel Juyung Seo fd5c046dfe elm: Changed __UNUSED__ to EINA_UNUSED. 2014-01-06 23:33:57 +09:00
Daniel Juyung Seo f232ff14be image: Remove unnecessary parameter for elm_obj_image_editable_set.
This parameter was introduced as an internal funciton parameter long ago and migrated to eo as it was.
But this parameter is not needed. obj pointer is already there.

Thanks to Yakov for the report.
2014-01-02 09:21:16 +09:00