Commit Graph

11518 Commits

Author SHA1 Message Date
Thiep Ha 8677ef1add widget: Add null check
Summary: Adding NULL checking when allocate memory.

Reviewers: Hermet, seoz, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-11 15:15:35 +02:00
Thiep Ha d9712847be transit: add NULL check for memory allocation.
Summary: Adding Null checking when allocate memory.

Reviewers: Hermet, seoz

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-11 15:15:35 +02:00
maxerba df0cc6f930 Updating italian translation 2015-06-11 14:20:47 +02:00
Lukasz Stanislawski b2ec75db6d list: add atspi SELECTABLE state to elm_list items. 2015-06-11 11:00:27 +02:00
Shinwoo Kim 3a80bbcb41 [layout] support mirrored set for layout which is using elm_layout_file_set()
Summary: mirroed mode does not work, if layout uses elm_layout_file_set().

Test Plan:
the following is test code.
[test.edc]
collections {

   group {
      name: "layout/test";

      parts {

         part {
            name: "bg";
            type: RECT;
               description {
               state: "default" 0.0;
               color: 255 255 0 100;
            }
         }

         part {
            name: "test.rect";
            type: RECT;
               description {
               state: "default" 0.0;
               color: 255 0 0 255;
               rel1.to: bg;
               rel1.relative: 0.2 0.1;
               rel2.to: bg;
               rel2.relative: 0.5 0.2;
            }
         }

      } /* parts */
   } /* group */
} /* collections */

[test.c]
//Compile with:
//gcc -g test.c -o test `pkg-config --cflags --libs elementary`

#include <Elementary.h>
#include <Ecore_X.h>

static void
_bt_click(void *data, Evas_Object *obj, void *event_info)
{
   Eina_Bool mirrored;
   Evas_Object *layout;

   layout = data;

   mirrored = elm_config_mirrored_get();
   mirrored = !mirrored;
   printf("mirred: %d\n", mirrored);
   elm_config_mirrored_set(mirrored);
}

EAPI_MAIN int
elm_main(int argc, char **argv)
{
   Evas_Object *win, *box, *layout, *bt, *check;
   char buf[PATH_MAX];

   elm_app_info_set(elm_main, "elementary", "./test.edj");
   elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);

   win = elm_win_add(NULL, "Layout", ELM_WIN_BASIC);
   elm_win_autodel_set(win, EINA_TRUE);

   box = elm_box_add(win);
   evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   elm_win_resize_object_add(win, box);
   evas_object_show(box);

   // Adding layout and filling it with widgets
   layout = elm_layout_add(win);
   evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   evas_object_size_hint_align_set(layout, EVAS_HINT_FILL, EVAS_HINT_FILL);
   snprintf(buf, sizeof(buf), "./test.edj");
   elm_layout_file_set(layout, buf, "layout/test");
   elm_box_pack_end(box, layout);
   evas_object_show(layout);

   bt = elm_button_add(win);
   elm_object_text_set(bt, "mirrored");
   evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
   evas_object_smart_callback_add(bt, "clicked", _bt_click, layout);
   elm_box_pack_end(box, bt);
   evas_object_show(bt);

   check = elm_check_add(win);
   elm_object_text_set(check, "test");
   evas_object_size_hint_weight_set(check, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   evas_object_size_hint_align_set(check, EVAS_HINT_FILL, EVAS_HINT_FILL);
   elm_box_pack_end(box, check);
   evas_object_show(check);

   evas_object_resize(win, 500, 500);
   evas_object_show(win);

   elm_run();
   elm_shutdown();

   return 0;
}
ELM_MAIN()

Reviewers: seoz, raster, tasn, Hermet

Subscribers: seoz, cedric

Differential Revision: https://phab.enlightenment.org/D2142
2015-06-09 14:05:58 +01:00
Carsten Haitzler e99831eb2f fix list item mode change on elm list
@fix
2015-06-09 16:43:38 +09:00
Carsten Haitzler 5e79a4e211 elm list - theme - make compress moder work again
someone.. somewhere along the way.. likely a long time ago.. broke
compress mode. likely the addition of the ellipsis value as an
ellipsis position or something related to that broke compatibility,
as this used to work. be that as it may... finding out just where is
virtually impossible, so fix it the simpler way - add elipsis values
2015-06-09 16:25:24 +09:00
Mike Blumenkrantz 51cc52f685 pager16: add signals for toggling content visibility 2015-06-08 14:54:47 -04:00
Mike Blumenkrantz 9d6ac3696c shelf: use spacer for content sizing, toggle content visibility 2015-06-08 14:54:47 -04:00
Mike Blumenkrantz f73944df11 shelf: use constant rects for eventing 2015-06-08 14:54:47 -04:00
Stefan Schmidt c7201386e3 test_win_keygrab: Better use strncpy when copying into fixed size buffer.
We should never copy more than PATH_MAX.

CID: 1298016
2015-06-08 17:21:45 +02:00
Carsten Haitzler 1e8dfb051c elm theme - toolbar - adjust padding for the toolbar to not look so bad
therw was always a small 2 pixel padding inside the toolbar. it just
looks bad for toolbar so expand out to boundary of toolbar
2015-06-07 11:22:31 +09:00
Lukasz Stanislawski 166d8c2db8 atspi: fix popup role and signal emission 2015-06-05 16:00:30 +02:00
Amitesh Singh 6b8de59969 tooltip: fix tooltip multi line text issue
Summary:
This is fixed by removing wrap=word from tooltip style.

Resolves: T2034

@fix

Test Plan:
1. elementary_test -> tooltip
2. click "unlock tooltip visibility"
3. check tooltip text. full text is not visible.

Reviewers: seoz, raster, Hermet, cedric, tasn

Reviewed By: tasn

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D2606
2015-06-04 10:25:44 +01:00
Lukasz Stanislawski dd19750273 entry: improve at-spi2 accessibility support
* return guide text instead of content
* mask passwords
* set proper at-spi roles when entry enables password mode.
2015-06-03 17:38:34 +02:00
Lukasz Stanislawski 27090197cf atspi: fix signal name 2015-06-03 17:38:34 +02:00
taehyub 8bdcdf8cc6 interface scrollerable: modify the loop_v condition in _elm_scroll_momentum_animator() function
Summary:
change the 'sid->loop_v' condition to '!sid->loop_v' to delete momentum animator
when the vertical scroller reached the end of the content

@fix

Reviewers: raster, Hermet, woohyun

Subscribers: CHAN

Differential Revision: https://phab.enlightenment.org/D2609
2015-06-03 21:30:50 +09:00
Vaibhav Gupta bb6ea34e68 Gengrid: Fix typo in API Documentation.
Summary: Signed-off-by: Vaibhav Gupta <g.vaibhav1@samsung.com>

Reviewers: raster, Hermet

Reviewed By: Hermet

Subscribers: sachin.dev, singh.amitesh

Differential Revision: https://phab.enlightenment.org/D2619
2015-06-03 21:19:32 +09:00
Vaibhav Gupta 3118690837 Genlist: Fix typo in API Documentation
Summary: Signed-off-by: Vaibhav Gupta <g.vaibhav1@samsung.com>

Reviewers: raster, Hermet

Reviewed By: Hermet

Subscribers: sachin.dev, singh.amitesh

Differential Revision: https://phab.enlightenment.org/D2620
2015-06-03 21:17:49 +09:00
shilpa.singh cfaf18f967 Elm: Add context,open signal in elm_entry.
Summary:
When context,open signal is sent from elm_entry before showing context
menu, dynamic addition of context menu items to entry becomes easier.

@feature

Test Plan:
Run elementary_test
Launch Entry Scrolled test
Right Click on Multiline Markup entry

Reviewers: tasn

Reviewed By: tasn

Subscribers: subodh6129, poornima.srinivasan

Differential Revision: https://phab.enlightenment.org/D2580
2015-06-03 10:41:13 +01:00
Jaehyun Cho e9eeadd93c examples: Replace setenv() with elm_config_accel_preference_set().
Replace environment value set with elm_config_accel_preference_set.
2015-06-02 19:25:39 +09:00
Jaehyun Cho 64e799d1a7 examples: Replace preferred engine "opengl_x11" with accel preference "3d".
Replace preferred engine "opengl_x11" with accel preference "3d".
2015-06-02 19:22:39 +09:00
Daniel Zaoui 9ab2ab73fe Focus: add and fix comments 2015-06-02 08:46:55 +03:00
WooHyun Jung 52b95670e3 missed from prvious commit 2015-06-02 13:48:09 +09:00
WooHyun Jung 98060bd8da elm_focus: added new focus move policy and elm_object_focus_move_policy_set/get
New focus move policy, ELM_FOCUS_MOVE_POLICY_KEY_ONLY, is added.
If you set this policy as base focus move policy, objects cannot steal
focus by using mouse click or mouse in. Only keyboard input (such as Left,
Right, Up, Down, ...) can make focus be moved.
Additaionally, an object can have its own focus move policy by using
elm_object_focus_move_policy_set API.

@feature
2015-06-02 13:42:00 +09:00
Tom Hacohen d495b6874e Elm widget: Fix some Eolian warnings. 2015-06-01 15:02:05 +01:00
ChunEon Park 689ef74dd6 Revert "Spinner: Add changed callback call when spinner value set."
This reverts commit 8278dff6a742c391f7c04c3de1033574d818dbb6.

This is not good for scenarios and will break the compatibility.

Thanks to David for reporting.
2015-05-29 12:32:02 +09:00
Mike Blumenkrantz 70c1758ed5 tooltip: fix positioning when tooltip is affixed to a window object
@fix
2015-05-28 21:34:49 -04:00
Mike Blumenkrantz 024d76b560 glview: preserved changed state when altering render mode
fixes the case where glview is marked changed and then the render policy
is modified prior to the render callback executing

@fix
2015-05-28 15:36:25 -04:00
Tom Hacohen 9a0d2d172b Adjust according to Eo changes. 2015-05-28 17:48:02 +01:00
Mike Blumenkrantz f085834d1f gengrid/genlist: decrement item counter before triggering item del callback
@fix
2015-05-28 11:59:51 -04:00
SangHyeon Lee 26a9e6cec2 Gengrid: fix mirroring bug in gengrid widget.
Summary:
Below bugs are exist in gengrid widget when use horizontal mode and mirrored set.

1. Gengrid item is placed wrong position when mirrored set.
   Current calulation for mirroring in _item_place only consider pan object positions.
   if widget is mirrored, item should be placed opposited position so object x position must be
   consider in mirroring calculation also.

2. Gengrid scroll(pan) minimum size is returned wrong value when mirroed set.
   As the result of 1's calculation present oposite position of items, so align also reversed when mirrored.
   but current gengrid didn't change align x so minimum size is return wrong value
   and scroller expanded wrong direction.

@fix

Test Plan:
1. run elementary_test and set mirroring On
2. run Gengrid2 in elementary_test
3. see how items are placed by push append button repeatly.
4. see scroller shows correct position and items.
5. change usr/bin/test_gengrid.c to set another align value on gengrid and test again.

Reviewers: raster, seoz, Hermet, jaehwan

Subscribers: Jaehyun, anand.km, eagleeye, singh.amitesh

Differential Revision: https://phab.enlightenment.org/D2553
2015-05-28 23:07:27 +09:00
woochan lee 0301672b4b Spinner: Add changed callback call when spinner value set.
Summary:
There is a code to compare value is changed.
1256: if (sd->val == val) return;

Even value changed the value changed callback didn't called before.

Reviewers: woohyun, shilpasingh, Hermet

Reviewed By: shilpasingh, Hermet

Differential Revision: https://phab.enlightenment.org/D2560
2015-05-28 20:39:32 +09:00
Amitesh Singh 86d31eb47d genlist: do a proper clean up in clear().
Summary: Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>

Reviewers: raster, Hermet

Subscribers: seoz, sachin.dev

Differential Revision: https://phab.enlightenment.org/D2588
2015-05-28 19:59:22 +09:00
ChunEon Park b7607a499c clipper: removed.
we've discussed and concluded it's unncessary.
2015-05-28 17:41:49 +09:00
Carsten Haitzler da67a05a1c elm - fix profile handling if ELM_PROFILE is set - dont listen to x msg
@fix

don't listen to x profile set msg if ELM_PROFILE env var is used -
this overrides.
2015-05-28 14:58:47 +09:00
Carsten Haitzler 3ad9ee1cc7 elm = fix window norender handling
this delays norender and throttle handling to allow for quick
show/hide etc. changes an app may make so to not jump state so often.
this also fixes an issue wqhere config may change leaving all windows
in norender mode.
2015-05-28 12:27:59 +09:00
Daniel Juyung Seo 60efd5cdf5 po/ko: Updated Korean translation. 2015-05-28 02:05:59 +09:00
Daniel Juyung Seo 07112195e1 examples/evas3d: Use correct variable type for a return value. 2015-05-28 02:05:59 +09:00
Carsten Haitzler 8ab1befd95 elm theme - remove commented out efm icon lines so as not to confus people 2015-05-27 20:21:30 +09:00
Lukasz Stanislawski e483ffa636 gengrid: implement Atspi_Selection interface
Allow to select and deselect gengrid items by Assistive Technology
Clients through org.a11y.atspi.Selection dbus interface.
2015-05-27 08:23:51 +02:00
Anand f61f2ac8b2 test_glview: remove warning while compiling the elementary package
Summary:
test_glview.c: In function ‘_print_gl_log’:
test_glview.c:347:10: warning: declaration of ‘log’ shadows a global declaration [-Wshadow]

Reviewers: JackDanielZ

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-26 18:43:12 +02:00
Lukasz Stanislawski 69f5f2ef4c toolbar: implement Atspi_Selection interface
Allow to select and deselect toolbar items by Assistive Technology
Clients through org.a11y.atspi.Selection dbus interface.
2015-05-26 16:31:00 +02:00
Lukasz Stanislawski 1c9b108b8d genlist: implement Atspi_Selection interface
Allow to select and deselect genlist items by Assistive Technology
Clients through org.a11y.atspi.Selection dbus interface.
2015-05-26 15:36:06 +02:00
Carsten Haitzler a119165b14 theme - efm - redo folder to stand out more amongst all the file icons
the paper with earmarked corner and dir in it just doesn't stand out.
too plain and so you can't tell dirs from other files easily at all.
replace with a more normal foler icon that now stands out.
2015-05-26 12:14:55 +09:00
Carsten Haitzler fcc446973e update po's 2015-05-25 11:53:23 +09:00
Carsten Haitzler bb135cb5f6 theme - add more efm basic file type icons
Icons by ApB - see T1582 - fixes T1582

not really a bug ... just more icons. :)
2015-05-25 11:52:36 +09:00
Umesh Tanwar 4be797c525 Genlist: support of ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY mode of genlist item for ELM_ITEM_SELECT_ON_FOCUS_DISABLE config variable.
Summary:
When environment variable ELM_ITEM_SELECT_ON_FOCUS_DISABLE is set
_item_focused_next() function doesn't support for ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY mode.

Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com>

@fix

Reviewers: raster, Hermet

Subscribers: singh.amitesh, sachin.dev

Differential Revision: https://phab.enlightenment.org/D2464
2015-05-22 14:33:11 +09:00
Carsten Haitzler a52bce3a8d elm config - init wl if env vars indicate we should
this ensures event id's are initted and more if we are in wl mode like
in x11 mode

@fix
2015-05-22 12:12:36 +09:00
Amitesh Singh 748bfb5807 test_genlist: Fix warnings while running "Genlist Textblock".
Summary:
'Genlist Textblock' uses message style which does not have elm.swallow.icon
part.

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>

Test Plan: elementary_test -to "Genlist Textblock"

Reviewers: raster, Hermet, JackDanielZ

Subscribers: seoz, sachin.dev

Differential Revision: https://phab.enlightenment.org/D2546
2015-05-22 03:42:25 +09:00