Commit Graph

28132 Commits

Author SHA1 Message Date
Shinwoo Kim 448cd69ab7 eina : check whether the file exists or not, before memory allocation of Eina_Module
Summary:
Please refer to https://phab.enlightenment.org/D1200

Reviewers: raster, jpeg, zmike, cedric

Subscribers: cedric, seoz

Differential Revision: https://phab.enlightenment.org/D1334
2014-09-30 16:46:52 +02:00
Cedric BAIL 5d30e35e03 gitignore: don't track generated files. 2014-09-30 16:25:46 +02:00
Cedric BAIL 59501027c0 evas: fix gl_context to correctly match window description after a change.
This was affecting use of GL backend when having a transparent window. It
is actually a fix for a bug reported by Thanatermesis. It has been inspired
by D1229.

To reproduce the issue just do ELM_ACCEL=gl elementary_test -to "Icon transparent".
2014-09-30 16:25:46 +02:00
Tom Hacohen bc6b6aa457 Eo: Better define the relationship of eo_add/del/ref/unref.
Now it's more clear and consistent. This commit complements the previous
eo_add commit (a7560dbc61).

Now eo_add should be matched with eo_del
eo_ref with eo_unref
eo_add_ref with eo_unref + eo_del

Essentially, the change is that if you have the ref to an object, you
need to unref it. Thus making ref/unref unneeded for most people who use
things (carefully) in c. If however, you would like to delete an object
previously created by you, you should eo_del (counter-part to eo_add).

It's still recommended you ref/unref when dealing with objects in
scopes, as you can't know when an object might just get deleted as a
by-product of another call.

This fixes an issue found by JackDanielZ.
2014-09-30 14:53:09 +01:00
Chris Michael 1175bb47b9 eeze: Add ifdef trap for older udev version
Summary: This adds an ifdef trap for older versions of libudev which
do not provide udev_device_set_sysattr_value function. This fixes
broken EFL compile with older versions of udev.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-30 08:38:57 -04:00
Chris Michael 5eac1ebf28 eeze: Add configure check for older libudev version
Summary: This adds a check in configure to test the libudev version >
199. Older versions of udev do not provide
udev_device_set_sysattr_value function and thus compile of efl would
break with older versions.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-30 08:37:41 -04:00
Jihoon Kim d059e1af95 ecore_imf/ibus: support delete-surrounding-text signal 2014-09-30 10:47:26 +09:00
Jihoon Kim dd94425ecc ecore_imf/wayland: fix memory leak occured after getting surrounding text 2014-09-30 09:32:39 +09:00
Felipe Magno de Almeida f9e862e52e [cxx] Reenable C++ by default as all outstanding fixes are applied
The C++ binding was disabled because of changes in Eolian. Since we're
already applied fixes on the C++ binding for the changes in the Eolian
API the C++ binding is to be enabled by-default.
2014-09-29 18:00:15 -03:00
Amitesh Singh be7a64b6e3 eina: Eina_Inlist - remove obvious if() check.
Reviewers: seoz, raster, cedric

Reviewed By: cedric

Subscribers: cedric, seoz

Differential Revision: https://phab.enlightenment.org/D1503
2014-09-29 20:20:18 +02:00
Amitesh Singh d25747c7f8 eina: Eina_List - remove obvious if() check.
Summary:
if (cmp == 0) - in false branch, cmp can not be equal to 0
else if (cmp < 0) - in false branch, cmp is atleast 1.
else if (cmp > 0) - it is abvious that cmp > 0.

Reviewers: cedric, seoz, raster

Subscribers: cedric, seoz

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-29 20:20:17 +02:00
Savio Sena b551593087 eo-cxx: s/eo_add/eo_add_ref/ in efl::eo::inherit. 2014-09-29 15:16:07 -03:00
vivek 4125f1cef9 ecore-drm: Added private function to cleanup backlight structure
Summary:
Added _ecore_drm_output_backlight_shutdown function to clean up
the resources related to backlight structure and initialized backlight structure
in _ecore_drm_output_create.

Signed-off-by: vivek <vivek.ellur@samsung.com>

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1501
2014-09-29 09:28:58 -04:00
Srivardhan Hebbar a79adfcc69 ecore_wayland: Created test suit for ecore_wayland.
Summary:
Created test suit for ecore_wayland and added test case for ecore_wl_init and ecore_wl_shutdown.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1498
2014-09-29 09:20:05 -04:00
vivek 9b84f98e27 ecore-drm: Added internal function to set output brightness level
Summary:
Added _ecore_drm_output_brightness_set function to set brightness level

Signed-off-by: vivek <vivek.ellur@samsung.com>

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1499
2014-09-29 08:52:39 -04:00
Daniel Kolesa 73bf20fe4e elua: properly register the eo class into the system in generated code 2014-09-29 12:40:50 +01:00
Daniel Kolesa afc5dd02f9 elua: update lualian generation code to potentially deal with cycles 2014-09-29 11:52:50 +01:00
Sebastian Dransfeld b624345bbd efreet: improve messages 2014-09-29 09:39:38 +02:00
Sebastian Dransfeld d8aead7ab8 efreet: remove dead code 2014-09-29 09:39:38 +02:00
Sebastian Dransfeld f60fdced44 efreet: tab to spaces 2014-09-29 09:39:38 +02:00
Vincent Torri 6c2ec01d39 Evil: add strptime()
@feature
2014-09-28 12:29:54 -04:00
Vincent Torri 0af6fcbc2a Evil: fix fcntl() when used with F_SETFL
@fix
2014-09-28 12:29:54 -04:00
Carsten Haitzler 60bc2cc1ce ecore vsync - fix up dual nvidia + dri/drm driver discovery
this fixes drm vsync discovery when you have both drm and nvidia
drivers seemingly present in /dev but the intel drivers are the dri
ones and nvidiactl is there (who knows if it's used). keep the nvidia
drivers working too with a name/desc check on drm driver as the drm
driver is in fact nvidia's own and set flags appropriately

@fix
2014-09-28 11:34:40 +09:00
Savio Sena e9e2344982 eolian-cxx: Replace old eo_add with eo_add_ref.
eo_add_ref behaves like the old eo_add.
2014-09-26 18:56:41 -03:00
vivek 4d54525d47 ecore-drm: Fix _device_add function to check input
Summary:
Add condition to check if input is NULL in _device_add function

@fix

Signed-off-by: vivek <vivek.ellur@samsung.com>

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1493
2014-09-26 09:04:53 -04:00
vivek 4483ef20d3 eeze: Added API to get sysattr list of a device
Summary:
Added eeze_udev_syspath_get_sysattr_list API to get
list of sysattr of a device. It returns Eina list containing list
of system attributes.

Signed-off-by: vivek <vivek.ellur@samsung.com>

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1492
2014-09-26 08:38:36 -04:00
Daniel Kolesa 6850f9bb85 elua: begin work on new style constructors 2014-09-26 13:24:58 +01:00
Daniel Hirt a4d716d1c0 Evas Textblock: Fix bad empty line add on wrapping
Summary:
In some cases of char or word wrapping, an empty line might be
accidentally added at the end of the paragraph. That line contains
no items. Of course, this line should not exist.
One outcome of this is that it causes wrong height values of the
paragraph, when the finalizing code uses the
_layout_last_line_max_descent_adjust_calc, which in turn
looks at that empty line to calculate the descent values.

@fix

Test Plan: Char-wrap and word-wrap tests to test suite included in this revision.

Reviewers: tasn

Subscribers: JackDanielZ, cedric

Projects: #efl

Differential Revision: https://phab.enlightenment.org/D1444
2014-09-26 13:20:14 +01:00
Daniel Kolesa 3c021572db elua: remove ldouble from lualian 2014-09-26 13:16:13 +01:00
Daniel Kolesa 356e36922c elua: lualian event cleanup 2014-09-26 13:11:05 +01:00
Daniel Kolesa 05d4805f39 elua: remove Constructor/Default_Constructor from lualian (obsolete) 2014-09-26 13:10:03 +01:00
vivek f15f875fa9 eeze: Added API to set sysattr values
Summary:
Added eeze_udev_set_sysattr API to set value of various
system attributes of a device

Signed-off-by: vivek <vivek.ellur@samsung.com>

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1491
2014-09-26 08:06:05 -04:00
Srivardhan Hebbar 96f53fc69d ecore_wayland: Added cursor_name to Ecore_Wl_Window.
Summary:
Added cursor_name to Ecore_Wl_Window so that we can compare with input cursor name and avoid unnecessary cursor set calls to wayland.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1481
2014-09-26 08:02:25 -04:00
Savio Sena 684617cfdc eo-cxx: Get rid of eo_add_custom. 2014-09-25 16:11:03 -03:00
Savio Sena 13de9d089c eolian-cxx: Get rid of class_prefix and related code.
This patch fixes the use of eolian_function_full_c_name_get API also.
2014-09-25 16:09:40 -03:00
Tom Hacohen a7560dbc61 Eo: Change eo_add/del/unref behaviour.
Before this change eo_add() used to create an object with 1 ref, and if
the object had a parent, a second ref.
Now, eo_add() always returns an object with 1 ref, and eo_add_ref()
    preserves the old behaviour (for bindings).

eo_unref now un-parents if refcount is 0, and eo_del() is an alias for
eo_unref (will change to be a way to ensure an object is dead and goes
        to zombie-land even if still refed).
2014-09-25 17:38:45 +01:00
Chris Michael 2bc462f55b ecore-drm: Don't crash if we get no devpath from Eeze
Summary: During a device remove event, we should check that Eeze has
returned us a devpath to remove else we segfault when trying to strcmp
the device path later during actual remove.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-25 12:04:23 -04:00
Chris Michael 44e2cde623 ecore-drm: Add some more debug information if a device fails to open
Summary: This is mainly for debugging, but lets print out a bit more
information if a device fails to open.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-25 11:46:46 -04:00
Chris Michael b81cafcd7b ecore-drm: Fix adding an input device when we don't get the devpath
from Eeze.

Summary: If we fail to get a devpath from Eeze for an input device,
then we need to error out gracefully and not add a failed input device.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-09-25 11:36:24 -04:00
Daniel Kolesa fc40591f11 elua: update eolian bindings and generator 2014-09-25 15:53:42 +01:00
Daniel Kolesa 8631212e45 eolian: remove the need to pass prefix to eolian_function_full_c_name_get 2014-09-25 15:37:18 +01:00
Daniel Kolesa 13a9650491 eolian: properly replace commas in event_c_name_get and cleanup generator 2014-09-25 15:09:36 +01:00
Daniel Kolesa a1552fe6a9 eolian: new API: eolian_event_c_name_get 2014-09-25 14:58:53 +01:00
Sebastian Dransfeld 88843b7377 efreet: TODO++ 2014-09-25 13:54:13 +02:00
Tom Hacohen 6846978ebd Eo: Get rid of eo_add_custom.
We decided to deprecate this one in favour of setting thing in the
construction between the constructor and the finalizer.
2014-09-25 10:30:56 +01:00
Sebastian Dransfeld 8204212f36 efreet: Fix leak
When doing efreet_desktop_command_append_multiple we add all files from
command, whilst still looping command->files. So the command was created
with all files for all files.

Set l to NULL, since we parse all elements in command->files in
efreet_desktop_command_append_multiple to break the loop.
2014-09-25 09:24:27 +02:00
Sebastian Dransfeld 8e740ea765 efreet: remove debug fprintf 2014-09-25 09:22:07 +02:00
Sebastian Dransfeld 0f4f0a7e5e efreet: Fix leak on error
If we encountered an error, special hashes in internal desktop struct
wasn't free'd.
2014-09-25 09:01:12 +02:00
Sebastian Dransfeld 793fd5e847 efreet: Implement fields added by desktop spec 1.1 2014-09-25 08:47:45 +02:00
Sebastian Dransfeld c700192736 efreet: Accept both only_show_in and not_show_in
In one file it is allowed with both OnlyShowIn and NotShowIn, and it is
the user who has to ensure that these lists don' clash.

@fix
2014-09-25 08:47:45 +02:00