[EGIT] [core/efl] master 01/01: Elm_photo: move api from eo to legacy.

2016-04-10 Thread Ji-Youn Park
jypark pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=7b4c23489d134b18a937ed90eac0d964f77e98fd

commit 7b4c23489d134b18a937ed90eac0d964f77e98fd
Author: Ji-Youn Park 
Date:   Mon Apr 11 13:21:05 2016 +0830

Elm_photo: move api from eo to legacy.

elm_photo will be deprecated in the future.
so move all api from eo to legacy.
---
 src/lib/elementary/elm_photo.c| 110 ++
 src/lib/elementary/elm_photo.eo   |  56 -
 src/lib/elementary/elm_photo_legacy.h |  72 ++
 3 files changed, 130 insertions(+), 108 deletions(-)

diff --git a/src/lib/elementary/elm_photo.c b/src/lib/elementary/elm_photo.c
index c8ffc74..803e07c 100644
--- a/src/lib/elementary/elm_photo.c
+++ b/src/lib/elementary/elm_photo.c
@@ -328,93 +328,99 @@ _elm_photo_efl_file_file_set(Eo *obj, Elm_Photo_Data *sd, 
const char *file, cons
return EINA_TRUE;
 }
 
-EOLIAN static void
-_elm_photo_size_set(Eo *obj, Elm_Photo_Data *sd, int size)
+static void
+_elm_photo_class_constructor(Eo_Class *klass)
 {
-   sd->size = (size > 0) ? size : 0;
-
-   elm_image_prescale_set(sd->icon, sd->size);
-
-   _sizing_eval(obj);
+   evas_smart_legacy_type_register(MY_CLASS_NAME_LEGACY, klass);
 }
 
-EOLIAN static int
-_elm_photo_size_get(Eo *obj EINA_UNUSED, Elm_Photo_Data *sd)
+EAPI Eina_Bool
+elm_photo_file_set(Eo *obj, const char *file)
 {
-   return sd->size;
+   return efl_file_set((Eo *) obj, file, NULL);
 }
 
-EOLIAN static void
-_elm_photo_fill_inside_set(Eo *obj, Elm_Photo_Data *sd, Eina_Bool fill)
+/* Legacy deprecated functions */
+EAPI void
+elm_photo_editable_set(Evas_Object *obj, Eina_Bool edit)
 {
-   elm_image_fill_outside_set(sd->icon, !fill);
-   sd->fill_inside = !!fill;
-
-   _sizing_eval(obj);
+   ELM_PHOTO_CHECK(obj);
+   ELM_PHOTO_DATA_GET(obj, sd);
+   elm_image_editable_set(sd->icon, edit);
 }
 
-EOLIAN static Eina_Bool
-_elm_photo_fill_inside_get(Eo *obj EINA_UNUSED, Elm_Photo_Data *sd)
+EAPI Eina_Bool
+elm_photo_editable_get(const Evas_Object *obj)
 {
-   return sd->fill_inside;
+   ELM_PHOTO_CHECK(obj) EINA_FALSE;
+   ELM_PHOTO_DATA_GET(obj, sd);
+   return elm_image_editable_get(sd->icon);
 }
 
-EOLIAN static void
-_elm_photo_evas_draggable_interface_drag_target_set(Eo *obj EINA_UNUSED, 
Elm_Photo_Data *sd, Eina_Bool set)
+EAPI void
+elm_photo_size_set(Evas_Object *obj, int size)
 {
-   elm_image_editable_set(sd->icon, set);
-}
+   ELM_PHOTO_CHECK(obj);
+   ELM_PHOTO_DATA_GET(obj, sd);
+   sd->size = (size > 0) ? size : 0;
 
-EOLIAN static Eina_Bool
-_elm_photo_evas_draggable_interface_drag_target_get(Eo *obj EINA_UNUSED, 
Elm_Photo_Data *sd)
-{
-   return elm_image_editable_get(sd->icon);
+   elm_image_prescale_set(sd->icon, sd->size);
+
+   _sizing_eval(obj);
 }
 
-EOLIAN static void
-_elm_photo_thumb_set(const Eo *obj EINA_UNUSED, Elm_Photo_Data *sd, const char 
*file, const char *group)
+EAPI int
+elm_photo_size_get(const Evas_Object *obj)
 {
-   eina_stringshare_replace(>thumb.file.path, file);
-   eina_stringshare_replace(>thumb.file.key, group);
-
-   elm_icon_thumb_set(sd->icon, file, group);
+   ELM_PHOTO_CHECK(obj) 0;
+   ELM_PHOTO_DATA_GET(obj, sd);
+   return sd->size;
 }
 
-EOLIAN static void
-_elm_photo_aspect_fixed_set(Eo *obj EINA_UNUSED, Elm_Photo_Data *sd, Eina_Bool 
fixed)
+EAPI void
+elm_photo_fill_inside_set(Evas_Object *obj, Eina_Bool fill)
 {
-   elm_image_aspect_fixed_set(sd->icon, fixed);
+   ELM_PHOTO_CHECK(obj);
+   ELM_PHOTO_DATA_GET(obj, sd);
+   elm_image_fill_outside_set(sd->icon, !fill);
+   sd->fill_inside = !!fill;
+
+   _sizing_eval(obj);
 }
 
-EOLIAN static Eina_Bool
-_elm_photo_aspect_fixed_get(Eo *obj EINA_UNUSED, Elm_Photo_Data *sd)
+EAPI Eina_Bool
+elm_photo_fill_inside_get(const Evas_Object *obj)
 {
-   return elm_image_aspect_fixed_get(sd->icon);
+   ELM_PHOTO_CHECK(obj) EINA_FALSE;
+   ELM_PHOTO_DATA_GET(obj, sd);
+   return sd->fill_inside;
 }
 
-static void
-_elm_photo_class_constructor(Eo_Class *klass)
+EAPI void
+elm_photo_aspect_fixed_set(Evas_Object *obj, Eina_Bool fixed)
 {
-   evas_smart_legacy_type_register(MY_CLASS_NAME_LEGACY, klass);
+   ELM_PHOTO_CHECK(obj);
+   ELM_PHOTO_DATA_GET(obj, sd);
+   elm_image_aspect_fixed_set(sd->icon, fixed);
 }
 
 EAPI Eina_Bool
-elm_photo_file_set(Eo *obj, const char *file)
+elm_photo_aspect_fixed_get(const Evas_Object *obj)
 {
-   return efl_file_set((Eo *) obj, file, NULL);
+   ELM_PHOTO_CHECK(obj) EINA_FALSE;
+   ELM_PHOTO_DATA_GET(obj, sd);
+   return elm_image_aspect_fixed_get(sd->icon);
 }
 
-/* Legacy deprecated functions */
 EAPI void
-elm_photo_editable_set(Evas_Object *obj, Eina_Bool edit)
+elm_photo_thumb_set(Evas_Object *obj, const char *file, const char *group)
 {
-   evas_draggable_interface_drag_target_set(obj, edit);
-}
+   ELM_PHOTO_CHECK(obj);
+   ELM_PHOTO_DATA_GET(obj, sd);
+   eina_stringshare_replace(>thumb.file.path, file);
+   eina_stringshare_replace(>thumb.file.key, 

[EGIT] [core/efl] master 01/01: eolian: Make promise eolian generation use macros for hooks

2016-04-10 Thread Felipe Magno de Almeida
felipealmeida pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=62841aee3ce838321149b329008a54185341f9f8

commit 62841aee3ce838321149b329008a54185341f9f8
Author: Felipe Magno de Almeida 
Date:   Mon Apr 11 00:53:03 2016 -0300

eolian: Make promise eolian generation use macros for hooks

Modify the way hooks are defined and used by promise generation in
Eolian in the Eo API.

Instead of passing macro names as parameters to EO_FUNC_BODY macros,
just re-define the actual hooks when it is needed.
---
 src/bin/eolian/eo_generator.c  |  32 +++--
 src/bindings/eo_cxx/eo_inherit.hh  |   2 +-
 src/lib/eina/eina_promise.h|  19 +--
 src/lib/eo/Eo.h|  52 
 src/tests/eo/access/access_inherit.c   |   2 +-
 src/tests/eo/access/access_simple.c|   2 +-
 .../composite_objects/composite_objects_simple.c   | 132 ++---
 src/tests/eo/constructors/constructors_mixin.c |   2 +-
 src/tests/eo/constructors/constructors_simple.c|   6 +-
 .../function_overrides_inherit2.c  |   4 +-
 .../function_overrides/function_overrides_simple.c |   8 +-
 src/tests/eo/interface/interface_interface.c   |   2 +-
 src/tests/eo/interface/interface_interface2.c  |   2 +-
 src/tests/eo/interface/interface_simple.c  |   4 +-
 src/tests/eo/mixin/mixin_mixin.c   |   2 +-
 src/tests/eo/mixin/mixin_simple.c  |   4 +-
 src/tests/eo/signals/signals_simple.c  |   2 +-
 src/tests/eo/suite/eo_test_class_simple.c  |  18 +--
 src/tests/eo/suite/eo_test_general.c   |   4 +-
 src/tests/eo/suite/eo_test_threaded_calls.c|   6 +-
 src/tests/eolian/data/class_simple_ref.c   |  10 +-
 src/tests/eolian/data/override_ref.c   |  16 +--
 22 files changed, 174 insertions(+), 157 deletions(-)

diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 78e8108..c367027 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -546,16 +546,6 @@ eo_bind_func_generate(const Eolian_Class *class, const 
Eolian_Function *funcid,
   (ftype == EOLIAN_PROP_GET ||
eolian_function_object_is_const(funcid) ||
eolian_function_is_class(funcid))?"_CONST":"", 
func_env.lower_eo_func);
-if(has_promise)
-  {
- eina_strbuf_append_printf(eo_func_decl,
-   ", _EINA_PROMISE_BEFORE_HOOK(%s, %s%s) _EO_EMPTY_HOOK, 
_EINA_PROMISE_AFTER_HOOK(%s) _EO_EMPTY_HOOK",
-   promise_value_type, !rettype ? "void" : rettype,
-   eina_strbuf_string_get(impl_full_params),
-   promise_param_name);
-  }
-else
-  eina_strbuf_append_printf(eo_func_decl, ", _EO_EMPTY_HOOK, 
_EO_EMPTY_HOOK");
 if (!ret_is_void)
   {
  const char *val_str = NULL;
@@ -583,7 +573,29 @@ eo_bind_func_generate(const Eolian_Class *class, const 
Eolian_Function *funcid,
eina_strbuf_string_get(full_params));
   }
 eina_strbuf_append_printf(eo_func_decl, ");");
+
+if(has_promise)
+  {
+ eina_strbuf_append_printf(fbody,
+   "#undef _EO_API_BEFORE_HOOK\n#undef 
_EO_API_AFTER_HOOK\n#undef _EO_API_CALL_HOOK\n"
+   "#define _EO_API_BEFORE_HOOK 
_EINA_PROMISE_BEFORE_HOOK(%s, %s%s)\n"
+   "#define _EO_API_AFTER_HOOK 
_EINA_PROMISE_AFTER_HOOK(%s)\n"
+   "#define _EO_API_CALL_HOOK(x) 
_EINA_PROMISE_CALL_HOOK(EO_FUNC_CALL(%s))\n\n",
+   promise_value_type, !rettype ? "void" : 
rettype,
+   
eina_strbuf_string_get(impl_full_params),
+   promise_param_name,
+   eina_strbuf_string_get(params));
+  }
+
 eina_strbuf_append_printf(fbody, "%s\n", 
eina_strbuf_string_get(eo_func_decl));
+
+if(has_promise)
+  {
+ eina_strbuf_append_printf(fbody, "\n#undef 
_EO_API_BEFORE_HOOK\n#undef _EO_API_AFTER_HOOK\n#undef _EO_API_CALL_HOOK\n"
+   "#define _EO_API_BEFORE_HOOK\n#define 
_EO_API_AFTER_HOOK\n"
+   "#define _EO_API_CALL_HOOK(x) x\n");
+  }
+
 eina_strbuf_free(eo_func_decl);
  }
 
diff --git a/src/bindings/eo_cxx/eo_inherit.hh 
b/src/bindings/eo_cxx/eo_inherit.hh
index a73de37..a05d11f 100644
--- a/src/bindings/eo_cxx/eo_inherit.hh
+++ b/src/bindings/eo_cxx/eo_inherit.hh
@@ -30,7 +30,7 @@ Eo_Class const* create_class(eina::index_sequence);
 /// @param this_ The user data to be passed to 

[EGIT] [core/efl] master 01/01: vpath - use double-happy format as poposed by onefang

2016-04-10 Thread Carsten Haitzler
raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=eff86cd48a9f01ace61aadcfcb8241ec426d6262

commit eff86cd48a9f01ace61aadcfcb8241ec426d6262
Author: Carsten Haitzler (Rasterman) 
Date:   Mon Apr 11 11:45:46 2016 +0900

vpath - use double-happy format as poposed by onefang

vpath now uses a simley at the start and end of a special meta
location. i.e.:

(:home:)/blah.png
(:app.data:)/blah.jpg
---
 src/lib/efl/interfaces/efl_vpath.eo |  4 ++--
 src/lib/efl/interfaces/efl_vpath_core.c | 34 -
 2 files changed, 23 insertions(+), 15 deletions(-)

diff --git a/src/lib/efl/interfaces/efl_vpath.eo 
b/src/lib/efl/interfaces/efl_vpath.eo
index 021b317..a622db6 100644
--- a/src/lib/efl/interfaces/efl_vpath.eo
+++ b/src/lib/efl/interfaces/efl_vpath.eo
@@ -5,8 +5,8 @@ interface Efl.Vpath
"~/file.jpg"
"~username/file.png"
  And also other extended paths like:
-   "(:cache/file.png"
-   "(:videos/file.mp4"
+   "(:cache:)/file.png"
+   "(:videos:)/file.mp4"
...
  And in future:
"file:///blah.jpg"
diff --git a/src/lib/efl/interfaces/efl_vpath_core.c 
b/src/lib/efl/interfaces/efl_vpath_core.c
index d9aec69..6d7d422d 100644
--- a/src/lib/efl/interfaces/efl_vpath_core.c
+++ b/src/lib/efl/interfaces/efl_vpath_core.c
@@ -122,8 +122,8 @@ _efl_vpath_core_eo_base_constructor(Eo *obj, 
Efl_Vpath_Core_Data *pd)
//  we don't handle:
//   /etc/xdg/user-dirs.conf
//   /etc/xdg/user-dirs.defaults
-   //   (:config/user-dirs.conf
-   //   (:config/user-dirs.defaults
+   //   (:config:)/user-dirs.conf
+   //   (:config:)/user-dirs.defaults
 
// $XDG_DESKTOP_DIR="$HOME/Desktop"
ENV_HOME_SET("XDG_DESKTOP_DIR", "Desktop", "desktop");
@@ -324,22 +324,30 @@ _efl_vpath_core_efl_vpath_fetch(Eo *obj, 
Efl_Vpath_Core_Data *pd EINA_UNUSED, co
   {
  const char *p, *meta;
  char *name, buf[PATH_MAX];
+ Eina_Bool found = EINA_FALSE;
 
  for (p = path + 2; *p; p++)
{
-  if (*p =='/') break;
+  if ((p[0] ==':') && (p[1] == ')') && (p[2] == '/'))
+{
+   found = EINA_TRUE;
+   break;
+}
}
- name = alloca(p - path);
- strncpy(name, path + 2, p - path - 2);
- name[p - path - 2] = 0;
- eina_spinlock_take(&(pd->lock));
- meta = eina_hash_find(pd->meta, name);
- eina_spinlock_release(&(pd->lock));
- if (meta)
+ if (found)
{
-  snprintf(buf, sizeof(buf), "%s%s", meta, p);
-  efl_vpath_file_result_set(file, buf);
-  return file;
+  name = alloca(p - path);
+  strncpy(name, path + 2, p - path - 2);
+  name[p - path - 2] = 0;
+  eina_spinlock_take(&(pd->lock));
+  meta = eina_hash_find(pd->meta, name);
+  eina_spinlock_release(&(pd->lock));
+  if (meta)
+{
+   snprintf(buf, sizeof(buf), "%s%s", meta, p + 2);
+   efl_vpath_file_result_set(file, buf);
+   return file;
+}
}
   }
 // file:/// <- local file path uri

-- 




[EGIT] [core/efl] master 01/01: elementary: fix dependencies to build clean examples.

2016-04-10 Thread Cedric BAIL
cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=13059e96ba1ca6cc1013e80901ac8fa1e3eabca3

commit 13059e96ba1ca6cc1013e80901ac8fa1e3eabca3
Author: Cedric Bail 
Date:   Sun Apr 10 12:04:29 2016 -0700

elementary: fix dependencies to build clean examples.
---
 src/examples/elementary/Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/examples/elementary/Makefile.am 
b/src/examples/elementary/Makefile.am
index 86e9721..63117ea 100644
--- a/src/examples/elementary/Makefile.am
+++ b/src/examples/elementary/Makefile.am
@@ -238,6 +238,7 @@ codegen_example_generated.c codegen_example_generated.h: 
codegen_example.edj
 BUILT_SOURCES = codegen_example_generated.c codegen_example_generated.h
 
 codegen_example_SOURCES = \
+   codegen_example_generated.h \
codegen_example.c
 nodist_codegen_example_SOURCES = \
 codegen_example_generated.c \

-- 




[EGIT] [tools/edi] master 01/01: Opens welcome screen now under mouse, to follow enlightenments policy. Evas is picky about function call order.

2016-04-10 Thread Carsten Holtkamp
ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=803184016adfedb421a3bc483b1c8e3c4a448f4c

commit 803184016adfedb421a3bc483b1c8e3c4a448f4c
Author: Carsten Holtkamp 
Date:   Sun Apr 10 16:33:01 2016 +0100

Opens welcome screen now under mouse, to follow enlightenments policy. Evas 
is picky about function call order.
---
 src/bin/screens/edi_welcome.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/bin/screens/edi_welcome.c b/src/bin/screens/edi_welcome.c
index b0ad461..027a2d5 100644
--- a/src/bin/screens/edi_welcome.c
+++ b/src/bin/screens/edi_welcome.c
@@ -455,9 +455,6 @@ Evas_Object *edi_welcome_show()
elm_box_pack_end(box, button);
evas_object_show(button);
 
-   evas_object_resize(win, 480 * elm_config_scale_get(), 260 * 
elm_config_scale_get());
-   evas_object_show(win);
-
item = elm_naviframe_item_push(naviframe,
 "Choose Project",
 NULL,
@@ -466,6 +463,8 @@ Evas_Object *edi_welcome_show()
 NULL);
 
elm_naviframe_item_title_enabled_set(item, EINA_FALSE, EINA_FALSE);
+   evas_object_show(win);
+   evas_object_resize(win, 480 * elm_config_scale_get(), 260 * 
elm_config_scale_get());
 
return win;
 }

-- 




[EGIT] [core/efl] master 01/04: Ecore_Con: protect access to internal data

2016-04-10 Thread Daniel Zaoui
jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=49f0f09661cf11dc5c61291502a33fd027abd9b1

commit 49f0f09661cf11dc5c61291502a33fd027abd9b1
Author: Daniel Zaoui 
Date:   Tue Apr 5 10:32:25 2016 +0300

Ecore_Con: protect access to internal data
---
 src/lib/ecore_con/ecore_con.c | 11 +++
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c
index 4bca043..39edeb1 100644
--- a/src/lib/ecore_con/ecore_con.c
+++ b/src/lib/ecore_con/ecore_con.c
@@ -1407,8 +1407,11 @@ _efl_network_client_eo_base_destructor(Eo *obj, 
Efl_Network_Client_Data *cl)
  }
Efl_Network_Server_Data *host_server = eo_data_scope_get(cl->host_server, 
EFL_NETWORK_SERVER_CLASS);
 
-   host_server->clients = eina_list_remove(host_server->clients, obj);
-   --host_server->client_count;
+   if (host_server)
+ {
+host_server->clients = eina_list_remove(host_server->clients, obj);
+--host_server->client_count;
+ }
 
 #ifdef _WIN32
ecore_con_local_win32_client_del(obj);
@@ -1418,7 +1421,7 @@ _efl_network_client_eo_base_destructor(Eo *obj, 
Efl_Network_Client_Data *cl)
 
if (cl->buf) eina_binbuf_free(cl->buf);
 
-   if (host_server->type & ECORE_CON_SSL)
+   if (host_server && (host_server->type & ECORE_CON_SSL))
  ecore_con_ssl_client_shutdown(obj);
 
if (cl->fd_handler)
@@ -1517,7 +1520,7 @@ _ecore_con_cl_timer_update(Ecore_Con_Client *obj)
  {
 Efl_Network_Server_Data *host_server = 
eo_data_scope_get(cl->host_server, EFL_NETWORK_SERVER_CLASS);
 
-if (host_server->client_disconnect_time > 0)
+if (host_server && host_server->client_disconnect_time > 0)
   {
  if (cl->until_deletion)
{

-- 




[EGIT] [core/efl] master 03/04: Ecore Exe: check parameter validity

2016-04-10 Thread Daniel Zaoui
jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3e02f6fd4c8047856c828420d5709b11e8176a0a

commit 3e02f6fd4c8047856c828420d5709b11e8176a0a
Author: Daniel Zaoui 
Date:   Tue Apr 5 14:53:02 2016 +0300

Ecore Exe: check parameter validity
---
 src/lib/ecore/ecore_exe.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/ecore/ecore_exe.c b/src/lib/ecore/ecore_exe.c
index 97d5c16..3063b79 100644
--- a/src/lib/ecore/ecore_exe.c
+++ b/src/lib/ecore/ecore_exe.c
@@ -80,6 +80,7 @@ ecore_exe_pipe_run(const char *exe_cmd,
 EOLIAN static void
 _ecore_exe_command_set(Eo *obj EINA_UNUSED, Ecore_Exe_Data *pd, const char 
*cmd, Ecore_Exe_Flags flags)
 {
+   if (!cmd) return;
pd->cmd = strdup(cmd);
pd->flags = flags;
 }

-- 




[EGIT] [core/efl] master 04/04: CtxPopup: fix auto-hide property setting

2016-04-10 Thread Daniel Zaoui
jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9936b92ce3305339756f42333eb19a580a585e1a

commit 9936b92ce3305339756f42333eb19a580a585e1a
Author: Daniel Zaoui 
Date:   Sun Apr 10 14:55:05 2016 +0300

CtxPopup: fix auto-hide property setting

Set and get functions are inconsistent one with the other. When set
function is used with a certain value, one expects the get function
to return this value.
---
 src/lib/elementary/elc_ctxpopup.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib/elementary/elc_ctxpopup.c 
b/src/lib/elementary/elc_ctxpopup.c
index 89bbefa..0faeec6 100644
--- a/src/lib/elementary/elc_ctxpopup.c
+++ b/src/lib/elementary/elc_ctxpopup.c
@@ -1330,7 +1330,6 @@ _elm_ctxpopup_dismiss(Eo *obj, Elm_Ctxpopup_Data *sd)
 EOLIAN static void
 _elm_ctxpopup_auto_hide_disabled_set(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data 
*sd, Eina_Bool disabled)
 {
-   disabled = !!disabled;
if (sd->auto_hide == !disabled) return;
sd->auto_hide = !disabled;
 }
@@ -1338,7 +1337,7 @@ _elm_ctxpopup_auto_hide_disabled_set(Eo *obj EINA_UNUSED, 
Elm_Ctxpopup_Data *sd,
 EOLIAN static Eina_Bool
 _elm_ctxpopup_auto_hide_disabled_get(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data 
*sd)
 {
-   return sd->auto_hide;
+   return !sd->auto_hide;
 }
 
 EOLIAN static void

-- 




[EGIT] [core/efl] master 02/04: Edje: check parameter validity

2016-04-10 Thread Daniel Zaoui
jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b29340b3a1d0bd2664fcdf31e4e1e877aea966f1

commit b29340b3a1d0bd2664fcdf31e4e1e877aea966f1
Author: Daniel Zaoui 
Date:   Tue Apr 5 10:32:59 2016 +0300

Edje: check parameter validity
---
 src/lib/edje/edje_util.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/edje/edje_util.c b/src/lib/edje/edje_util.c
index 97e00f9..4a522d8 100644
--- a/src/lib/edje/edje_util.c
+++ b/src/lib/edje/edje_util.c
@@ -357,6 +357,7 @@ _edje_object_language_set(Eo *obj, Edje *ed, const char 
*locale)
char *signal;
size_t length;
 
+   if (!locale) return;
lookup = strstr(locale, ".");
length = lookup ? (size_t)(lookup - locale) : strlen(locale);
 

--