Commit Graph

11230 Commits

Author SHA1 Message Date
Kai Huuhko ff3ac49cf3 Fix elm_naviframe transition,finished smart events event_info
Summary:
A pointer to the internal Elm_Naviframe_Item_Data was mistakenly being passed as
event_info.

This patch changes the callback_call to pass the correct Elm_Object_Item (Eo) pointer.

Reviewers: #elementary, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2222
2015-03-28 15:12:37 +09:00
woochan lee 93a4b8b4e3 multibuttonentry: Add item long pressed callback.
Summary: Add long pressed callback for application. test code changed to following this change as well.

@feature

Reviewers: seoz, woohyun, Jaehyun, Hermet

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

Conflicts:

	src/lib/elc_multibuttonentry.c
2015-03-28 15:09:27 +09:00
Nicolas Aguirre f6cd88650a elm-tests: slideshow : looking for right data directory in prefix.
This cmomit fixes the previous revert, as it was introducing load of incorrect path for images.
2015-03-27 14:42:07 +01:00
Nicolas Aguirre 9b0f724373 Revert "elm_slideshow: looking for right data directory in prefix."
This reverts commit c8ca1ad1b3390c9bf6712b616f971d814c63c274.
2015-03-27 13:25:57 +01:00
Michelle Legrand 4b478c5786 elm_map: use of elm_app_data_dir_get() instead of PACKAGE_DATA_DIR
Summary:
This allows to build binaries that will not look for the directory passed to
the configure with --prefix at build but will look for data files according to where
the exe has been installed.

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-26 18:19:36 +01:00
Michelle Legrand 74525a6d2f elm_naviframe: use of elm_app_data_dir_get() instead of PACKAGE_DATA_DIR.
Summary:
This allows to build binaries that will not look for the directory passed to
the configure with --prefix at build but will look for data files according to where
the exe has been installed.

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-26 18:19:16 +01:00
Michelle Legrand ae1c8af467 elm_naviframe: use of elm_app_data_dir_get() instead of PACKAGE_DATA_DIR.
Summary:
This allows to build binaries that will not look for the directory passed to
the configure with --prefix at build but will look for data files according to where
the exe has been installed.

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-26 18:18:52 +01:00
Michelle Legrand 4da5e28685 elm_genlist: use of elm_app_data_dir_get() instead of PACKAGE_DATA_DIR.
Summary:
This allows to build binaries that will not look for the directory passed to
the configure with --prefix at build but will look for data files according to where
the exe has been installed.

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-26 18:18:11 +01:00
Michelle Legrand 5ffcf27033 task_switcher: add variable verification.
Summary:
If dbus is not installed the task switcher raise a segmentation error.
So we check if the returned variable by eo_do is not null before continuing.

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-26 18:17:37 +01:00
michelle legrand 65bb320c00 elm_diskselector: check if sd variable is null.
Summary:
This causes a segmentation fault when closing the DiskSelector window
on Windows.

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-26 18:13:27 +01:00
michelle legrand ce1d59bcbe elm_fileselector: display directory from HOME on Windows.
Summary:
On Windows, if we are running the application from Msys or Cygwin, we will
get the HOME environment variable. Otherwise we need to use Windows environment variables
"HOMEDRIVE" and "HOMEPATH" to get the home path.

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-26 18:12:57 +01:00
michelle legrand 949e0f5e9c elm_panel: display directory from HOME on Windows.
Summary:
On Windows we can get the HOME environment variable if we launch the application
from Msys or Cygwin, otherwise we need to use "HOMEDRIVE" and "HOMEPATH" to get
windows home path.

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-26 18:11:56 +01:00
michelle legrand cc51077de1 elm_prefs: looking for right lib directory in prefix.
Summary:
Using elm_app_data_dir_get() to get the right application's prefix.

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-26 18:11:30 +01:00
michelle legrand 0d08751301 elm_slideshow: looking for right data directory in prefix.
Summary:
Get right application prefix by using elm_app_data_dir_get() for the
slideshow images.

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-26 18:11:01 +01:00
michelle legrand ce9498311a elm_prefs: compatibility for Windows.
Summary:
Add test for relative path on Windows

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-26 18:08:54 +01:00
michelle legrand 8d4a6bfc81 elm_datetime: compatibility for Windows.
Summary:
For Windows, we have a nl_langinfo() equivalent in Evil.

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-26 18:08:15 +01:00
michelle legrand 6f86fb5fb0 elc_fileselector: fix looking for right Windows home path.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-26 18:04:38 +01:00
taehyub d48b15b2fd elc_popup: add null pointer check before creating content text object
Summary:
If elm_object_text_set() function is called twice,
elm_obj_containter_content_set(CONTENT_PART, sd->text_content_obj)
function makes sd->text_content_obj null since sd->text_content_obj already exists.

Test Plan:
1. run elementary_test(popup) and excute "popup-center-text + 1button (check hide, show)"
2. print sd->text_content_obj value in content_text_set()
3. push hide button and excute the example again
4. check sd->text_content_obj value if null or not

Reviewers: woohyun, Hermet, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D2225
2015-03-26 03:02:15 +09:00
taehyub c361c9e839 elm_toolbar: add toolbar item size calculation and setting min values for fixed items
Summary:
In case of the toolbar item size is fixed, the size of toolbar item became finger size.
so, after signal emission in _inform_item_number(),
edje_object_size_min_restricted_calc() and evas_object_size_hint_min_set() function are added.

Test Plan: change edc for supporting fixed toolbar item and run examples of toolbar in elementary_test

Reviewers: woohyun, seoz, Hermet, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D2184
2015-03-25 07:47:33 +09:00
Amitesh Singh 8e47bbb70a tooltip: Corrected namespacing for tooltip label style.
Summary:
namespacing is wrong for tooltip label. Although we still support old theme
but it should be removed in EFL 2.0.

Test Plan: elementary_test -to tooltip

Reviewers: seoz, Hermet, raster

Reviewed By: raster

Subscribers: kimcinoo, sachin.dev, seoz

Differential Revision: https://phab.enlightenment.org/D2120
2015-03-25 07:23:07 +09:00
Carsten Haitzler ac771e51af elm - fix warnings after patches to datetime 2015-03-25 07:14:08 +09:00
Subodh Kumar 7bf866f8bf [elm_datetime] Fix to consider second field while comparing datetime values.
Summary:
Some app like calendar, they heavily depend on the value of datetime,so to ensure accuracy
second field is considered while comparing datetime values.

@fix

Test Plan: NA

Reviewers: shilpasingh, raster

Reviewed By: shilpasingh, raster

Subscribers: poornima.srinivasan, govi, rajeshps

Differential Revision: https://phab.enlightenment.org/D2204
2015-03-25 07:09:23 +09:00
Subodh Kumar 79e7d5bcad [elm_datetime] Fix to parse the POSIX locale format properly.
Summary:
In POSIX, some format include extra character like dash, hash, etc, which gives unexpected behaviour.
Fix to filter out those character.

Signed Off By: Seongjun Yim <se201.yim@samsung.com>
Signed Off By: Subodh Kumar <s7158.kumar@samsung.com>

@fix

Test Plan:
1. Set datetime as POSIX locale.
2. Check the datetime behaviour in elementary_test.

Reviewers: raster, shilpasingh

Reviewed By: shilpasingh

Subscribers: poornima.srinivasan, govi, rajeshps

Differential Revision: https://phab.enlightenment.org/D2203
2015-03-25 07:06:03 +09:00
Subodh Kumar 12f6f56f85 [elm_datetime] Corrected the logic for datetime values comparison.
Summary:
Datetime value should be compared earlier to avoid unnecessary code execution.
Also added logic for single field comparion which will avoid to compare all fields when field limit is set.

Signed Off By: Seongjun Yim <se201.yim@samsung.com>
Signed Off By: Hyunseok Yang <hs0219.yang@samsung.com>
Signed Off By: Subodh Kumar <s7158.kumar@samsung.com>

Test Plan: NA

Reviewers: shilpasingh, raster

Reviewed By: shilpasingh, raster

Subscribers: poornima.srinivasan, govi, rajeshps

Differential Revision: https://phab.enlightenment.org/D2202
2015-03-25 07:00:44 +09:00
Jaehwan Kim 1925ec3b8e scroller: add loop feature.
This feature works the infinite loop horizontally or vertically.
If the content is set, it will be shown repeatedly.
@feature

Change-Id: I1f20b794ae44bc8e5d120901222c7cccadca96b7

Conflicts:
	src/lib/elm_scroller.c
	src/lib/elm_scroller_legacy.h
2015-03-23 20:35:04 +09:00
Yakov Goldberg 9a2f068740 Implement efl_file_get() for Elm_Layout and Elm_Video
"file" property in Efl.File interface is virtual pure,
so according to OO principles must be implemented in derived classes.

This patch adds implementation of "file.get" in Elm_Layout.

Further, Elm_Video class has it's own implementation of "file.set",
thus also requires implementation of "file.get"
2015-03-22 14:37:52 +02:00
WooHyun Jung 56b6792584 toolbar: remove useless codes 2015-03-21 09:45:59 +09:00
Jee-Yong Um 89d4986aee elc_popup: Fix to make popup get proper size
Summary:
There is a bug that popup can't get proper size when list is set as its content.
Because of unneccesary calling evas_object_show() in popup's overriding elm_obj_container_content_set(),
sizing eval doens't work correctly.
This patch fixes this bug.

Test Plan:
Execute 14th popup sample in "elementary_test popup".
(popup-center-title + list content + 1 button)
After applying this patch, popup shows correctly.

Reviewers: seoz, Hermet

Reviewed By: Hermet

Subscribers: Hermet, seoz

Differential Revision: https://phab.enlightenment.org/D2158
2015-03-20 14:14:02 +09:00
Subodh Kumar c7b28cb1ac Elm_toolbar: Sizing evaluation improvement.
Summary:
Issue: Flickering when toolbar was set/unset
Solution: Unnecessary resizes and show caused the flicker, removed unnecessary resizes.

Reviewers: seoz, raster, shilpasingh

Reviewed By: shilpasingh

Subscribers: poornima.srinivasan, rajeshps, govi

Differential Revision: https://phab.enlightenment.org/D2070
2015-03-19 18:46:59 +09:00
Youngbok Shin fa68fc7603 config: Reinitialize font config using evas_font_reinit() API.
Summary:
Call evas_font_reinit() API before applying font overlays when config is fully reloaded.
Application could modify or add font config "*.conf" files.
And It should affects all of other running EFL application.
So, put evas_font_reinit() API to be called when x win property is changed.
@feature

Reviewers: cedric, raster, tasn, woohyun

Differential Revision: https://phab.enlightenment.org/D2113
2015-03-19 18:04:59 +09:00
Andrii Kroitor 3857bf83ea elm_entry: fix focus on text selection
Summary:
Setting focus to entry object when text is being selected

@fix

Test Plan:
1. open "elementary_test entry3"
2. click on the big entry
3. mouse down on singleline entry to start selection
4. move mouse out of window
5. mouse up. text in that entry seems to be selected
6. press del or type any text

expected result: selected text in singleline entry is deleted/replaced
result without this patch: singleline entry is not focused and all edit actions are affecting the big one

Reviewers: cedric, Hermet, seoz

Subscribers: poornima.srinivasan, subodh6129, raster, reutskiy.v.v, herdsman

Differential Revision: https://phab.enlightenment.org/D1476
2015-03-19 17:43:04 +09:00
Andrii Kroitor cdae7dedc8 elm_spinner: style fix
Summary:
spinner don't changes its size after showing entry.
Entry is now clipped to area between arrows.

Test Plan:
1. Run "elementary_test spinner"
2. Click on top spinner. It shouldn't resize
3. Type very long number. It shouldn't overlaps arrows.

Reviewers: Hermet, raster, seoz, cedric

Subscribers: raster, reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D1509
2015-03-19 17:22:23 +09:00
Jaehwan Kim 9c26cdf25a elm_widget: fix wrong parmeter.
The parameter what the application gets should Elm_Object_Item.

@fix
2015-03-19 16:47:24 +09:00
Mike Blumenkrantz 97912ed487 elm_win fullscreen setting on FAKE wins should just toggle the flag
@fix
2015-03-18 10:53:56 -04:00
Mike Blumenkrantz 39a3a9a827 elm_win fullscreen getter does not need a third case for an inclusive if/else 2015-03-18 10:51:29 -04:00
ChunEon Park dc01331903 Revert "widget: fix the abi break."
This reverts commit 841fcdfb18a414a7381910bcbb0b0ef4807bc5c2.

It's been too much passed.
we have more dependencies to the change (ie, key bindings)
so conclude to have the abi break in this case.
2015-03-17 15:46:19 +09:00
ChunEon Park 82ee39739d conform: remove redundant declares. 2015-03-17 15:44:27 +09:00
woochan lee fb2144d9e0 conform: Use eo_isa() to check object types.
Summary:
The strcmp(line 738) has been failed since the eo applied.
the widget type get API returned "Elm_Genlist" now.

For fix it, using eo_isa() to check object types instead of string comparison.
@fix

Reviewers: seoz, woohyun, JackDanielZ, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2148
2015-03-17 15:42:36 +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
Daniel Zaoui 87aa8cdb54 DnD/Wl: extend types support to all the atoms.
uri-list type was always sent as source data type.
2015-03-16 09:42:03 +02:00
Daniel Zaoui c0bd72eaa4 DnD/Wl: fix drop sequence when drop is done on a bad target.
The problem occurs when no drop target below the mouse can receive the
data type provided and the mouse button is released. The mouse pointer
stays grabbed and this leads to issues for the next drags.
To solve this, on a bad drop, the destination window has to request
from the source window the end of the dnd.
2015-03-16 09:42:02 +02:00
Daniel Zaoui 29ddeff501 DnD/Wl: add a better support to data types.
The types management mechanisms for X11 and Wayland use the same
infrastructures.
2015-03-16 09:42:02 +02:00
Daniel Zaoui cc0368334d DnD: Arrange code for better usability
Specific types need to be declared before other, as well as functions
prototypes.
2015-03-16 09:42:02 +02:00
Daniel Zaoui 1f86e80f0a DnD/X11: generalize function
This is needed for the types management in Wayland.
2015-03-16 09:42:02 +02:00
Daniel Zaoui 1191f41238 DnD/X11: generalize atoms descriptions
This step is needed to simplify types management for Wayland by using
the same data structures.
2015-03-16 09:42:02 +02:00
Jean-Philippe Andre 89d8f954de GLView: Return false if the surface could not be created
Apps had no easy mean to check that their chosen configuration
was actually working.

@fix
2015-03-16 16:40:08 +09:00
Jean-Philippe Andre b408b31537 elm_config: Add doc for the new depth/stencil/msaa preference 2015-03-16 15:10:57 +09:00
Wonsik Jung c27ab30fae elm_config: Add feature to set depth/stencil/msaa bit to window surface
Summary:
When evas gl/elm glview runs with direct rendering, it can not set these bits to window surface.
Because of no interface and method.This patch can do that.

This patch just uses current interface as a elm_config_accel_preference_set instead of new API.
Also, it is related D2144 patch.

Test Plan: ElmGL View test menu in elementary_test app JP's test app.

Reviewers: spacegrapher, cedric, raster, jpeg

Reviewed By: jpeg

Subscribers: mer.kim

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

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
2015-03-16 14:26:41 +09:00
ChunEon Park 622fe4c5da widget: fix the abi break.
Widget type string should be all lower-cases!

This acutally was caused in 7b10fdb8f39c3b36f575dd22d26a1efe6ecd28ec

@fix
2015-03-13 17:46:00 +09:00