Commit Graph

11197 Commits

Author SHA1 Message Date
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
Jaehyun Cho 80baf57494 elm_panel: Fix incorrect scroller content region calculation of panel.
Summary:
Fix incorrect scroller content region calculation of panel.
It is fixed that the parent of panel content becomes scr_ly if panel is scrollable.

Test Plan:
Test Panel Scrollable in elementary_test.
1. Change panel orient as ELM_PANEL_ORIENT_RIGHT in test_panel.c.
2. Run elementary_test and test Panel Scrollable.
3. You can see the right panel drawer is hidden right after it is shown.
   (After applying this patch, this problem will be resolved.)

Reviewers: seoz, woohyun, eunue, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2125
2015-03-13 17:28:17 +09:00
ChunEon Park 2ffc39659b elm_object: update doc.
remove redundant note.
2015-03-13 17:24:07 +09:00
Amitesh Singh a56457ac76 entry: use ea_isa() for object types comparison
Reviewers: seoz, raster, Hermet

Reviewed By: Hermet

Subscribers: kimcinoo, seoz, sachin.dev

Differential Revision: https://phab.enlightenment.org/D2132
2015-03-12 15:44:09 +09:00
woochan lee 1f8ad27e40 genlist: Send param item type instead of eo item type.
Summary:
The _item_unselect() fucntion called at _elm_genlist_select_mode_set() with parameter.
It makes crash when access it->item. it is eo item type actually so it doesn't have member as item or something.
@fix

Test Plan:
1. Run elementary_test
2. Execute genlist
3. Select an item on list and click Next API fucntion button 2times.
4. Check the crash.

Reviewers: seoz, woohyun, Hermet

Reviewed By: Hermet

Subscribers: SanghyeonLee

Differential Revision: https://phab.enlightenment.org/D2136
2015-03-12 15:42:30 +09:00
SangHyeon Lee 411c30b408 Genlist/Gengrid : Modified to handle the focus highlight on unrealized items
Summary:
When unrealized item is focused, edje object is not exist,
         so genlist cannot read the focus highlight information from edje object.
         Therefore, when the item is realized, check the item is focused or not and
         need to update focus highlight.

@fix

Test Plan: change edc for supporting focus highlight in edc, and set focus on unrealized items.

Reviewers: raster, seoz, jaehwan

Differential Revision: https://phab.enlightenment.org/D2128
2015-03-11 20:35:53 +09:00
Carsten Haitzler 8cfa96fee7 elm - fix zmikes smart-arse stupid documentation remark 2015-03-11 20:16:36 +09:00
Daniel Juyung Seo f5d144e421 elm: Use eo_isa() to check object types instead of manual string comparison. 2015-03-10 22:52:29 +09:00
Daniel Juyung Seo c49d674d81 atspi: Remove unnecessary null check.
win could not be null due to EINA_LIST_FOREACH design.
2015-03-10 22:51:22 +09:00
Daniel Juyung Seo c9e3ab3363 elm: Clean up elm_win_resize_object_add caller.
- Do not need to call align_set for window resize object.
- Call weight_set before adding an object to a window's resize object.
2015-03-10 22:41:44 +09:00
ChunEon Park 86783c4c9a main: use eo_isa() to check obj type. 2015-03-10 22:31:13 +09:00
woochan lee d66a2555a8 multibuttonentry: registered object change for callback add.
Summary:
API changed from "edje_object_signal_callback_add()" to "elm_layout_signal_callback_add"
to following code refactoring.

Reviewers: seoz, woohyun, Jaehyun, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2102
2015-03-10 17:19:47 +09:00
ChunEon Park 6761b04c47 popup: fix mistake
this is introduced in d4eaee4eb97210ed153c161fc8b7d21967f61131.

the position should be rearragned after geometry_get().
2015-03-10 17:03:36 +09:00
ChunEon Park 304d582953 layout: here default content alias can be acceptable.
elm_object_content_set() for layout will be working.

@fix.
2015-03-10 16:56:22 +09:00
ChunEon Park 51b05f466f popup: correct popup position.
actually popup position should be updated when it's parent is moved.

@fix
2015-03-10 16:51:44 +09:00
woochan lee aa51e5ac24 layout: Add text alias description as default.
Summary:
The _text_aliases value exists. but never use here on layout for text part aliases.
in addition, i think that "elm,text" should be the default part for text set.

Reviewers: seoz, woohyun, JackDanielZ, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2116
2015-03-10 16:40:53 +09:00
ChunEon Park fddc22e30a Revert "Fix for T2042 ctxpopup don’t know its size"
This reverts commit aeeef70cfbc6d589262024105b52ae2c07336ecd.

Ahhh this patch wasn't intended. revert.
2015-03-10 16:36:24 +09:00
Jee-Yong Um 80f2f61c14 elc_popup: Adjust popup size when its parent is resized
Summary:
When parent is resized, popup keeps its original size.
This patch makes popup have proper size in proportion to parent's size.

T2082

Test Plan: You can check the effect of this patch in "elementary_test popup".

Reviewers: seoz, Hermet

Subscribers: stefan_schmidt, J5lx, seoz

Differential Revision: https://phab.enlightenment.org/D2121
2015-03-10 16:21:16 +09:00
woochan lee 325513c396 popup: Delete useless restack cb.
Summary:
This restack callback added for support previous tree [parent - notify - popup].
The popup has been redesigned to have correct tree [parent -popup - notify].
So the restack callback does not need anymore.

Test Plan:
1. Run elementary_test
2. Execute popup sample.
3. Activate popup which has restack feature.
4. Check the result.

Reviewers: seoz, woohyun, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2127
2015-03-10 16:17:49 +09:00
ChunEon Park ed6e7043a7 Fix for T2042 ctxpopup don’t know its size
Summary:
Since this patch ctxpopup is able to report its size which is equal to 1 element of list.
This can be treated as another bug (list visibility implementation must be so list will be counting its size dynamic on every item add)
Might be also ignored.

Test Plan:
1. Use application provided in T2042 (should have coordinates greater then 0).
2. Using atspi check is accessible element is visible. (with patch ctxpopup will be visible, without ctxpopup and its children will have status visible and showing set to FALSE)

Reviewers: raster, seoz, Hermet

Subscribers: m.jagiello

Projects: #elementary

Maniphest Tasks: T2042

Differential Revision: https://phab.enlightenment.org/D2045
2015-03-09 09:57:42 +09:00
Mike Blumenkrantz f5281b36af theme examples of color class descriptions
just a couple for now, the rest can be filled in later
2015-03-07 13:45:21 -05:00
Mike Blumenkrantz 74994d308c ibar/ibox icon label positioning rewrite
the original code for handling label positioning was not robust enough to handle
cases such as ibar scrolling or gadget moving. this greatly simplifies the code
as well as handling all cases and providing small animations for moving the label
when necessary
2015-03-06 18:59:31 -05:00
Marcel Hollerbach eb63aea88a theme: Updated Ibar to align with the origin
This fixes partly T1828

Summary: Use the feature provided by ibar.

Reviewers: raster, zmike

Subscribers: zmike

Differential Revision: https://phab.enlightenment.org/D1797
2015-03-06 18:59:31 -05:00
kabeer khan c1a7a296ae test: fix crash of configuration test
Summary:
Add extra check to prevent crashing when user clicks configuration
test from elementary_test window

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

Reviewers: seoz, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-06 16:34:04 +01:00
Mike Blumenkrantz 00e8d1737c cursor theme setting should use cur->owner instead of cur->eventarea for parent
owner is required to be an elm widget, eventarea is not
2015-03-05 11:35:41 -05:00
Mike Blumenkrantz 46e9bdd735 cursor object changes are now rejected if creating the new cursor fails
previous behavior resulted in a deleted cursor
2015-03-05 11:33:57 -05:00
Mike Blumenkrantz 8384b0a0f7 cnp should only attempt to get wl win for wl engine canvases
fixes abort() on missing wl ee interface
2015-03-05 11:31:30 -05:00
Carsten Haitzler d3d3cbf915 elm spinner - add backwards compat for older spinner themes
this makes spinenr work with previous themes after
adfe7fbcd3f4146d84219de7dbb5a273d89f396e commit
2015-03-05 15:14:34 +09:00
Mike Blumenkrantz 297ac7c17d elm_win now accurately reapplies framespace in all cases for fullscreen wins
also related opaque region fix
2015-03-04 15:20:54 -05:00
Daniel Juyung Seo cce206ff53 colorselector: Check return value of elm_layout_theme_set as other widgets do.
This fixes coverity CID 1273969.
2015-03-04 20:59:36 +09:00
woochan lee 03af867581 multibuttonentry: Item width size set policy change.
Summary:
Item width max size set as 130 in edc before, i thinks that value doen't have any meaning,
so i changed the item max width size to follow container width size.

For modification, item size calc, box resize logic changed.

Test Plan:
1. Run elementary_test
2. Execute multibuttonentry sample.
3. Input some text for make item.

Reviewers: Hermet, seoz, woohyun, Jaehyun

Differential Revision: https://phab.enlightenment.org/D1970
2015-03-04 20:38:04 +09:00
Sung-Taek Hong 22adafce60 elm_slider: Added elm_slider_indicator_visible_mode_set/get.
Summary: elm_slider: Added elm_slider_indicator_visible_mode_set/get.
elm_slider_indicator_visible_mode_set/get allows individual sliders to have
its own indicator visible_mode.

@feature

Reviewers: Hermet, woohyun, seoz

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1945
2015-03-04 18:45:51 +09:00
Vitalii Vorobiov 46cdb168e8 Genlist: make reordered item selected
Restacking not selected item should be selected after it is done.

@fix

Test Plan:
1. run in console
> elementary_test "Genlist Reorder Mode"
2. Switch to reorder mode
3. Select Item #6
4. Try to restack Item #4
(not selecting it, but holding mouse on it and moving down)
5. See that Item #4 and Item #6 is not selected

Reviewers: cedric, Hermet, raster, seoz

Subscribers: reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D1931
2015-03-04 18:40:42 +09:00
Carsten Haitzler 17ffbd6448 elm - focus feature - add config option to automatically show/hide focus
this adds logic in elm widget and elm win to figure out how to
automatically show a focus hilight when switching focus, or to hide
it. this really should be the default mode, thus in all default
profiles (default, standard, mobile) it's turned on. this means if you
tab or shif+tab or use arrow keys to switch focus, the focus hilight
will magicallly appear. click with a mouse to change focus and it'll
disappear assuming you want to use the mouse to do things. If focus is
explicitly turned on in config or in the window by api, then this has
no effect and focus will remain on all the time. this adds apis to
change these config values and options in the default elm config tool
to swizzle them as well as config upgrade handling for existing configs.

@feature
2015-03-04 17:47:54 +09:00