[EGIT] [core/enlightenment] master 01/01: fix complaint on making a system dir from desktop icon editing

2014-07-01 Thread Carsten Haitzler
raster pushed a commit to branch master.

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

commit cd9588f88a44f6c13c0e54f119ef18426a0a5288
Author: Carsten Haitzler (Rasterman) 
Date:   Tue Jul 1 16:23:28 2014 +0900

fix complaint on making a system dir from desktop icon editing
---
 src/bin/e_desktop_editor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/e_desktop_editor.c b/src/bin/e_desktop_editor.c
index 745830e..d3bc792 100644
--- a/src/bin/e_desktop_editor.c
+++ b/src/bin/e_desktop_editor.c
@@ -1004,7 +1004,7 @@ _e_desktop_edit_cb_icon_select_ok(void *data, E_Dialog 
*dia)
 EINA_LIST_FOREACH(xdg_dirs, l, icon_dir)
   {
  snprintf(buf, sizeof(buf), "%s/icons", icon_dir);
- if (!e_util_dir_check(buf)) continue;
+ if (!ecore_file_is_dir(buf)) continue;
  if (!e_util_strcmp(dir, buf))
{
   cfdata->icon = strdup(ecore_file_file_get(file));

-- 




[EGIT] [core/enlightenment] master 01/01: e menus - check if its an edje obj without having complaints or using eo

2014-07-01 Thread Carsten Haitzler
raster pushed a commit to branch master.

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

commit 7cce5642d606a9a06db61119cc3675b597952553
Author: Carsten Haitzler (Rasterman) 
Date:   Tue Jul 1 16:26:45 2014 +0900

e menus - check if its an edje obj without having complaints or using eo
---
 src/bin/e_menu.c | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_menu.c b/src/bin/e_menu.c
index a96c7ae..3ec1dbd 100644
--- a/src/bin/e_menu.c
+++ b/src/bin/e_menu.c
@@ -727,8 +727,11 @@ e_menu_item_label_set(E_Menu_Item *mi, const char *label)
 static Eina_Bool
 isedje(Evas_Object *obj)
 {
+   const char *type;
if (!obj) return EINA_FALSE;
-   if (edje_object_play_get(obj)) return EINA_TRUE;
+   type = evas_object_type_get(obj);
+   if (!obj) return EINA_FALSE;
+   if (!strcmp(type, "edje")) return EINA_TRUE;
return EINA_FALSE;
 }
 

-- 




[EGIT] [core/enlightenment] master 02/02: fix monitoring of non-existant files/dirs in clock module

2014-07-01 Thread Carsten Haitzler
raster pushed a commit to branch master.

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

commit fabf991909dce23d05f5228bf5fa6514ddcea0d8
Author: Carsten Haitzler (Rasterman) 
Date:   Tue Jul 1 16:35:58 2014 +0900

fix monitoring of non-existant files/dirs in clock module
---
 src/modules/clock/e_mod_main.c | 43 ++
 1 file changed, 31 insertions(+), 12 deletions(-)

diff --git a/src/modules/clock/e_mod_main.c b/src/modules/clock/e_mod_main.c
index ac28c23..2fead48 100644
--- a/src/modules/clock/e_mod_main.c
+++ b/src/modules/clock/e_mod_main.c
@@ -802,12 +802,28 @@ _clock_eio_error(void *d __UNUSED__, int type __UNUSED__, 
void *event)
(ev->monitor == clock_tz2_monitor) ||
(ev->monitor == clock_tzetc_monitor))
  {
-eio_monitor_del(clock_tz_monitor);
-clock_tz_monitor = eio_monitor_add("/etc/localtime");
-eio_monitor_del(clock_tz2_monitor);
-clock_tz2_monitor = eio_monitor_add("/etc/timezone");
-eio_monitor_del(clock_tzetc_monitor);
-clock_tzetc_monitor = eio_monitor_add("/etc");
+if (clock_tz_monitor)
+  {
+ eio_monitor_del(clock_tz_monitor);
+ clock_tz_monitor = NULL;
+  }
+if (ecore_file_exists("/etc/localtime"))
+  clock_tz_monitor = eio_monitor_add("/etc/localtime");
+
+if (clock_tz2_monitor)
+  {
+ eio_monitor_del(clock_tz2_monitor);
+ clock_tz2_monitor = NULL;
+  }
+if (ecore_file_exists("/etc/timezone"))
+  clock_tz2_monitor = eio_monitor_add("/etc/timezone");
+if (clock_tzetc_monitor)
+  {
+ eio_monitor_del(clock_tzetc_monitor);
+ clock_tzetc_monitor = NULL;
+  }
+if (ecore_file_is_dir("/etc"))
+  clock_tzetc_monitor = eio_monitor_add("/etc");
  }
return ECORE_CALLBACK_PASS_ON;
 }
@@ -867,9 +883,12 @@ e_modapi_init(E_Module *m)
  }
 
clock_config->module = m;
-   clock_tz_monitor = eio_monitor_add("/etc/localtime");
-   clock_tz2_monitor = eio_monitor_add("/etc/timezone");
-   clock_tzetc_monitor = eio_monitor_add("/etc");
+   if (ecore_file_exists("/etc/localtime"))
+ clock_tz_monitor = eio_monitor_add("/etc/localtime");
+   if (ecore_file_exists("/etc/timezone"))
+ clock_tz2_monitor = eio_monitor_add("/etc/timezone");
+   if (ecore_file_is_dir("/etc"))
+ clock_tzetc_monitor = eio_monitor_add("/etc");
E_LIST_HANDLER_APPEND(clock_eio_handlers, EIO_MONITOR_ERROR, 
_clock_eio_error, NULL);
E_LIST_HANDLER_APPEND(clock_eio_handlers, EIO_MONITOR_FILE_CREATED, 
_clock_eio_update, NULL);
E_LIST_HANDLER_APPEND(clock_eio_handlers, EIO_MONITOR_FILE_MODIFIED, 
_clock_eio_update, NULL);
@@ -921,9 +940,9 @@ e_modapi_shutdown(E_Module *m __UNUSED__)
 ecore_timer_del(update_today);
 update_today = NULL;
  }
-   eio_monitor_del(clock_tz_monitor);
-   eio_monitor_del(clock_tz2_monitor);
-   eio_monitor_del(clock_tzetc_monitor);
+   if (clock_tz_monitor) eio_monitor_del(clock_tz_monitor);
+   if (clock_tz2_monitor) eio_monitor_del(clock_tz2_monitor);
+   if (clock_tzetc_monitor) eio_monitor_del(clock_tzetc_monitor);
clock_tz_monitor = NULL;
clock_tz2_monitor = NULL;
clock_tzetc_monitor = NULL;

-- 




[EGIT] [core/enlightenment] master 01/02: fix eio moniotr complaint on non-existing dirs

2014-07-01 Thread Carsten Haitzler
raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=5c1c30cd6d5e22aeca4c5c633af3e9f2b9e86ecc

commit 5c1c30cd6d5e22aeca4c5c633af3e9f2b9e86ecc
Author: Carsten Haitzler (Rasterman) 
Date:   Tue Jul 1 16:31:10 2014 +0900

fix eio moniotr complaint on non-existing dirs
---
 src/bin/e_module.c | 34 --
 1 file changed, 20 insertions(+), 14 deletions(-)

diff --git a/src/bin/e_module.c b/src/bin/e_module.c
index f91810a..402ecc3 100644
--- a/src/bin/e_module.c
+++ b/src/bin/e_module.c
@@ -159,24 +159,30 @@ e_module_init(void)
 
if (mod_src_path)
  {
-mon = eio_monitor_stringshared_add(mod_src_path);
-ls = eio_file_direct_ls(mod_src_path, _module_filter_cb, 
_module_main_cb, _module_done_cb, _module_error_cb, NULL);
-_e_module_path_monitors = eina_list_append(_e_module_path_monitors, 
mon);
-_e_module_path_lists = eina_list_append(_e_module_path_lists, ls);
-return 1;
+if (ecore_file_is_dir(mod_src_path))
+  {
+ mon = eio_monitor_stringshared_add(mod_src_path);
+ ls = eio_file_direct_ls(mod_src_path, _module_filter_cb, 
_module_main_cb, _module_done_cb, _module_error_cb, NULL);
+ _e_module_path_monitors = 
eina_list_append(_e_module_path_monitors, mon);
+ _e_module_path_lists = eina_list_append(_e_module_path_lists, ls);
+ return 1;
+  }
  }
module_paths = e_path_dir_list_get(path_modules);
EINA_LIST_FREE(module_paths, epd)
  {
-void *data = NULL;
-
-mon = eio_monitor_stringshared_add(epd->dir);
-data = (intptr_t*)(long)!!strstr(epd->dir, e_user_dir_get());
-ls = eio_file_direct_ls(epd->dir, _module_filter_cb, _module_main_cb, 
_module_done_cb, _module_error_cb, data);
-_e_module_path_monitors = eina_list_append(_e_module_path_monitors, 
mon);
-_e_module_path_lists = eina_list_append(_e_module_path_lists, ls);
-eina_stringshare_del(epd->dir);
-free(epd);
+if (ecore_file_is_dir(epd->dir))
+  {
+ void *data = NULL;
+
+ mon = eio_monitor_stringshared_add(epd->dir);
+ data = (intptr_t*)(long)!!strstr(epd->dir, e_user_dir_get());
+ ls = eio_file_direct_ls(epd->dir, _module_filter_cb, 
_module_main_cb, _module_done_cb, _module_error_cb, data);
+ _e_module_path_monitors = 
eina_list_append(_e_module_path_monitors, mon);
+ _e_module_path_lists = eina_list_append(_e_module_path_lists, ls);
+ eina_stringshare_del(epd->dir);
+ free(epd);
+  }
  }
 
return 1;

-- 




[EGIT] [core/enlightenment] master 01/01: fix appmenu shutdown of dbus when it's null - no complaint

2014-07-01 Thread Carsten Haitzler
raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=5ad67ccfd2ec03729bedbab8c204633095d6f43f

commit 5ad67ccfd2ec03729bedbab8c204633095d6f43f
Author: Carsten Haitzler (Rasterman) 
Date:   Tue Jul 1 16:42:23 2014 +0900

fix appmenu shutdown of dbus when it's null - no complaint
---
 src/modules/appmenu/e_mod_dbus_registrar_server.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/appmenu/e_mod_dbus_registrar_server.c 
b/src/modules/appmenu/e_mod_dbus_registrar_server.c
index 2625ec9..2c16e1d 100644
--- a/src/modules/appmenu/e_mod_dbus_registrar_server.c
+++ b/src/modules/appmenu/e_mod_dbus_registrar_server.c
@@ -199,7 +199,7 @@ appmenu_dbus_registrar_server_init(E_AppMenu_Context *ctx)
 void
 appmenu_dbus_registrar_server_shutdown(E_AppMenu_Context *ctx)
 {
-   eldbus_service_interface_unregister(ctx->iface);
-   eldbus_name_release(ctx->conn, REGISTRAR_BUS, NULL, NULL);
+   if (ctx->iface) eldbus_service_interface_unregister(ctx->iface);
+   if (ctx->conn) eldbus_name_release(ctx->conn, REGISTRAR_BUS, NULL, NULL);
ctx->iface = NULL;
 }

-- 




Re: [E-devel] Developer hiatus

2014-07-01 Thread The Rasterman
On Sat, 28 Jun 2014 18:40:22 +0300 Kai Huuhko  said:

> I can't afford to pay for my internet connection meaning my
> contribution here will be lessened, if not interrupted entirely,
> starting from tomorrow.

what man? internet... ummm... thats sad to hear, but why? is it like just
insanely expensive there? wouldnt just downgrading your connection help?

forget e or open source... i'm wondering how you'll survive in general without
an internet connection these days... ?

-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[EGIT] [core/enlightenment] master 01/01: fix ibar focus tracking bug with deleted objects (ERR complaints)

2014-07-01 Thread Carsten Haitzler
raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=6a1c47a23c90feb4c1ac34441effdd4903508dbb

commit 6a1c47a23c90feb4c1ac34441effdd4903508dbb
Author: Carsten Haitzler (Rasterman) 
Date:   Tue Jul 1 17:13:42 2014 +0900

fix ibar focus tracking bug with deleted objects (ERR complaints)
---
 src/modules/ibar/e_mod_main.c | 9 +
 1 file changed, 9 insertions(+)

diff --git a/src/modules/ibar/e_mod_main.c b/src/modules/ibar/e_mod_main.c
index 65c47cd..8c92e53 100644
--- a/src/modules/ibar/e_mod_main.c
+++ b/src/modules/ibar/e_mod_main.c
@@ -1295,6 +1295,13 @@ _ibar_icon_menu_mouse_out(void *data, Evas *e 
EINA_UNUSED, Evas_Object *obj EINA
  ic->hide_timer = ecore_timer_add(0.5, _ibar_cb_out_hide_delay, ic);
 }
 
+static void
+_ibar_cb_icon_frame_del(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, 
void *event_info EINA_UNUSED)
+{
+   e_comp_object_signal_callback_del_full(data, "e,state,*focused", "e", 
_ibar_cb_icon_menu_focus_change, obj);
+   evas_object_smart_callback_del_full(data, "desk_change", 
_ibar_cb_icon_menu_desk_change, obj);
+}
+
 static Eina_Bool
 _ibar_icon_menu_client_add(IBar_Icon *ic, E_Client *ec)
 {
@@ -1311,6 +1318,8 @@ _ibar_icon_menu_client_add(IBar_Icon *ic, E_Client *ec)
img = e_comp_object_util_mirror_add(ec->frame);
e_comp_object_signal_callback_add(ec->frame, "e,state,*focused", "e", 
_ibar_cb_icon_menu_focus_change, it);
evas_object_smart_callback_add(ec->frame, "desk_change", 
_ibar_cb_icon_menu_desk_change, it);
+   evas_object_event_callback_add(it, EVAS_CALLBACK_DEL,
+  _ibar_cb_icon_frame_del, ec->frame);
evas_object_event_callback_add(img, EVAS_CALLBACK_DEL,
   _ibar_cb_icon_menu_img_del, it);
txt = e_client_util_name_get(ec);

-- 




[EGIT] [core/enlightenment] master 01/01: fix 2 ecore_exe magic complaints - inst->exe is garbage.

2014-07-01 Thread Carsten Haitzler
raster pushed a commit to branch master.

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

commit fc7d300e629bc65fa7b23d8b40980eea32fff591
Author: Carsten Haitzler (Rasterman) 
Date:   Tue Jul 1 17:29:01 2014 +0900

fix 2 ecore_exe magic complaints - inst->exe is garbage.

this is only the case when the inst is a phony - so filter these out
---
 src/bin/e_exec.c | 7 +--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_exec.c b/src/bin/e_exec.c
index b283d49..cf35049 100644
--- a/src/bin/e_exec.c
+++ b/src/bin/e_exec.c
@@ -679,7 +679,10 @@ _e_exec_instance_free(E_Exec_Instance *inst)
 e_object_unref(E_OBJECT(ec));
  }
if (inst->desktop) efreet_desktop_free(inst->desktop);
-   if (inst->exe) ecore_exe_data_set(inst->exe, NULL);
+   if (!inst->phony)
+ {
+if (inst->exe) ecore_exe_data_set(inst->exe, NULL);
+ }
free(inst);
 }
 
@@ -824,7 +827,7 @@ _e_exec_startup_id_pid_find(const Eina_Hash *hash 
__UNUSED__, const void *key __
 ((search->startup_id > 0) &&
  (search->startup_id == inst->startup_id)) ||
 
-((inst->exe) && (search->pid > 1) &&
+((inst->exe) && (search->pid > 1) && (!inst->phony) &&
  (search->pid == ecore_exe_pid_get(inst->exe
   {
  search->inst = inst;

-- 




[EGIT] [core/elementary] master 01/01: theme - fix "fixed size" edje complaint for desklock login box

2014-07-01 Thread Carsten Haitzler
raster pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=f23863ee290f7bffaa7b5f87576e84816f5262bb

commit f23863ee290f7bffaa7b5f87576e84816f5262bb
Author: Carsten Haitzler (Rasterman) 
Date:   Tue Jul 1 17:48:52 2014 +0900

theme - fix "fixed size" edje complaint for desklock login box
---
 data/themes/edc/desklock.edc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/data/themes/edc/desklock.edc b/data/themes/edc/desklock.edc
index 26035a2..a314469 100644
--- a/data/themes/edc/desklock.edc
+++ b/data/themes/edc/desklock.edc
@@ -35,6 +35,7 @@ group { name: "e/desklock/login_box";
   part { name: "logo_clip"; type: RECT;
  description { state: "default";
 min:  ;
+fixed: 1 1;
  }
  description { state: "hidden";
 visible: 0;

-- 




[EGIT] [admin/devs] master 01/01: garik: Update e-mail

2014-07-01 Thread Igor Murzov
garik pushed a commit to branch master.

http://git.enlightenment.org/admin/devs.git/commit/?id=2a4312d9ed3a7ad6ce9f64c19685698b7a398697

commit 2a4312d9ed3a7ad6ce9f64c19685698b7a398697
Author: Igor Murzov 
Date:   Tue Jul 1 13:16:52 2014 +0400

garik: Update e-mail
---
 developers/garik/info.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/developers/garik/info.txt b/developers/garik/info.txt
index dbb7191..0788bd2 100644
--- a/developers/garik/info.txt
+++ b/developers/garik/info.txt
@@ -2,7 +2,7 @@ Login:  garik
 IRC Nick:   GArik
 Name:   Igor Murzov
 Location:   Tver, Russia
-E-Mail: e-m...@date.by
-Managing:   webp loader for evas (?)
+E-Mail: i.mur...@yandex.ru
+Managing:   webp loader for evas
 Contributing:   gettext-related stuff
 Platform:   Slackware

-- 




Re: [E-devel] Model-View-Controller

2014-07-01 Thread The Rasterman
On Tue, 24 Jun 2014 12:25:53 -0300 Carlos Carvalho
 said:

child_select() and child_select_eval() are basically not documented. i can
guess that they may create a EMODEL_EVENT_CHILD_SELECTED later... but what is
the difference between these? no info there. and the docs for the events point
back to these  functions...

prop_list and prop_fetch are also basically undocumented. how do these interact
with EMODEL_EVENT_PROPERTY_CHANGE callbacks? i might guess prop_list calls the
callback on every property the object has once it has fetched them. how do i
know the calls are finished? imagine it finds one property every second and
keeps calling... for how long? when is it done? no info there and as best i
see, no way to figure it out. prop_fetch fetches a single prop so i know once i
get the cb after that... i have my prop. now more fun - what if i prop_list and
prop_fetch one after the other? ... fetches are delayed... but the same
callback. again - docs!

prop_set - this sets a prop. .. what does that have to do with
EMODEL_EVENT_PROPERTY_CHANGE event callbacks? no info. no docs. no explanation.
please... explain!

child_del - does this generate EMODEL_EVENT_CHILD_DEL event callbacks? or is it
just referred to for interest sake? docs!

children_fetch - less mysterious, i can guess the cb is called per child, every
child... so when is it finished calling? like above...

children_slice_fetch - like above, but now this indicates children may or may
not be fetched? that means i don't know when it''s done. i ftech range
50-150... but if some children don't exist.. what happens? do i get called? not
called? when am i done?...

even better - a lot of the above... what happens when i do another ftech while
one is active? does it cancel and start again? shouldn't there maybe be a way
of cancelling a pending async fetch of something too?

children_count_get - so what does this have to do with
EMODEL_EVENT_CHILDREN_COUNT_GET ? - docs are thin on the ground here

btw - gustavo's point of emodel eio belonging to eio is right.. :) for now this
is not important as i am taking the eio model as an example, so it'll
eventually move to eio where it belongs.

so still need a lot more explanations as to the intent of the api. :)

> < sending again, always forget the reply-all :( >
> 
> Hi raster!
> 
> I changed the code and adjusted the function names to match a more correct
> convention as you suggested.
> Now about the constructor, we'll implement as you suggested as well because
> it makes sense too.
> 
> Can you please update from our repo because I already pushed some changes
> to there, including more documentation too.
> 
> I know you are usually very busy so I paste the links here again, just in
> case:
> 
> efl:  https://github.com/expertisesolutions/efl.git  branch emodel-eolian
> elementary: https://github.com/expertisesolutions/elementary.git branch
> eo_mvc
> 
> I'll appreciate if you can take a second look :)
> 
> []s!
> 
> 
> On Thu, Jun 19, 2014 at 11:39 PM, Carsten Haitzler 
> wrote:
> 
> > On Thu, 19 Jun 2014 12:20:21 -0300 Carlos Carvalho
> >  said:
> >
> > > Hi raster :)
> > >
> > > please see below.
> > >
> > > On Thu, Jun 19, 2014 at 4:09 AM, Carsten Haitzler 
> > > wrote:
> > >
> > > > On Mon, 16 Jun 2014 12:00:20 -0300 Felipe Magno de Almeida
> > > >  said:
> > > >
> > > > Hey guys. just reading now. looking at emodel.eo a lot of these methods
> > > > have no
> > > > return just looking at properties for starters. also
> > > > child_select_get().
> > > >
> > > > this needs a lot more documentation as it's really mysterious as to
> > what
> > > > this
> > > > does and how it's meant to work. reading the code for the eio emodel i
> > can
> > > > see
> > > > that child_select_get() will call the EMODEL_EVENT_CHILD_SELECTED on
> > the
> > > > object
> > > > inside of this as long as a path is selected. what does load/unload do?
> > > >
> > >
> > > There are child_select_get and child_select_set.
> >
> > yes - but the get returns nothing. this seems really bizarre. it looks
> > like a
> > property by name, but doesn't work like one at all.
> >
> > > The former is used when the application needs to know which (and if)
> > child
> > > is currently selected by the user, so application adds itself as listener
> > > and call select_get and its callback will be invoked.
> >
> > and that's what is bizarre about it. normally you'd have
> >
> > blah_set(10);
> > int val = blah_get();
> >
> > this doesn't work like that so i star at it in bewilderment. it doesn't
> > follow
> > a pattern being used in most places in efl where a _set/_get pair are
> > basically
> > a property (some read-only, some write-only, some read/write so the get/get
> > existance define that). but this looks like a property, but then doesn't
> > work
> > like one. might i suggest a renaming? like child_select() and then
> > child_select_eval() or something... up for debate.
> >
> > and properties_get, property_get and property_set also have an is

Re: [E-devel] [webkit-efl] Stop to maintain EFL WK1 port

2014-07-01 Thread The Rasterman
On Wed, 25 Jun 2014 12:44:19 -0300 Felipe Magno de Almeida
 said:

> On Sat, Jun 21, 2014 at 1:20 AM, Cedric BAIL  wrote:
> > On Jun 21, 2014 2:26 AM, "Carsten Haitzler"  wrote:
> >> On Fri, 20 Jun 2014 21:25:54 -0300 Felipe Magno de Almeida
> >>  said:
> >> > On Fri, Jun 20, 2014 at 9:07 PM, Carsten Haitzler 
> >> > wrote:
> >> > > On Fri, 20 Jun 2014 15:02:37 -0300 Felipe Magno de Almeida
> >> > >  said:
> 
> [snip]
> 
> >> > I think it would make the port easier to mantain. It would give RAII,
> >> > STL-compatibility, easier callback support with lambda-support and a
> >> > value-based API. But that's just my opinion.
> >>
> >> elm web has a c api. will always have one. thus we then would have to
> > write a c+
> >> + elm web by hand AND a c+eo one. no. use eo to write one and efl++
> > exposes elm
> >> web. webkit api is internal then and thats how it should be.
> >
> > I think Felipe was referring to the internal of WebKit talking to efl which
> > is already in c++ and would likely benefit from using the c++ with no
> > penalty.
> 
> Exactly. Sorry for not being clear. I didn't mean use EFL++ for the
> elm_web, but for the WebKit backend for EFL. There's no reason to use
> the C EFL API by C++ code, IMO.

oh - then i don't know .. but i suspect the code is already done and using
efl's c interface inside the c++ code as that is working today already.

-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[EGIT] [core/efl] master 01/01: eolian-cxx: Make proper handling of namespaces.

2014-07-01 Thread Savio Sena
q66 pushed a commit to branch master.

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

commit ce63b16f400ae041d66a79f7d6d8c09838a7af12
Author: Savio Sena 
Date:   Tue Jul 1 10:55:45 2014 +0100

eolian-cxx: Make proper handling of namespaces.

Summary:
The generation of class prefixes was not taking into account the full
classname -- the namespace was not being prepended to it. Fixed that and
also re-organized the code a bit, removed some Wshadow warnings also.

This commit fixes 'make examples' and 'make check'.

Reviewers: tasn, cedric, q66

CC: felipealmeida, smohanty, cedric

Differential Revision: https://phab.enlightenment.org/D1100
---
 src/bin/eolian_cxx/convert.cc  | 53 -
 src/bin/eolian_cxx/eolian_wrappers.hh  | 55 +-
 src/bin/eolian_cxx/safe_strings.hh | 19 
 src/examples/evas/evas_cxx_rectangle.cc|  6 +--
 src/lib/eolian_cxx/eo_validate.hh  |  2 -
 .../grammar/inheritance_base_generator.hh  | 24 --
 6 files changed, 95 insertions(+), 64 deletions(-)

diff --git a/src/bin/eolian_cxx/convert.cc b/src/bin/eolian_cxx/convert.cc
index 0b7b836..e50dd46 100644
--- a/src/bin/eolian_cxx/convert.cc
+++ b/src/bin/eolian_cxx/convert.cc
@@ -22,15 +22,6 @@ namespace eolian_cxx {
 
 extern efl::eina::log_domain domain;
 
-static std::string
-_dedup_func_name(Eolian_Function func, const std::string &classn)
-{
-   const char *s = eolian_function_full_c_name_get(func, classn.c_str());
-   std::string ret(s);
-   eina_stringshare_del(s);
-   return ret;
-}
-
 static efl::eolian::parameters_container_type
 convert_eolian_parameters(Eina_List const* parameters,
   Eolian_Function_Type func_type)
@@ -55,33 +46,30 @@ convert_eolian_parameters(Eina_List const* parameters,
 }
 
 static efl::eolian::parameters_container_type
-convert_eolian_parameters(Eolian_Function const& function,
-  getter_t func_type)
+convert_eolian_parameters(Eolian_Function const& func, getter_t func_type)
 {
return convert_eolian_parameters
- (::eolian_parameters_list_get(function), func_type.value);
+ (::eolian_parameters_list_get(func), func_type.value);
 }
 
 static efl::eolian::parameters_container_type
-convert_eolian_parameters(Eina_List const* parameters,
-  getter_t func_type)
+convert_eolian_parameters(Eina_List const* parameters, getter_t func_type)
 {
return convert_eolian_parameters(parameters, func_type.value);
 }
 
 static efl::eolian::parameters_container_type
-convert_eolian_parameters(Eina_List const* parameters,
-  setter_t func_type)
+convert_eolian_parameters(Eina_List const* parameters, setter_t func_type)
 {
return convert_eolian_parameters(parameters, func_type.value);
 }
 
 static efl::eolian::parameters_container_type
-convert_eolian_parameters(Eolian_Function const& function)
+convert_eolian_parameters(Eolian_Function const& func)
 {
-   assert(function_type(function) != EOLIAN_PROPERTY);
+   assert(function_type(func) != EOLIAN_PROPERTY);
return convert_eolian_parameters
- (::eolian_parameters_list_get(function), function_type(function));
+ (::eolian_parameters_list_get(func), function_type(func));
 }
 
 static efl::eolian::functions_container_type
@@ -105,7 +93,7 @@ convert_eolian_property_to_functions(Eolian_Class const& 
klass)
  efl::eolian::eo_function get_;
  get_.type = efl::eolian::eo_function::regular_;
  get_.name = function_name(prop_) + "_get";
- get_.impl = _dedup_func_name(prop_, prefix) + "_get";
+ get_.impl = function_impl(prop_, prefix) + "_get";
 
  efl::eolian::eolian_type_instance ret =
function_return_type(prop_, eolian_cxx::getter);
@@ -157,7 +145,7 @@ convert_eolian_property_to_functions(Eolian_Class const& 
klass)
  efl::eolian::eo_function set_;
  set_.type = efl::eolian::eo_function::regular_;
  set_.name = function_name(prop_) + "_set";
- set_.impl = _dedup_func_name(prop_, prefix) + "_set";
+ set_.impl = function_impl(prop_, prefix) + "_set";
  set_.params = params;
  set_.ret = function_return_type(prop_, eolian_cxx::setter);
  set_.comment = convert_comments_function(prop_, 
eolian_cxx::setter);
@@ -241,7 +229,7 @@ convert_eolian_constructors(efl::eolian::eo_class& cls, 
Eolian_Class const& klas
  {
 Eolian_Function eo_constructor = static_cast(curr);
 efl::eolian::eo_constructor constructor;
-constructor.name = _dedup_func_name(eo_constructor, prefix);
+constructor.name = function_impl(eo_constructor, prefix);
 constructor.params = convert_eolian_parameters(eo_constructor);
 constructor.comme

[EGIT] [core/efl] master 01/03: edje - fix self feed complaint to be an ERR so we see it

2014-07-01 Thread Carsten Haitzler
raster pushed a commit to branch master.

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

commit d43c8eb4dd9d4fa6133cc625ed1be0b545cab854
Author: Carsten Haitzler (Rasterman) 
Date:   Mon Jun 23 09:42:03 2014 +0900

edje - fix self feed complaint to be an ERR so we see it
---
 src/lib/edje/edje_message_queue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/edje/edje_message_queue.c 
b/src/lib/edje/edje_message_queue.c
index 524ed75..588fad9 100644
--- a/src/lib/edje/edje_message_queue.c
+++ b/src/lib/edje/edje_message_queue.c
@@ -788,7 +788,7 @@ _edje_message_queue_process(void)
   }
 if (self_feed_debug)
   {
- WRN("Edje is in a self-feeding message loop (> 8 loops needed)");
+ ERR("Edje is in a self-feeding message loop (> 8 loops needed)");
   }
ecore_timer_add(0.0, _edje_dummy_timer, NULL);
  }

-- 




[EGIT] [core/efl] master 03/03: ecore_x - add some minor calls to be able to suspend/resume screensaver

2014-07-01 Thread Carsten Haitzler
raster pushed a commit to branch master.

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

commit 007dd02c56c5bc20a4d8d8f72a0e2617a4eb219a
Author: Carsten Haitzler (Rasterman) 
Date:   Tue Jul 1 15:44:12 2014 +0900

ecore_x - add some minor calls to be able to suspend/resume screensaver
---
 src/lib/ecore_x/Ecore_X.h   |  4 +++-
 src/lib/ecore_x/xcb/ecore_xcb_screensaver.c | 17 +
 src/lib/ecore_x/xlib/ecore_x_screensaver.c  | 16 
 3 files changed, 36 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_x/Ecore_X.h b/src/lib/ecore_x/Ecore_X.h
index da973c9..059fa94 100644
--- a/src/lib/ecore_x/Ecore_X.h
+++ b/src/lib/ecore_x/Ecore_X.h
@@ -1972,7 +1972,9 @@ EAPI int 
ecore_x_screensaver_interval_get(void);
 EAPI void
ecore_x_screensaver_event_listen_set(Eina_Bool on);
 EAPI Eina_Bool   
ecore_x_screensaver_custom_blanking_enable(void); /** @since 1.7 */
 EAPI Eina_Bool   
ecore_x_screensaver_custom_blanking_disable(void); /** @since 1.7 */
-   
+EAPI voidecore_x_screensaver_supend(void);
+EAPI voidecore_x_screensaver_resume(void);
+
 /* FIXME: these funcs need categorising */
 
 typedef struct _Ecore_X_Window_Attributes
diff --git a/src/lib/ecore_x/xcb/ecore_xcb_screensaver.c 
b/src/lib/ecore_x/xcb/ecore_xcb_screensaver.c
index 6106450..fe13fb0 100644
--- a/src/lib/ecore_x/xcb/ecore_xcb_screensaver.c
+++ b/src/lib/ecore_x/xcb/ecore_xcb_screensaver.c
@@ -368,3 +368,20 @@ ecore_x_screensaver_custom_blanking_disable(void)
return EINA_FALSE;
 #endif
 }
+
+
+EAPI void
+ecore_x_screensaver_supend(void)
+{
+#ifdef ECORE_XCB_SCREENSAVER
+   xcb_screensaver_suspend(_ecore_xcb_conn, 1);
+#endif
+}
+
+EAPI void
+ecore_x_screensaver_resume(void)
+{
+#ifdef ECORE_XCB_SCREENSAVER
+   xcb_screensaver_suspend(_ecore_xcb_conn, 0);
+#endif
+}
diff --git a/src/lib/ecore_x/xlib/ecore_x_screensaver.c 
b/src/lib/ecore_x/xlib/ecore_x_screensaver.c
index 3688a44..e334ca2 100644
--- a/src/lib/ecore_x/xlib/ecore_x_screensaver.c
+++ b/src/lib/ecore_x/xlib/ecore_x_screensaver.c
@@ -202,3 +202,19 @@ ecore_x_screensaver_custom_blanking_disable(void)
 #endif /* ifdef ECORE_XSS */
 }
 
+EAPI void
+ecore_x_screensaver_supend(void)
+{
+#ifdef ECORE_XSS
+   XScreenSaverSuspend(_ecore_x_disp, 1);
+#endif /* ifdef ECORE_XSS */
+}
+
+EAPI void
+ecore_x_screensaver_resume(void)
+{
+#ifdef ECORE_XSS
+   XScreenSaverSuspend(_ecore_x_disp, 0);
+#endif /* ifdef ECORE_XSS */
+}
+

-- 




[EGIT] [core/enlightenment] master 01/01: whitespace/formatting cleanups in shot module

2014-07-01 Thread Carsten Haitzler
raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=784813ad4df9f876fd67bceb51d82bbede7cc182

commit 784813ad4df9f876fd67bceb51d82bbede7cc182
Author: Carsten Haitzler (Rasterman) 
Date:   Tue Jul 1 19:51:04 2014 +0900

whitespace/formatting cleanups in shot module
---
 src/modules/shot/e_mod_main.c | 180 +-
 1 file changed, 90 insertions(+), 90 deletions(-)

diff --git a/src/modules/shot/e_mod_main.c b/src/modules/shot/e_mod_main.c
index 6141d0b..aff82b0 100644
--- a/src/modules/shot/e_mod_main.c
+++ b/src/modules/shot/e_mod_main.c
@@ -78,7 +78,7 @@ static void
 _key_down_cb(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj 
__UNUSED__, void *event)
 {
Evas_Event_Key_Down *ev = event;
-   
+
if (!strcmp(ev->key, "Tab"))
  {
 if 
(evas_key_modifier_is_set(evas_key_modifier_get(e_win_evas_get(win)), "Shift"))
@@ -121,16 +121,16 @@ _key_down_cb(void *data __UNUSED__, Evas *e __UNUSED__, 
Evas_Object *obj __UNUSE
  (!strcmp(ev->key, "space"
  {
 Evas_Object *o = NULL;
-
+
 if ((o_content) && (e_widget_focus_get(o_content)))
-   o = e_widget_focused_object_get(o_content);
+  o = e_widget_focused_object_get(o_content);
 else
-   o = e_widget_focused_object_get(o_box);
+  o = e_widget_focused_object_get(o_box);
 if (o) e_widget_activate(o);
- }
+ }
else if (!strcmp(ev->key, "Escape"))
  _win_cancel_cb(NULL, NULL);
-}
+}
 
 static void
 _save_key_down_cb(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj 
__UNUSED__, void *event)
@@ -140,22 +140,22 @@ _save_key_down_cb(void *data __UNUSED__, Evas *e 
__UNUSED__, Evas_Object *obj __
  _file_select_ok_cb(NULL, fsel_dia);
else if (!strcmp(ev->key, "Escape"))
  _file_select_cancel_cb(NULL, fsel_dia);
-}
+}
 
 static void
 _screen_change_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void 
*event_info __UNUSED__)
 {
Eina_List *l;
E_Zone *z;
-   
+
EINA_LIST_FOREACH(scomp->zones, l, z)
  {
 if (screen == -1)
-   evas_object_color_set(o_rectdim[z->num], 0, 0, 0, 0);
+  evas_object_color_set(o_rectdim[z->num], 0, 0, 0, 0);
 else if (screen == (int)z->num)
-   evas_object_color_set(o_rectdim[z->num], 0, 0, 0, 0);
+  evas_object_color_set(o_rectdim[z->num], 0, 0, 0, 0);
 else
-   evas_object_color_set(o_rectdim[z->num], 0, 0, 0, 200);
+  evas_object_color_set(o_rectdim[z->num], 0, 0, 0, 200);
  }
 }
 
@@ -163,18 +163,18 @@ static void
 _save_to(const char *file)
 {
char opts[256];
-   
+
if (eina_str_has_extension(file, ".png"))
-  snprintf(opts, sizeof(opts), "compress=%i", 9);
+ snprintf(opts, sizeof(opts), "compress=%i", 9);
else
-  snprintf(opts, sizeof(opts), "quality=%i", quality);
+ snprintf(opts, sizeof(opts), "quality=%i", quality);
if (screen == -1)
  {
 if (o_img)
   {
  if (!evas_object_image_save(o_img, file, NULL, opts))
- e_util_dialog_show(_("Error saving screenshot file"),
-_("Path: %s"), file);
+   e_util_dialog_show(_("Error saving screenshot file"),
+  _("Path: %s"), file);
   }
  }
else
@@ -182,7 +182,7 @@ _save_to(const char *file)
 Evas_Object *o;
 Eina_List *l;
 E_Zone *z = NULL;
-
+
 EINA_LIST_FOREACH(scomp->zones, l, z)
   {
  if (screen == (int)z->num) break;
@@ -192,7 +192,7 @@ _save_to(const char *file)
   {
  unsigned char *src, *dst, *s, *d;
  int sstd, dstd, y;
- 
+
  o = evas_object_image_add(evas_object_evas_get(o_img));
  evas_object_image_colorspace_set(o, EVAS_COLORSPACE_ARGB);
  evas_object_image_alpha_set(o, EINA_FALSE);
@@ -211,8 +211,8 @@ _save_to(const char *file)
d += dstd;
 }
   if (!evas_object_image_save(o, file, NULL, opts))
-  e_util_dialog_show(_("Error saving screenshot file"),
- _("Path: %s"), file);
+e_util_dialog_show(_("Error saving screenshot file"),
+   _("Path: %s"), file);
}
 
  evas_object_del(o);
@@ -230,11 +230,11 @@ _file_select_ok_cb(void *data __UNUSED__, E_Dialog *dia)
if ((!file) || (!file[0]) || ((!eina_str_has_extension(file, ".jpg")) && 
(!eina_str_has_extension(file, ".png"
  {
 e_util_dialog_show
-   (_("Error - Unknown format"),
-   _("File has an unspecified extension."
- "Please use '.jpg' or '.png' extensions"
- "only as other formats are not"
-  

[EGIT] [core/efl] master 02/03: update po files

2014-07-01 Thread Carsten Haitzler
raster pushed a commit to branch master.

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

commit eeb66d4d322a2b8cdf5c31f3aa181ea29aeda623
Author: Carsten Haitzler (Rasterman) 
Date:   Mon Jun 23 12:57:52 2014 +0900

update po files
---
 po/ca.po  | 80 +++
 po/gl.po  | 80 +++
 po/lt.po  | 80 +++
 po/tr.po  | 79 +++---
 src/lib/edje/edje_message_queue.c |  2 +-
 5 files changed, 161 insertions(+), 160 deletions(-)

diff --git a/po/ca.po b/po/ca.po
index 4c713f0..5535479 100644
--- a/po/ca.po
+++ b/po/ca.po
@@ -7,17 +7,17 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: Efl\n"
-"Report-Msgid-Bugs-To: $MSGID_BUGS_ADDRESS\n"
-"POT-Creation-Date: 2014-01-21 11:50+0100\n"
+"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
+"POT-Creation-Date: 2014-06-23 08:12+0900\n"
 "PO-Revision-Date: 2014-05-26 21:11+\n"
 "Last-Translator: joancoll \n"
 "Language-Team: Catalan\n"
+"Language: ca\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "X-Launchpad-Export-Date: 2014-05-27 05:40+\n"
 "X-Generator: Launchpad (build 17017)\n"
-"Language: ca\n"
 
 #: src/lib/ecore/ecore_getopt.c:93
 msgid "Version:"
@@ -52,157 +52,157 @@ msgstr "Per defecte: "
 msgid "Choices: "
 msgstr "Eleccions: "
 
-#: src/lib/ecore/ecore_getopt.c:647 src/lib/ecore/ecore_getopt.c:648
+#: src/lib/ecore/ecore_getopt.c:648 src/lib/ecore/ecore_getopt.c:649
 msgid "No categories available."
 msgstr "No hi ha categories disponibles."
 
-#: src/lib/ecore/ecore_getopt.c:652
+#: src/lib/ecore/ecore_getopt.c:653
 msgid "Categories: "
 msgstr "Categories: "
 
-#: src/lib/ecore/ecore_getopt.c:774
+#: src/lib/ecore/ecore_getopt.c:775
 msgid "Options:\n"
 msgstr "Opcions:\n"
 
-#: src/lib/ecore/ecore_getopt.c:783
+#: src/lib/ecore/ecore_getopt.c:784
 msgid "Positional arguments:\n"
 msgstr "Arguments posicionals:\n"
 
-#: src/lib/ecore/ecore_getopt.c:869
+#: src/lib/ecore/ecore_getopt.c:870
 #, c-format
 msgid "ERROR: unknown category '%s'.\n"
 msgstr "ERROR: categoria desconeguda '%s'.\n"
 
-#: src/lib/ecore/ecore_getopt.c:973
+#: src/lib/ecore/ecore_getopt.c:974
 #, c-format
 msgid "ERROR: unknown option --%s.\n"
 msgstr "ERROR: opció desconeguda --%s.\n"
 
-#: src/lib/ecore/ecore_getopt.c:975
+#: src/lib/ecore/ecore_getopt.c:976
 #, c-format
 msgid "ERROR: unknown option -%c.\n"
 msgstr "ERROR: opció desconeguda -%c.\n"
 
-#: src/lib/ecore/ecore_getopt.c:1038
+#: src/lib/ecore/ecore_getopt.c:1039
 msgid "ERROR: "
 msgstr "ERROR: "
 
-#: src/lib/ecore/ecore_getopt.c:1131 src/lib/ecore/ecore_getopt.c:1268
-#: src/lib/ecore/ecore_getopt.c:1284 src/lib/ecore/ecore_getopt.c:1299
-#: src/lib/ecore/ecore_getopt.c:1316 src/lib/ecore/ecore_getopt.c:1363
-#: src/lib/ecore/ecore_getopt.c:1483 src/lib/ecore/ecore_getopt.c:1524
+#: src/lib/ecore/ecore_getopt.c:1132 src/lib/ecore/ecore_getopt.c:1269
+#: src/lib/ecore/ecore_getopt.c:1285 src/lib/ecore/ecore_getopt.c:1300
+#: src/lib/ecore/ecore_getopt.c:1317 src/lib/ecore/ecore_getopt.c:1364
+#: src/lib/ecore/ecore_getopt.c:1484 src/lib/ecore/ecore_getopt.c:1525
 msgid "value has no pointer set.\n"
 msgstr "no s'ha definit el valor.\n"
 
-#: src/lib/ecore/ecore_getopt.c:1163 src/lib/ecore/ecore_getopt.c:1383
+#: src/lib/ecore/ecore_getopt.c:1164 src/lib/ecore/ecore_getopt.c:1384
 #, c-format
 msgid "unknown boolean value %s.\n"
 msgstr "valor booleà desconegut %s.\n"
 
-#: src/lib/ecore/ecore_getopt.c:1214 src/lib/ecore/ecore_getopt.c:1471
+#: src/lib/ecore/ecore_getopt.c:1215 src/lib/ecore/ecore_getopt.c:1472
 #, c-format
 msgid "invalid number format %s\n"
 msgstr "format numèric invàlid %s\n"
 
-#: src/lib/ecore/ecore_getopt.c:1329
+#: src/lib/ecore/ecore_getopt.c:1330
 #, c-format
 msgid "invalid choice \"%s\". Valid values are: "
 msgstr "elecció invàlida \"%s\". Els valors vàlids són: "
 
-#: src/lib/ecore/ecore_getopt.c:1357
+#: src/lib/ecore/ecore_getopt.c:1358
 msgid "missing parameter to append.\n"
 msgstr "falta paràmetre per afegir.\n"
 
-#: src/lib/ecore/ecore_getopt.c:1461
+#: src/lib/ecore/ecore_getopt.c:1462
 msgid "could not parse value.\n"
 msgstr "impossible analitzar el valor.\n"
 
-#: src/lib/ecore/ecore_getopt.c:1518
+#: src/lib/ecore/ecore_getopt.c:1519
 msgid "missing parameter.\n"
 msgstr "manca paràmetre.\n"
 
-#: src/lib/ecore/ecore_getopt.c:1531
+#: src/lib/ecore/ecore_getopt.c:1532
 msgid "missing callback function!\n"
 msgstr "manca funció d'invocació!\n"
 
-#: src/lib/ecore/ecore_getopt.c:1562
+#: src/lib/ecore/ecore_getopt.c:1563
 msgid "no version was defined.\n"
 msgstr "no s'ha definit la versió.\n"
 
-#: src/lib/ecore/ecore_getopt.c:1579
+#: src/lib/ecore/ecore_getopt.c:1580
 msgid "no copyright was defined.\n"
 msgstr "no s'ha de

[EGIT] [core/efl] master 02/02: fix static jpeg saver usage due to defines being removed from config.h

2014-07-01 Thread Carsten Haitzler
raster pushed a commit to branch master.

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

commit ae63d023dd968d7d8f607d0ae2a69a87eae7be24
Author: Carsten Haitzler (Rasterman) 
Date:   Tue Jul 1 20:22:42 2014 +0900

fix static jpeg saver usage due to defines being removed from config.h
---
 src/lib/evas/file/evas_module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/evas/file/evas_module.c b/src/lib/evas/file/evas_module.c
index 77fec09..52de350 100644
--- a/src/lib/evas/file/evas_module.c
+++ b/src/lib/evas/file/evas_module.c
@@ -242,7 +242,7 @@ static const struct {
 #ifdef EVAS_STATIC_BUILD_EET
   EVAS_EINA_STATIC_MODULE_USE(image_saver, eet),
 #endif
-#if defined (EVAS_BUILD_SAVER_JPEG) && defined (EVAS_STATIC_BUILD_JPEG)
+#ifdef EVAS_STATIC_BUILD_JPEG
   EVAS_EINA_STATIC_MODULE_USE(image_saver, jpeg),
 #endif
 #ifdef EVAS_STATIC_BUILD_PNG

-- 




[EGIT] [core/efl] master 01/02: formatting - convert tabs to whitespace

2014-07-01 Thread Carsten Haitzler
raster pushed a commit to branch master.

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

commit 12dc40fa3b98600fe23280c901bab324a1184623
Author: Carsten Haitzler (Rasterman) 
Date:   Tue Jul 1 19:57:04 2014 +0900

formatting - convert tabs to whitespace
---
 src/lib/evas/common/evas_image_save.c | 30 +++---
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/src/lib/evas/common/evas_image_save.c 
b/src/lib/evas/common/evas_image_save.c
index faf1e6e..9a6a762 100644
--- a/src/lib/evas/common/evas_image_save.c
+++ b/src/lib/evas/common/evas_image_save.c
@@ -19,17 +19,17 @@ evas_common_save_image_to_file(RGBA_Image *im, const char 
*file, const char *key
p = strrchr(file, '.');
if (p)
  {
-   p++;
+p++;
 
-   if (!strcasecmp(p, "png"))
+if (!strcasecmp(p, "png"))
   saver = "png";
-   if ((!strcasecmp(p, "jpg")) || (!strcasecmp(p, "jpeg")) ||
-   (!strcasecmp(p, "jfif")))
+if ((!strcasecmp(p, "jpg")) || (!strcasecmp(p, "jpeg")) ||
+(!strcasecmp(p, "jfif")))
   saver = "jpeg";
-   if ((!strcasecmp(p, "eet")) || (!strcasecmp(p, "edj")) ||
+if ((!strcasecmp(p, "eet")) || (!strcasecmp(p, "edj")) ||
 (!strcasecmp(p, "eap")))
   saver = "eet";
-   if (!strcasecmp(p, "webp"))
+if (!strcasecmp(p, "webp"))
   saver = "webp";
 if (!strcasecmp(p, "tgv"))
   saver = "tgv";
@@ -39,17 +39,17 @@ evas_common_save_image_to_file(RGBA_Image *im, const char 
*file, const char *key
  {
 Evas_Module *em;
 
-   em = evas_module_find_type(EVAS_MODULE_TYPE_IMAGE_SAVER, saver);
-   if (em)
- {
-evas_module_use(em);
-if (evas_module_load(em))
-  {
- evas_image_save_func = em->functions;
+em = evas_module_find_type(EVAS_MODULE_TYPE_IMAGE_SAVER, saver);
+if (em)
+  {
+ evas_module_use(em);
+ if (evas_module_load(em))
+   {
+  evas_image_save_func = em->functions;
   return evas_image_save_func->image_save(im, file, key, 
quality,
   compress, encoding);
-  }
- }
+   }
+  }
  }
return 0;
 }

-- 




[EGIT] [core/efl] master 01/01: fix tabe/whitespace format issues in evas module

2014-07-01 Thread Carsten Haitzler
raster pushed a commit to branch master.

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

commit 64d54ed96484fddb4ca80b6044a5b0976d8c5c6d
Author: Carsten Haitzler (Rasterman) 
Date:   Tue Jul 1 20:25:04 2014 +0900

fix tabe/whitespace format issues in evas module
---
 src/lib/evas/file/evas_module.c | 74 -
 1 file changed, 37 insertions(+), 37 deletions(-)

diff --git a/src/lib/evas/file/evas_module.c b/src/lib/evas/file/evas_module.c
index 52de350..7d23d45 100644
--- a/src/lib/evas/file/evas_module.c
+++ b/src/lib/evas/file/evas_module.c
@@ -37,10 +37,10 @@ _evas_module_append(Eina_List *list, char *path)
 {
if (path)
  {
-   if (evas_file_path_exists(path))
- list = eina_list_append(list, path);
-   else
- free(path);
+if (evas_file_path_exists(path))
+  list = eina_list_append(list, path);
+else
+  free(path);
  }
return list;
 }
@@ -95,18 +95,18 @@ evas_module_paths_init(void)
path = PACKAGE_LIB_DIR "/evas/modules";
if (!eina_list_search_unsorted(evas_module_paths, (Eina_Compare_Cb) strcmp, 
path))
  {
-   path = strdup(path);
-   if (path)
- evas_module_paths = _evas_module_append(evas_module_paths, path);
+path = strdup(path);
+if (path)
+  evas_module_paths = _evas_module_append(evas_module_paths, path);
  }
 #endif
 }
 
-#define EVAS_EINA_STATIC_MODULE_DEFINE(Tn, Name)   \
-  Eina_Bool evas_##Tn##_##Name##_init(void);   \
+#define EVAS_EINA_STATIC_MODULE_DEFINE(Tn, Name) \
+  Eina_Bool evas_##Tn##_##Name##_init(void); \
   void evas_##Tn##_##Name##_shutdown(void);
 
-#define EVAS_EINA_STATIC_MODULE_USE(Tn, Name)  \
+#define EVAS_EINA_STATIC_MODULE_USE(Tn, Name) \
   { evas_##Tn##_##Name##_init, evas_##Tn##_##Name##_shutdown }
 
 #if !EVAS_MODULE_NO_ENGINES
@@ -300,8 +300,8 @@ evas_module_register(const Evas_Module_Api *module, 
Evas_Module_Type type)
 
if (type == EVAS_MODULE_TYPE_ENGINE)
  {
-   eina_array_push(evas_engines, em);
-   em->id_engine = eina_array_count(evas_engines);
+eina_array_push(evas_engines, em);
+em->id_engine = eina_array_count(evas_engines);
  }
 
eina_hash_direct_add(evas_modules[type], module->name, em);
@@ -368,7 +368,7 @@ evas_module_engine_list(void)
  eina_iterator_free(it);
   }
  }
-   
+
EINA_ARRAY_ITER_NEXT(evas_engines, i, em, iterator)
  {
 EINA_LIST_FOREACH(r, ll, s2)
@@ -456,23 +456,23 @@ evas_module_find_type(Evas_Module_Type type, const char 
*name)
 
 if (!evas_file_path_is_file(buffer)) continue;
 
-   en = eina_module_new(buffer);
-   if (!en) continue;
+en = eina_module_new(buffer);
+if (!en) continue;
 
-   if (!eina_module_load(en))
- {
-eina_module_free(en);
-continue;
- }
+if (!eina_module_load(en))
+  {
+ eina_module_free(en);
+ continue;
+  }
 
-   em = eina_hash_find(evas_modules[type], name);
-   if (em)
- {
-eina_evas_modules = eina_list_append(eina_evas_modules, en);
-return em;
- }
+em = eina_hash_find(evas_modules[type], name);
+if (em)
+  {
+ eina_evas_modules = eina_list_append(eina_evas_modules, en);
+ return em;
+  }
 
-   eina_module_free(en);
+eina_module_free(en);
  }
 
return NULL;
@@ -561,9 +561,9 @@ evas_module_clean(void)
 
if (noclean == -1)
  {
-   if (getenv("EVAS_NOCLEAN"))
+if (getenv("EVAS_NOCLEAN"))
   noclean = 1;
-   else 
+else
   noclean = 0;
  }
if (noclean == 1) return;
@@ -640,14 +640,14 @@ _evas_module_engine_inherit(Evas_Func *funcs, char *name)
em = evas_module_find_type(EVAS_MODULE_TYPE_ENGINE, name);
if (em)
  {
-   if (evas_module_load(em))
- {
-/* FIXME: no way to unref */
-evas_module_ref(em);
-evas_module_use(em);
-*funcs = *((Evas_Func *)(em->functions));
-return 1;
- }
+if (evas_module_load(em))
+  {
+ /* FIXME: no way to unref */
+ evas_module_ref(em);
+ evas_module_use(em);
+ *funcs = *((Evas_Func *)(em->functions));
+ return 1;
+  }
  }
return 0;
 }

-- 




[EGIT] [core/efl] master 01/01: ecore_drm: Check for currently used CRTC first before searching others

2014-07-01 Thread Stefan Schmidt
stefan pushed a commit to branch master.

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

commit a7428edeb41efe67b0a36bb976d54666a648fd58
Author: Stefan Schmidt 
Date:   Tue Jul 1 15:01:38 2014 +0200

ecore_drm: Check for currently used CRTC first before searching others

If we have a CRTC already configured save the work to search for a new
crtc and encoder combination that works with this connector. Just use what
we have.

Also always check if the CRTC is already allocated for a different 
connection
before using it.
---
 src/lib/ecore_drm/ecore_drm_output.c | 33 +++--
 1 file changed, 27 insertions(+), 6 deletions(-)

diff --git a/src/lib/ecore_drm/ecore_drm_output.c 
b/src/lib/ecore_drm/ecore_drm_output.c
index b4abdd6..8f10614 100644
--- a/src/lib/ecore_drm/ecore_drm_output.c
+++ b/src/lib/ecore_drm/ecore_drm_output.c
@@ -201,31 +201,52 @@ _ecore_drm_output_software_render(Ecore_Drm_Output 
*output)
if (!output->current_mode) return;
 }
 
-static int 
+static int
 _ecore_drm_output_crtc_find(Ecore_Drm_Device *dev, drmModeRes *res, 
drmModeConnector *conn)
 {
drmModeEncoder *enc;
unsigned int p;
-   int i = 0, j = 0;
+   int i, j;
+   int crtc = -1;
 
+   /* Trying to first use the currently active encoder and crtc combination to 
avoid a
+* full modeset */
+   if (conn->encoder_id)
+ enc = drmModeGetEncoder(dev->drm.fd, conn->encoder_id);
+   else
+ enc = NULL;
+
+   if (enc && enc->crtc_id)
+ {
+crtc = enc->crtc_id;
+drmModeFreeEncoder(enc);
+/* Check is this CRTC is already allocated */
+if  (!(dev->crtc_allocator & (1 << crtc)))
+  return crtc;
+ }
+
+   /* We did not find an existing encoder + crtc combination. Loop through all 
of them until we
+* find the first working combination */
for (j = 0; j < conn->count_encoders; j++)
  {
 /* get the encoder on this connector */
 if (!(enc = drmModeGetEncoder(dev->drm.fd, conn->encoders[j])))
   {
- ERR("Failed to get encoder: %m");
- return -1;
+ WRN("Failed to get encoder: %m");
+ continue;
   }
 
 p = enc->possible_crtcs;
 drmModeFreeEncoder(enc);
 
+   /* Walk over all CRTCs */
 for (i = 0; i < res->count_crtcs; i++)
   {
- if ((p & (1 << i)) && 
+ /* Does the CRTC match the list of possible CRTCs from the 
encoder? */
+ if ((p & (1 << i)) &&
  (!(dev->crtc_allocator & (1 << res->crtcs[i]
{
-  return i;
+  return res->crtcs[i];
}
   }
  }

-- 




[EGIT] [core/elementary] master 01/01: atspi: simplify key event handling

2014-07-01 Thread Lukasz Stanislawski
stanluk pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=389f300d88c292dc8c5e0c5863a32f92c3aa8e9e

commit 389f300d88c292dc8c5e0c5863a32f92c3aa8e9e
Author: Lukasz Stanislawski 
Date:   Wed Jun 25 10:54:02 2014 +0200

atspi: simplify key event handling

Keyboard events are now directly handled by atspi_bridge instead of
elm_widget.
---
 src/lib/elm_atspi_bridge.c | 39 +++
 src/lib/elm_priv.h |  1 -
 src/lib/elm_widget.c   |  3 ---
 3 files changed, 19 insertions(+), 24 deletions(-)

diff --git a/src/lib/elm_atspi_bridge.c b/src/lib/elm_atspi_bridge.c
index 4aca86a..bdfea92 100644
--- a/src/lib/elm_atspi_bridge.c
+++ b/src/lib/elm_atspi_bridge.c
@@ -62,6 +62,7 @@ static unsigned long _object_property_broadcast_mask;
 static unsigned long _object_children_broadcast_mask;
 static unsigned long long _object_state_broadcast_mask;
 static unsigned long long _window_signal_broadcast_mask;
+static Ecore_Event_Handler *_key_hdl;
 
 static Eina_Bool _state_changed_signal_send(void *data, Eo *obj, const 
Eo_Event_Description *desc, void *event_info);
 static Eina_Bool _property_changed_signal_send(void *data, Eo *obj, const 
Eo_Event_Description *desc EINA_UNUSED, void *event_info);
@@ -79,6 +80,7 @@ static void 
_object_append_desktop_reference(Eldbus_Message_Iter *iter);
 static void _cache_build(void *obj);
 static void _object_register(Eo *obj, char *path);
 static void _iter_interfaces_append(Eldbus_Message_Iter *iter, const Eo *obj);
+static Eina_Bool _elm_atspi_bridge_key_down_event_notify(void *data, int type, 
void *event);
 
 EO_CALLBACKS_ARRAY_DEFINE(_events_cb,
{ ELM_INTERFACE_ATSPI_ACCESSIBLE_EVENT_PROPERTY_CHANGED, 
_property_changed_signal_send},
@@ -3102,6 +3104,8 @@ _event_handlers_register(void)
// register signal handlers in order to update list of registered listeners 
of ATSPI-Clients
_register_hdl = eldbus_signal_handler_add(_a11y_bus, 
ATSPI_DBUS_NAME_REGISTRY, ATSPI_DBUS_PATH_REGISTRY, 
ATSPI_DBUS_INTERFACE_REGISTRY, "EventListenerRegistered", 
_handle_listener_change, NULL);
_unregister_hdl = eldbus_signal_handler_add(_a11y_bus, 
ATSPI_DBUS_NAME_REGISTRY, ATSPI_DBUS_PATH_REGISTRY, 
ATSPI_DBUS_INTERFACE_REGISTRY, "EventListenerDeregistered", 
_handle_listener_change, NULL);
+
+   _key_hdl = ecore_event_handler_add(ECORE_EVENT_KEY_DOWN, 
_elm_atspi_bridge_key_down_event_notify, NULL);
 }
 
 static Eina_Bool
@@ -3301,13 +3305,17 @@ _elm_atspi_bridge_shutdown(void)
   eldbus_connection_unref(_a11y_bus);
 _a11y_bus = NULL;
 
+if (_key_hdl)
+  ecore_event_handler_del(_key_hdl);
+_key_hdl = NULL;
+
 _init_count = 0;
 _root = NULL;
  }
 }
 
 static void
-_iter_marshall_key_event(Eldbus_Message_Iter *iter, Evas_Callback_Type type, 
void *event)
+_iter_marshall_key_down_event(Eldbus_Message_Iter *iter, Ecore_Event_Key 
*event)
 {
Eldbus_Message_Iter *struct_iter;
 
@@ -3315,37 +3323,28 @@ _iter_marshall_key_event(Eldbus_Message_Iter *iter, 
Evas_Callback_Type type, voi
 
struct_iter = eldbus_message_iter_container_new(iter, 'r', NULL);
 
-   if (type == EVAS_CALLBACK_KEY_DOWN)
- {
-Evas_Event_Key_Down *kde = event;
-const char *str = kde->string ? kde->string : "";
-int is_text = kde->string ? 1 : 0;
-eldbus_message_iter_arguments_append(struct_iter, "usb", 
ATSPI_KEY_PRESSED_EVENT, 0, kde->keycode, 0, kde->timestamp, str, is_text);
- }
-   else if (type == EVAS_CALLBACK_KEY_UP)
- {
-Evas_Event_Key_Up *kue = event;
-const char *str = kue->string ? kue->string : "";
-int is_text = kue->string ? 1 : 0;
-eldbus_message_iter_arguments_append(struct_iter, "usb", 
ATSPI_KEY_RELEASED_EVENT, 0, kue->keycode, 0, kue->timestamp, str, is_text);
- }
+   const char *str = event->keyname ? event->keyname : "";
+   int is_text = event->keyname? 1 : 0;
+   eldbus_message_iter_arguments_append(struct_iter, "usb", 
ATSPI_KEY_PRESSED_EVENT, 0, event->keycode, 0, event->timestamp, str, is_text);
 
eldbus_message_iter_container_close(iter, struct_iter);
 }
 
-EAPI void
-_elm_atspi_bridge_key_event_notify(Evas_Callback_Type type, void *event)
+static Eina_Bool
+_elm_atspi_bridge_key_down_event_notify(void *data EINA_UNUSED, int type 
EINA_UNUSED, void *event)
 {
Eldbus_Message *msg;
Eldbus_Message_Iter *iter;
+   Ecore_Event_Key *key_event = event;
 
-   if (!_init_count) return;
-   if ((type != EVAS_CALLBACK_KEY_DOWN) && (type != EVAS_CALLBACK_KEY_UP)) 
return;
+   if (!_init_count) return EINA_TRUE;
 
msg = eldbus_message_method_call_new(ATSPI_DBUS_NAME_REGISTRY, 
ATSPI_DBUS_PATH_DEC,
 ATSPI_DBUS_INTERFACE_DEC, 
"NotifyListenersSync");
iter = eldbus_message_iter_get(msg);
-   _iter_marshall_key_event(iter, type, event);
+   _iter_marshall_key_down_event(iter, key_event);
 
eldbus

[EGIT] [core/efl] master 01/01: ecore-drm: Fix formatting from a7428edeb41efe67b0a

2014-07-01 Thread Christopher Michael
devilhorns pushed a commit to branch master.

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

commit e1e8859aa0d73261de6fa003bfe45959be589818
Author: Chris Michael 
Date:   Tue Jul 1 10:58:44 2014 -0400

ecore-drm: Fix formatting from a7428edeb41efe67b0a

Fix horrible formatting before it gets too far...
Bad Stefan, no cookie ;)

Signed-off-by: Chris Michael 
---
 src/lib/ecore_drm/ecore_drm_output.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/ecore_drm/ecore_drm_output.c 
b/src/lib/ecore_drm/ecore_drm_output.c
index 8f10614..bf1cca6 100644
--- a/src/lib/ecore_drm/ecore_drm_output.c
+++ b/src/lib/ecore_drm/ecore_drm_output.c
@@ -216,12 +216,12 @@ _ecore_drm_output_crtc_find(Ecore_Drm_Device *dev, 
drmModeRes *res, drmModeConne
else
  enc = NULL;
 
-   if (enc && enc->crtc_id)
+   if ((enc) && (enc->crtc_id))
  {
 crtc = enc->crtc_id;
 drmModeFreeEncoder(enc);
 /* Check is this CRTC is already allocated */
-if  (!(dev->crtc_allocator & (1 << crtc)))
+if (!(dev->crtc_allocator & (1 << crtc)))
   return crtc;
  }
 

-- 




[EGIT] [core/efl] master 01/01: eolian_cxx: no need to normalize

2014-07-01 Thread Daniel Kolesa
q66 pushed a commit to branch master.

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

commit a1588f66e55966fb278f7c951e88fc5c83c8e81c
Author: Daniel Kolesa 
Date:   Tue Jul 1 16:10:21 2014 +0100

eolian_cxx: no need to normalize
---
 src/bin/eolian_cxx/type_lookup.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/eolian_cxx/type_lookup.hh 
b/src/bin/eolian_cxx/type_lookup.hh
index a85be2d..e185cd0 100644
--- a/src/bin/eolian_cxx/type_lookup.hh
+++ b/src/bin/eolian_cxx/type_lookup.hh
@@ -26,7 +26,7 @@ type_lookup(Eolian_Type type)
  return "void";
// XXX add complex types implementation.
const char *tps = eolian_type_c_type_get(type);
-   std::string ret = normalize_spaces(safe_str(tps));
+   std::string ret = safe_str(tps);
::eina_stringshare_del(tps);
return ret;
 }

-- 




[EGIT] [core/efl] master 01/01: eolian: restrict own() for pointers only

2014-07-01 Thread Daniel Kolesa
q66 pushed a commit to branch master.

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

commit 0cc319a5b2184245405d03233b32cdeca5d35f77
Author: Daniel Kolesa 
Date:   Tue Jul 1 17:55:34 2014 +0100

eolian: restrict own() for pointers only
---
 src/lib/eolian/eo_parser.c | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/lib/eolian/eo_parser.c b/src/lib/eolian/eo_parser.c
index 673b516..2e4c9b0 100644
--- a/src/lib/eolian/eo_parser.c
+++ b/src/lib/eolian/eo_parser.c
@@ -203,11 +203,16 @@ parse_type_void(Eo_Lexer *ls)
   }
 case KW_own:
   {
- int line;
+ int sline = ls->line_number, line;
  eo_lexer_get(ls);
  line = ls->line_number;
  check_next(ls, '(');
  def = parse_type_void(ls);
+ if (def->type != EOLIAN_TYPE_POINTER)
+   {
+  ls->line_number = sline;
+  eo_lexer_syntax_error(ls, "pointer type expected");
+   }
  def->is_own = EINA_TRUE;
  check_match(ls, ')', '(', line);
  goto parse_ptr;

-- 




[EGIT] [core/efl] master 01/01: autotools: Fixed 'make clean' for Eolian-Cxx.

2014-07-01 Thread Savio Sena
savio pushed a commit to branch master.

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

commit 951fa3ac29276084769d6717e11ff1c0979a0fda
Author: Savio Sena 
Date:   Tue Jul 1 13:38:49 2014 -0300

autotools: Fixed 'make clean' for Eolian-Cxx.

Included all generated C++ headers in CLEANFILES (Automake).
---
 src/Makefile_Ecore_Audio_Cxx.am |  4 
 src/Makefile_Ecore_Cxx.am   | 13 -
 src/Makefile_Edje_Cxx.am| 14 +-
 src/Makefile_Evas_Cxx.am| 16 ++--
 4 files changed, 31 insertions(+), 16 deletions(-)

diff --git a/src/Makefile_Ecore_Audio_Cxx.am b/src/Makefile_Ecore_Audio_Cxx.am
index 27c60a5..4967da2 100644
--- a/src/Makefile_Ecore_Audio_Cxx.am
+++ b/src/Makefile_Ecore_Audio_Cxx.am
@@ -18,6 +18,10 @@ lib/ecore_audio/Ecore_Audio.hh:
@for i in $(generated_ecore_audio_cxx_bindings); do echo "#include 
<$$(basename $$i)>" >> $(top_builddir)/src/lib/ecore_audio/Ecore_Audio.hh; done
@echo -e "#endif\n\n#endif\n" >> 
$(top_builddir)/src/lib/ecore_audio/Ecore_Audio.hh
 
+CLEANFILES += \
+   $(generated_ecore_audio_cxx_bindings) \
+   lib/ecore_audio/Ecore_Audio.hh
+
 installed_ecoreaudiocxxmainheadersdir = $(includedir)/ecore-audio-cxx-@VMAJ@
 nodist_installed_ecoreaudiocxxmainheaders_DATA = \
 lib/ecore_audio/Ecore_Audio.hh \
diff --git a/src/Makefile_Ecore_Cxx.am b/src/Makefile_Ecore_Cxx.am
index 4ce616e..97dae38 100644
--- a/src/Makefile_Ecore_Cxx.am
+++ b/src/Makefile_Ecore_Cxx.am
@@ -14,17 +14,20 @@ lib/ecore/ecore_idle_exiter.eo.hh \
 lib/ecore/ecore_animator.eo.hh \
 lib/ecore/ecore_parent.eo.hh
 
-installed_ecorecxxheadersdir = $(includedir)/ecore-cxx-@VMAJ@
-nodist_installed_ecorecxxheaders_DATA = \
-lib/ecore/Ecore.eo.hh \
-$(generated_ecore_cxx_bindings)
-
 lib/ecore/Ecore.eo.hh:
@echo -e "#ifndef EFL_CXX_ECORE_HH\n#define EFL_CXX_ECORE_HH\n" > 
$(top_builddir)/src/lib/ecore/Ecore.eo.hh
@echo -e "#ifdef EFL_BETA_API_SUPPORT" >> 
$(top_builddir)/src/lib/ecore/Ecore.eo.hh
@for i in $(generated_ecore_cxx_bindings); do echo "#include 
<$$(basename $$i)>" >> $(top_builddir)/src/lib/ecore/Ecore.eo.hh; done
@echo -e "#endif\n\n#endif\n" >> 
$(top_builddir)/src/lib/ecore/Ecore.eo.hh
 
+CLEANFILES += \
+$(generated_ecore_cxx_bindings) \
+lib/ecore/Ecore.eo.hh
+
+installed_ecorecxxheadersdir = $(includedir)/ecore-cxx-@VMAJ@
+nodist_installed_ecorecxxheaders_DATA = \
+lib/ecore/Ecore.eo.hh \
+$(generated_ecore_cxx_bindings)
 
 ### Unit tests
 
diff --git a/src/Makefile_Edje_Cxx.am b/src/Makefile_Edje_Cxx.am
index b41bb29..79bd3e1 100644
--- a/src/Makefile_Edje_Cxx.am
+++ b/src/Makefile_Edje_Cxx.am
@@ -7,17 +7,21 @@ generated_edje_cxx_bindings = \
 lib/edje/edje_object.eo.hh \
 lib/edje/edje_edit.eo.hh
 
-installed_edjecxxmainheadersdir = $(includedir)/edje-cxx-@VMAJ@/
-nodist_installed_edjecxxmainheaders_DATA = \
-lib/edje/Edje.hh \
-$(generated_edje_cxx_bindings)
-
 lib/edje/Edje.hh: $(generated_edje_cxx_bindings)
@echo -e "#ifndef EFL_CXX_EDJE_HH\n#define EFL_CXX_EDJE_HH\n" > 
$(top_builddir)/src/lib/edje/Edje.hh
@echo -e "#ifdef EFL_BETA_API_SUPPORT" >> 
$(top_builddir)/src/lib/edje/Edje.hh
@for i in $(generated_edje_cxx_bindings); do echo "#include 
<$$(basename $$i)>" >> $(top_builddir)/src/lib/edje/Edje.hh; done
@echo -e "#endif\n\n#endif\n" >> $(top_builddir)/src/lib/edje/Edje.hh
 
+CLEANFILES += \
+$(generated_edje_cxx_bindings) \
+lib/edje/Edje.hh
+
+installed_edjecxxmainheadersdir = $(includedir)/edje-cxx-@VMAJ@/
+nodist_installed_edjecxxmainheaders_DATA = \
+lib/edje/Edje.hh \
+$(generated_edje_cxx_bindings)
+
 ### Unit tests
 
 if EFL_ENABLE_TESTS
diff --git a/src/Makefile_Evas_Cxx.am b/src/Makefile_Evas_Cxx.am
index 405d89a..7b16b4d 100644
--- a/src/Makefile_Evas_Cxx.am
+++ b/src/Makefile_Evas_Cxx.am
@@ -27,18 +27,22 @@ lib/evas/canvas/evas_selectable_interface.eo.hh \
 lib/evas/canvas/evas_zoomable_interface.eo.hh \
 lib/evas/canvas/evas_box.eo.hh
 
-installed_evascxxmainheadersdir = $(includedir)/evas-cxx-@VMAJ@/
-nodist_installed_evascxxmainheaders_DATA = lib/evas/Evas.hh
-
-installed_evascxxcanvasheadersdir = $(includedir)/evas-cxx-@VMAJ@/canvas
-nodist_installed_evascxxcanvasheaders_DATA = 
$(generated_evas_canvas_cxx_bindings)
-
 lib/evas/Evas.hh:
@echo -e "#ifndef EFL_CXX_EVAS_HH\n#define EFL_CXX_EVAS_HH\n" > 
$(top_builddir)/src/lib/evas/Evas.hh
@echo -e "#ifdef EFL_BETA_API_SUPPORT" >> 
$(top_builddir)/src/lib/evas/Evas.hh
@for i in $(generated_evas_canvas_cxx_bindings); do echo "#include 
" >> $(top_builddir)/src/lib/evas/Evas.hh; done
@echo -e "#endif\n\n#endif\n" >> $(top_builddir)/src/lib/evas/Evas.hh
 
+CLEANFILES += \
+$(generated_evas_canvas_cxx_bindings) \
+lib/evas/Evas.hh
+
+installed_evascxxmainheadersdir = $(includedir)/evas-cxx-@VMAJ@/
+nodist_installed_evascxxmainheaders_DATA = lib/evas/Evas.hh
+
+installed_evascxxcanvasheadersdir = $(includedir)

[EGIT] [core/efl] master 01/01: eolian: keep the struct keyword in the regular type name

2014-07-01 Thread Daniel Kolesa
q66 pushed a commit to branch master.

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

commit 8c448105250015dc9279ea7e862cb641712054fd
Author: Daniel Kolesa 
Date:   Tue Jul 1 18:02:54 2014 +0100

eolian: keep the struct keyword in the regular type name
---
 src/lib/eolian/eo_definitions.h  |  1 -
 src/lib/eolian/eo_parser.c   | 18 +-
 src/lib/eolian/eolian_database.c |  5 -
 3 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/src/lib/eolian/eo_definitions.h b/src/lib/eolian/eo_definitions.h
index 79415df..d5d3a68 100644
--- a/src/lib/eolian/eo_definitions.h
+++ b/src/lib/eolian/eo_definitions.h
@@ -23,7 +23,6 @@ struct _eo_type_def
};
Eina_Bool is_const  :1;
Eina_Bool is_own:1;
-   Eina_Bool is_struct :1;
 };
 
 typedef struct _eo_ret_def
diff --git a/src/lib/eolian/eo_parser.c b/src/lib/eolian/eo_parser.c
index 2e4c9b0..56be673 100644
--- a/src/lib/eolian/eo_parser.c
+++ b/src/lib/eolian/eo_parser.c
@@ -233,11 +233,21 @@ parse_type_void(Eo_Lexer *ls)
else
  {
 def->type = EOLIAN_TYPE_REGULAR;
-def->is_struct = has_struct;
-def->is_const  = EINA_FALSE;
+def->is_const = EINA_FALSE;
 check(ls, TOK_VALUE);
 ctype = eo_lexer_get_c_type(ls->t.kw);
-def->name = eina_stringshare_add(ctype ? ctype : ls->t.value);
+if (ctype && has_struct)
+  eo_lexer_syntax_error(ls, "struct type expected");
+if (has_struct)
+  {
+ Eina_Strbuf *buf = eina_strbuf_new();
+ eina_strbuf_append(buf, "struct ");
+ eina_strbuf_append(buf, ls->t.value);
+ def->name = eina_stringshare_add(eina_strbuf_string_get(buf));
+ eina_strbuf_free(buf);
+  }
+else
+  def->name = eina_stringshare_add(ctype ? ctype : ls->t.value);
  }
eo_lexer_get(ls);
 parse_ptr:
@@ -972,8 +982,6 @@ _print_type(FILE *f, Eo_Type_Def *tp)
   fputs("@own(", f);
if (tp->is_const)
   fputs("const(", f);
-   if (tp->is_struct)
-  fputs("struct ", f);
if (tp->type == EOLIAN_TYPE_REGULAR)
   fputs(tp->name, f);
else if (tp->type == EOLIAN_TYPE_POINTER)
diff --git a/src/lib/eolian/eolian_database.c b/src/lib/eolian/eolian_database.c
index 766214a..1c53e53 100644
--- a/src/lib/eolian/eolian_database.c
+++ b/src/lib/eolian/eolian_database.c
@@ -92,7 +92,6 @@ typedef struct
};
Eina_Bool is_const  :1;
Eina_Bool is_own:1;
-   Eina_Bool is_struct :1;
 } _Parameter_Type;
 
 typedef struct
@@ -1231,8 +1230,6 @@ _type_to_str(Eolian_Type tp, Eina_Strbuf *buf, const char 
*name)
if ((tpp->type == EOLIAN_TYPE_REGULAR || tpp->type == EOLIAN_TYPE_VOID)
  && tpp->is_const)
   eina_strbuf_append(buf, "const ");
-   if (tpp->is_struct)
-  eina_strbuf_append(buf, "struct ");
if (tpp->type == EOLIAN_TYPE_REGULAR)
   eina_strbuf_append(buf, tpp->name);
else if (tpp->type == EOLIAN_TYPE_VOID)
@@ -1324,8 +1321,6 @@ _type_print(Eolian_Type tp, Eina_Strbuf *buf)
   eina_strbuf_append(buf, "@own(");
if (tpp->is_const)
   eina_strbuf_append(buf, "const(");
-   if (tpp->is_struct)
-  eina_strbuf_append(buf, "struct ");
if (tpp->type == EOLIAN_TYPE_REGULAR)
   eina_strbuf_append(buf, tpp->name);
else if (tpp->type == EOLIAN_TYPE_POINTER)

-- 




[EGIT] [core/efl] master 01/01: eolian: some dirty janitoring

2014-07-01 Thread Daniel Kolesa
q66 pushed a commit to branch master.

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

commit f12b36e1c1857b7648dff1cd267d50bd1615a69f
Author: Daniel Kolesa 
Date:   Tue Jul 1 18:25:17 2014 +0100

eolian: some dirty janitoring
---
 src/lib/eolian/eo_definitions.c  |  63 +++--
 src/lib/eolian/eo_lexer.c| 155 ++-
 src/lib/eolian/eo_parser.c   | 555 +++
 src/lib/eolian/eolian_database.c |  46 ++--
 4 files changed, 398 insertions(+), 421 deletions(-)

diff --git a/src/lib/eolian/eo_definitions.c b/src/lib/eolian/eo_definitions.c
index 403b91a..89e89e5 100644
--- a/src/lib/eolian/eo_definitions.c
+++ b/src/lib/eolian/eo_definitions.c
@@ -9,11 +9,10 @@ eo_definitions_type_free(Eo_Type_Def *tp)
Eo_Type_Def *stp;
if (tp->name) eina_stringshare_del(tp->name);
/* for function types, this will map to arguments and ret_type */
-   if (tp->subtypes)
-  EINA_LIST_FREE(tp->subtypes, stp)
- eo_definitions_type_free(stp);
+   if (tp->subtypes) EINA_LIST_FREE(tp->subtypes, stp)
+ eo_definitions_type_free(stp);
if (tp->base_type)
-  eo_definitions_type_free(tp->base_type);
+ eo_definitions_type_free(tp->base_type);
free(tp);
 }
 
@@ -54,10 +53,10 @@ eo_definitions_accessor_free(Eo_Accessor_Def *accessor)
 
Eo_Accessor_Param *param;
EINA_LIST_FREE(accessor->params, param)
-  eo_definitions_accessor_param_free(param);
+ eo_definitions_accessor_param_free(param);
 
if (accessor->ret)
-  eo_definitions_ret_free(accessor->ret);
+ eo_definitions_ret_free(accessor->ret);
 
free(accessor);
 }
@@ -72,13 +71,13 @@ eo_definitions_property_def_free(Eo_Property_Def *prop)
  eina_stringshare_del(prop->name);
 
EINA_LIST_FREE(prop->keys, param)
-  eo_definitions_param_free(param);
+ eo_definitions_param_free(param);
 
EINA_LIST_FREE(prop->values, param)
-  eo_definitions_param_free(param);
+ eo_definitions_param_free(param);
 
EINA_LIST_FREE(prop->accessors, accessor)
-  eo_definitions_accessor_free(accessor);
+ eo_definitions_accessor_free(accessor);
 
free(prop);
 }
@@ -89,7 +88,7 @@ eo_definitions_method_def_free(Eo_Method_Def *meth)
Eo_Param_Def *param;
 
if (meth->ret)
-  eo_definitions_ret_free(meth->ret);
+ eo_definitions_ret_free(meth->ret);
 
if (meth->name)
  eina_stringshare_del(meth->name);
@@ -99,7 +98,7 @@ eo_definitions_method_def_free(Eo_Method_Def *meth)
  eina_stringshare_del(meth->legacy);
 
EINA_LIST_FREE(meth->params, param)
-  eo_definitions_param_free(param);
+ eo_definitions_param_free(param);
 
free(meth);
 }
@@ -159,22 +158,22 @@ eo_definitions_class_def_free(Eo_Class_Def *kls)
  eina_stringshare_del(kls->data_type);
 
EINA_LIST_FREE(kls->inherits, s)
-  if (s) eina_stringshare_del(s);
+ if (s) eina_stringshare_del(s);
 
EINA_LIST_FREE(kls->implements, impl)
-  eo_definitions_impl_def_free(impl);
+ eo_definitions_impl_def_free(impl);
 
EINA_LIST_FREE(kls->constructors, meth)
-  eo_definitions_method_def_free(meth);
+ eo_definitions_method_def_free(meth);
 
EINA_LIST_FREE(kls->properties, prop)
-  eo_definitions_property_def_free(prop);
+ eo_definitions_property_def_free(prop);
 
EINA_LIST_FREE(kls->methods, meth)
-  eo_definitions_method_def_free(meth);
+ eo_definitions_method_def_free(meth);
 
EINA_LIST_FREE(kls->events, sgn)
-  eo_definitions_event_def_free(sgn);
+ eo_definitions_event_def_free(sgn);
 
free(kls);
 }
@@ -187,47 +186,47 @@ eo_definitions_temps_free(Eo_Lexer_Temps *tmp)
const char *s;
 
EINA_LIST_FREE(tmp->str_bufs, buf)
-  eina_strbuf_free(buf);
+ eina_strbuf_free(buf);
 
EINA_LIST_FREE(tmp->params, par)
-  eo_definitions_param_free(par);
+ eo_definitions_param_free(par);
 
if (tmp->legacy_def)
-  eina_stringshare_del(tmp->legacy_def);
+ eina_stringshare_del(tmp->legacy_def);
 
if (tmp->kls)
-  eo_definitions_class_def_free(tmp->kls);
+ eo_definitions_class_def_free(tmp->kls);
 
if (tmp->ret_def)
-  eo_definitions_ret_free(tmp->ret_def);
+ eo_definitions_ret_free(tmp->ret_def);
 
if (tmp->typedef_def)
-  eo_definitions_typedef_def_free(tmp->typedef_def);
+ eo_definitions_typedef_def_free(tmp->typedef_def);
 
if (tmp->type_def)
-  eo_definitions_type_free(tmp->type_def);
+ eo_definitions_type_free(tmp->type_def);
 
if (tmp->prop)
-  eo_definitions_property_def_free(tmp->prop);
+ eo_definitions_property_def_free(tmp->prop);
 
if (tmp->meth)
-  eo_definitions_method_def_free(tmp->meth);
+ eo_definitions_method_def_free(tmp->meth);
 
if (tmp->param)
-  eo_definitions_param_free(tmp->param);
+ eo_definitions_param_free(tmp->param);
 
if (tmp->accessor)
-  eo_definitions_accessor_free(tmp->accessor);
+ eo_definitions_accesso

[EGIT] [apps/terminology] master 01/01: don't try to display pdf while don't have page controls

2014-07-01 Thread Boris Faure
billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=feca95c493f098c43c4e12bf356cf41415db398e

commit feca95c493f098c43c4e12bf356cf41415db398e
Author: Boris Faure 
Date:   Tue Jul 1 20:15:57 2014 +0200

don't try to display pdf while don't have page controls
---
 src/bin/extns.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/extns.c b/src/bin/extns.c
index 72f1bb7..4d2a24e 100644
--- a/src/bin/extns.c
+++ b/src/bin/extns.c
@@ -13,7 +13,7 @@ const char *extn_img[] =
 
 const char *extn_scale[] =
 {
-   ".svg", ".svgz", ".svg.gz", ".ps", ".ps.gz", ".pdf",
+   ".svg", ".svgz", ".svg.gz", /* ".ps", ".ps.gz", ".pdf", */
NULL
 };
 

-- 




[EGIT] [core/efl] master 01/01: autotools/eolian-cxx: Fixed the dependencies in some rules.

2014-07-01 Thread Savio Sena
savio pushed a commit to branch master.

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

commit a5adffa1522de6c47957503f931d5f4b7343fbfe
Author: Savio Sena 
Date:   Tue Jul 1 17:08:47 2014 -0300

autotools/eolian-cxx: Fixed the dependencies in some rules.
---
 src/Makefile_Ecore_Audio_Cxx.am | 2 +-
 src/Makefile_Ecore_Cxx.am   | 2 +-
 src/Makefile_Evas_Cxx.am| 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Makefile_Ecore_Audio_Cxx.am b/src/Makefile_Ecore_Audio_Cxx.am
index 4967da2..d6ae59e 100644
--- a/src/Makefile_Ecore_Audio_Cxx.am
+++ b/src/Makefile_Ecore_Audio_Cxx.am
@@ -12,7 +12,7 @@ lib/ecore_audio/ecore_audio_out_sndfile.eo.hh \
 lib/ecore_audio/ecore_audio_out_pulse.eo.hh \
 lib/ecore_audio/ecore_audio_in_tone.eo.hh
 
-lib/ecore_audio/Ecore_Audio.hh:
+lib/ecore_audio/Ecore_Audio.hh: $(generated_ecore_audio_cxx_bindings)
@echo -e "#ifndef EFL_CXX_ECORE_AUDIO_HH\n#define 
EFL_CXX_ECORE_AUDIO_HH\n" > $(top_builddir)/src/lib/ecore_audio/Ecore_Audio.hh
@echo -e "#ifdef EFL_BETA_API_SUPPORT" >> 
$(top_builddir)/src/lib/ecore_audio/Ecore_Audio.hh
@for i in $(generated_ecore_audio_cxx_bindings); do echo "#include 
<$$(basename $$i)>" >> $(top_builddir)/src/lib/ecore_audio/Ecore_Audio.hh; done
diff --git a/src/Makefile_Ecore_Cxx.am b/src/Makefile_Ecore_Cxx.am
index 97dae38..0429005 100644
--- a/src/Makefile_Ecore_Cxx.am
+++ b/src/Makefile_Ecore_Cxx.am
@@ -14,7 +14,7 @@ lib/ecore/ecore_idle_exiter.eo.hh \
 lib/ecore/ecore_animator.eo.hh \
 lib/ecore/ecore_parent.eo.hh
 
-lib/ecore/Ecore.eo.hh:
+lib/ecore/Ecore.eo.hh: $(generated_ecore_cxx_bindings)
@echo -e "#ifndef EFL_CXX_ECORE_HH\n#define EFL_CXX_ECORE_HH\n" > 
$(top_builddir)/src/lib/ecore/Ecore.eo.hh
@echo -e "#ifdef EFL_BETA_API_SUPPORT" >> 
$(top_builddir)/src/lib/ecore/Ecore.eo.hh
@for i in $(generated_ecore_cxx_bindings); do echo "#include 
<$$(basename $$i)>" >> $(top_builddir)/src/lib/ecore/Ecore.eo.hh; done
diff --git a/src/Makefile_Evas_Cxx.am b/src/Makefile_Evas_Cxx.am
index 7b16b4d..57da81e 100644
--- a/src/Makefile_Evas_Cxx.am
+++ b/src/Makefile_Evas_Cxx.am
@@ -27,7 +27,7 @@ lib/evas/canvas/evas_selectable_interface.eo.hh \
 lib/evas/canvas/evas_zoomable_interface.eo.hh \
 lib/evas/canvas/evas_box.eo.hh
 
-lib/evas/Evas.hh:
+lib/evas/Evas.hh: $(generated_evas_canvas_cxx_bindings)
@echo -e "#ifndef EFL_CXX_EVAS_HH\n#define EFL_CXX_EVAS_HH\n" > 
$(top_builddir)/src/lib/evas/Evas.hh
@echo -e "#ifdef EFL_BETA_API_SUPPORT" >> 
$(top_builddir)/src/lib/evas/Evas.hh
@for i in $(generated_evas_canvas_cxx_bindings); do echo "#include 
" >> $(top_builddir)/src/lib/evas/Evas.hh; done

-- 




[E-devel] Error Building Latest Python EFL Tar

2014-07-01 Thread Jeff Hoogland
Building the latest daily snapshot from here

.

Getting the following error:

Compiling efl/elementary/gesture_layer.pyx because it changed.
Compiling efl/elementary/hover.pyx because it changed.
Compiling efl/elementary/icon.pyx because it changed.
Compiling efl/elementary/index.pyx because it changed.
Compiling efl/elementary/layout_class.pyx because it changed.
Compiling efl/elementary/menu.pyx because it changed.
Compiling efl/elementary/need.pyx because it changed.
Compiling efl/elementary/plug.pyx because it changed.
Compiling efl/elementary/popup.pyx because it changed.
Compiling efl/elementary/scroller.pyx because it changed.
Compiling efl/elementary/segment_control.pyx because it changed.
Compiling efl/elementary/separator.pyx because it changed.
Cythonizing efl/elementary/actionslider.pyx
Error compiling Cython file:

...
from libc.stdint cimport uintptr_t
from efl.eo cimport _object_mapping_register
from efl.utils.conversions cimport _ctouni
from efl.evas cimport Object as evasObject
from layout_class cimport LayoutClass
^


efl/elementary/actionslider.pyx:94:0: 'layout_class.pxd' not found
Traceback (most recent call last):
  File "setup.py", line 456, in 
"embedsignature": True,
  File "/usr/lib/python2.7/dist-packages/Cython/Build/Dependencies.py",
line 798, in cythonize
cythonize_one(*args[1:])
  File "/usr/lib/python2.7/dist-packages/Cython/Build/Dependencies.py",
line 915, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: efl/elementary/actionslider.pyx


Using GIT EFL/Elementary.

-- 
~Jeff Hoogland 
Thoughts on Technology , Tech Blog
Bodhi Linux , Enlightenment for your Desktop
--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Model-View-Controller

2014-07-01 Thread Carlos Carvalho
Hi gustavo,

I'd like to talk a little bit about some points Larry told we are fixing OK.

About #1 , sure, it is going to change. Dunno yet if it will be part of EIO
or something else. Anyways it was created as a kind of proof of concept so
we could test Emodel concepts. It ended up being a more complex thing so we
can show a more advanced example application. Anyways it can be either
Eio's or a separate thing but I'd like to put it aside for a while so I can
focus on other issues for now.

#2 is already returning the last known count value and we keep emitting the
CHANGE event.

#3 seems OK now, it is not a pointer to Eina_Value anymore.

#4 there is no 'data' struct member anymore. It ended up breaking apart our
'ecore I/O events' notification because we shared the same structure, and
it was a hack and should go anyway. Since there is no 'data' anymore I need
to figure out another approach for ecore stuff, but it is not a big deal
and will be fixed soon.

#7 , yes, it is const now.

#9, it is 'const void *' now and the documentation was indeed wrong, fixed
now.

#10, now we have a loaded event, shouldn't we have 'unloaded' event as well
in Emodel?

#11, I already started switching from simple eina array to
Eina_Value_Struct_Desc
in emodel_eio, however I don't know for sure if I got it. It may be leaner
to use Eina_Value_Struct_Desc but we don't have many items in that array of
properties it isn't much complex to deal with.
Anyways I am following the eina_value_02.c already but I'd like to know if
there are more implications about using Eina_Value_Struct_Desc instead of
eina_array because it is basically used only internally in emodel_eio.

#13.1, now make sure to both strings fully equal.
#13.2. is now using eina_str_join. Agreed it is safer than using strncpy
and alike by hand although I had to read eina_str_join() implementation
(and it is nice to read code of course :)) to fully understand that the
parameter 'size' must be strlen(a)+strlen(b)+2, the '2' here is including
the separator character plus '\0' byte, if we miss that the result will be
truncated by NULL terminator.

'size' cannot simply be strlen(a)+strlen(b) and perhaps it should be
documented both in eina_str_join and eina_str_join_len.  What do you think?

See:

---snip---
   char *str1 = "";
   char *str2 = "";
   size_t siz = strlen(str1)+strlen(str2);
   char *buf = calloc(1, siz);
   eina_str_join(buf, siz, '#', str1, str2);
   fprintf(stdout, "buf: %s\n", buf);
   free(buf);
---snip---

result is truncated:
---snip---
buf: #BB
---snip---

#14, umask() is gone.

[]s


On Fri, Jun 27, 2014 at 7:18 PM, Larry de Oliveira Lira Jr <
la...@expertisesolutions.com.br> wrote:

> Hi gustavo
>
> thanks for your detailed review
>
> about item 1, no problem, initial intention with model Eio was make a "real
> assync" model, to have a best case to make/tests "views" and examples, not
> make a definitive model for "file objects" and therefore this choice for
> name
>
> If nobody oppose we will fix/change first the points 1, 2, 3, 10, 15, 11.2
> (4, 7, 13 and 14 were done)
>
> 5, 6, 8, 9 and 11.1 are more complex and maybe demand more
> discussion/clarifications
>
>
> On Fri, Jun 27, 2014 at 4:40 PM, Carlos Carvalho <
> ccarva...@expertisesolutions.com.br> wrote:
>
> > Hi!
> >
> > Some review items already pushed: 4, 7, 13.1, 14 and partially 9 (const
> > void* and doc).
> >
> > []s
> >
> >
> > On Thu, Jun 26, 2014 at 3:14 PM, Carlos Carvalho <
> > ccarva...@expertisesolutions.com.br> wrote:
> >
> > > Hi Gustavo,
> > >
> > > First of all thank you very much for your review!
> > >
> > > I, personally, agree with most of your recommendations and already
> pushed
> > > a couple of changes into the repository, the same you pulled from
> > earlier.
> > >
> > > Some items like '1', '2' and '5' are also about code design and will
> > > inflict more fundamental changes in the code, although, so far, they
> make
> > > sense too, will possibly require further interaction with other people
> > like
> > > Felipe and Larry.
> > >
> > > Anyways I am still working on fixes and pushing them as soon as I
> have'em
> > > done.
> > >
> > > thanks again :)
> > >
> > >
> > >
> > >
> > >
> > >
> > > On Wed, Jun 25, 2014 at 12:25 PM, Gustavo Sverzut Barbieri <
> > > barbi...@gmail.com> wrote:
> > >
> > >> Okay, after a review of Emodel.h, some comments:
> > >>
> > >>
> > >> 1 - As previously said, Emodel_Eio is not ideal, it should be
> > >> Eio_Emodel and it should exist in eio's code, that will then depend on
> > >> Emodel -- as there is no reason for Emodel to know (and pull in) Eio.
> > >> (This is based on the first example in Emodel.h)
> > >>
> > >> 2 - Async is good, but mandate it is not. As raster pointed out
> > >> children_count_get() and similar returns nothing, that is bad. It
> > >> should return, at least, the last known value. You can emit
> > >> CHILDREN_COUNT_CHANGED if that changes and the user is expected to
> > >> listen for that. This simp

[EGIT] [core/elementary] master 01/01: fileselector: Make selected_set actually select the file

2014-07-01 Thread Ryuan Choi
ryuan pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=5622df6914329bca7e816aac334c2dda25d296a8

commit 5622df6914329bca7e816aac334c2dda25d296a8
Author: Ryuan Choi 
Date:   Wed Jul 2 07:55:53 2014 +0900

fileselector: Make selected_set actually select the file

This patch comes from Kai Huuhko.

Added test case for selected_set/get.

@fix
---
 src/lib/elc_fileselector.c|  2 +-
 src/tests/elm_test_fileselector.c | 61 ++-
 2 files changed, 61 insertions(+), 2 deletions(-)

diff --git a/src/lib/elc_fileselector.c b/src/lib/elc_fileselector.c
index 0f6903c..106b910 100644
--- a/src/lib/elc_fileselector.c
+++ b/src/lib/elc_fileselector.c
@@ -1902,7 +1902,7 @@ 
_elm_fileselector_elm_interface_fileselector_selected_set(Eo *obj, Elm_Fileselec
   }
 
 selected = ecore_file_dir_get(path);
-_populate(obj, selected, NULL, NULL);
+_populate(obj, selected, NULL, path);
 eina_stringshare_replace(&sd->selection, path);
 free(selected);
  }
diff --git a/src/tests/elm_test_fileselector.c 
b/src/tests/elm_test_fileselector.c
index 5d09430..e5dd067 100644
--- a/src/tests/elm_test_fileselector.c
+++ b/src/tests/elm_test_fileselector.c
@@ -27,8 +27,67 @@ START_TEST (elm_atspi_role_get)
 }
 END_TEST
 
+static void
+_directory_open_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info 
EINA_UNUSED)
+{
+Eina_Bool *ret = data;
+*ret = EINA_TRUE;
+}
+
+START_TEST (elm_fileselector_selected)
+{
+   Evas_Object *win, *fileselector;
+   Eina_Tmpstr *tmp_path;
+   Eina_Stringshare *exist, *no_exist;
+   FILE *fp;
+   char *path;
+   Eina_Bool selected;
+
+   elm_init(1, NULL);
+
+   if (!eina_file_mkdtemp("elm_test-XX", &tmp_path))
+ {
+/* can not test */
+ck_assert(EINA_FALSE);
+return;
+ }
+
+   path = strdup(tmp_path);
+   eina_tmpstr_del(tmp_path);
+
+   exist = eina_stringshare_printf("%s/exist", path);
+   no_exist = eina_stringshare_printf("%s/no_exist", path);
+   fp = fopen(exist, "w");
+   fclose(fp);
+
+   win = elm_win_add(NULL, "fileselector", ELM_WIN_BASIC);
+
+   fileselector = elm_fileselector_add(win);
+   evas_object_smart_callback_add(fileselector, "directory,open", 
_directory_open_cb, &selected);
+
+   ck_assert(!elm_fileselector_selected_set(fileselector, no_exist));
+
+   selected = EINA_FALSE;
+   ck_assert(elm_fileselector_selected_set(fileselector, path));
+   while (!selected) ecore_main_loop_iterate();
+   ck_assert_str_eq(elm_fileselector_selected_get(fileselector), path);
+
+   selected = EINA_FALSE;
+   ck_assert(elm_fileselector_selected_set(fileselector, exist));
+   while (!selected) ecore_main_loop_iterate();
+   ck_assert_str_eq(elm_fileselector_selected_get(fileselector), exist);
+
+   eina_stringshare_del(exist);
+   eina_stringshare_del(no_exist);
+   free(path);
+
+   elm_shutdown();
+}
+END_TEST
+
 void elm_test_fileselector(TCase *tc)
 {
- tcase_add_test(tc, elm_atspi_role_get);
+   tcase_add_test(tc, elm_atspi_role_get);
+   tcase_add_test(tc, elm_fileselector_selected);
 }
 

-- 




[EGIT] [core/elementary] elementary-1.10 01/01: fileselector: Make selected_set actually select the file

2014-07-01 Thread Ryuan Choi
ryuan pushed a commit to branch elementary-1.10.

http://git.enlightenment.org/core/elementary.git/commit/?id=e289faeb2a799caec15ab0eab3cab10b6597ba5b

commit e289faeb2a799caec15ab0eab3cab10b6597ba5b
Author: Ryuan Choi 
Date:   Wed Jul 2 07:55:53 2014 +0900

fileselector: Make selected_set actually select the file

This patch comes from Kai Huuhko.

@fix
---
 src/lib/elc_fileselector.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elc_fileselector.c b/src/lib/elc_fileselector.c
index 686369d..1d87014 100644
--- a/src/lib/elc_fileselector.c
+++ b/src/lib/elc_fileselector.c
@@ -1854,7 +1854,7 @@ 
_elm_fileselector_elm_interface_fileselector_selected_set(Eo *obj, Elm_Fileselec
   }
 
 selected = ecore_file_dir_get(path);
-_populate(obj, selected, NULL, NULL);
+_populate(obj, selected, NULL, path);
 eina_stringshare_replace(&sd->selection, path);
 free(selected);
  }

-- 




[EGIT] [core/elementary] elementary-1.9 01/01: fileselector: Make selected_set actually select the file

2014-07-01 Thread Ryuan Choi
ryuan pushed a commit to branch elementary-1.9.

http://git.enlightenment.org/core/elementary.git/commit/?id=e1a5af2e3b9001eb00563f0eb219c28a538167ba

commit e1a5af2e3b9001eb00563f0eb219c28a538167ba
Author: Ryuan Choi 
Date:   Wed Jul 2 07:55:53 2014 +0900

fileselector: Make selected_set actually select the file

This patch comes from Kai Huuhko.

@fix
---
 src/lib/elc_fileselector.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elc_fileselector.c b/src/lib/elc_fileselector.c
index d6c3e6d..90a107b 100644
--- a/src/lib/elc_fileselector.c
+++ b/src/lib/elc_fileselector.c
@@ -1924,7 +1924,7 @@ _selected_set(Eo *obj, void *_pd, va_list *list)
   }
 
 selected = ecore_file_dir_get(path);
-_populate(obj, selected, NULL, NULL);
+_populate(obj, selected, NULL, path);
 eina_stringshare_replace(&sd->selection, path);
 free(selected);
  }

-- 




[EGIT] [core/elementary] master 01/01: remove edje file changed handling

2014-07-01 Thread Carsten Haitzler
raster pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=556e45732db3e7bff2fb88181b56f9751bdda01d

commit 556e45732db3e7bff2fb88181b56f9751bdda01d
Author: Carsten Haitzler (Rasterman) 
Date:   Wed Jul 2 11:31:54 2014 +0900

remove edje file changed handling

this matches the 8edc879cc28e7f69c110b4b9db6e611856787c6f commit in
efl where edje file changed singals are now gone. this creates nothing
but trouble. please see the efl commit log for details.
---
 src/lib/elm_bg.c | 17 -
 src/lib/elm_layout.c | 19 ---
 src/lib/elm_theme.c  | 46 --
 3 files changed, 82 deletions(-)

diff --git a/src/lib/elm_bg.c b/src/lib/elm_bg.c
index 2120e37..d746f4b 100644
--- a/src/lib/elm_bg.c
+++ b/src/lib/elm_bg.c
@@ -142,19 +142,6 @@ _elm_bg_eo_base_constructor(Eo *obj, Elm_Bg_Data *_pd 
EINA_UNUSED)
  elm_interface_atspi_accessible_role_set(ELM_ATSPI_ROLE_IMAGE));
 }
 
-static void
-_elm_bg_file_reload(void *data, Evas_Object *obj,
-const char *emission EINA_UNUSED,
-const char *source EINA_UNUSED)
-{
-   Evas_Object *bg = data;
-   const char *file;
-   const char *group;
-
-   edje_object_file_get(obj, &file, &group);
-   elm_bg_file_set(bg, file, group);
-}
-
 EOLIAN static Eina_Bool
 _elm_bg_file_set(Eo *obj, Elm_Bg_Data *sd, const char *file, const char *group)
 {
@@ -177,10 +164,6 @@ _elm_bg_file_set(Eo *obj, Elm_Bg_Data *sd, const char 
*file, const char *group)
 sd->img = edje_object_add
 (evas_object_evas_get(wd->resize_obj));
 int_ret = edje_object_file_set(sd->img, file, group);
-edje_object_signal_callback_del
-  (sd->img, "edje,change,file", "edje", _elm_bg_file_reload);
-edje_object_signal_callback_add
-  (sd->img, "edje,change,file", "edje", _elm_bg_file_reload, obj);
  }
else
  {
diff --git a/src/lib/elm_layout.c b/src/lib/elm_layout.c
index bf52dd3..e83d8a6 100644
--- a/src/lib/elm_layout.c
+++ b/src/lib/elm_layout.c
@@ -273,18 +273,6 @@ _parts_cursors_apply(Elm_Layout_Smart_Data *sd)
 }
 
 static void
-_reload_theme(void *data, Evas_Object *obj,
-  const char *emission EINA_UNUSED, const char *source EINA_UNUSED)
-{
-   Evas_Object *layout = data;
-   const char *file;
-   const char *group;
-
-   edje_object_file_get(obj, &file, &group);
-   elm_layout_file_set(layout, file, group);
-}
-
-static void
 _visuals_refresh(Evas_Object *obj,
  Elm_Layout_Smart_Data *sd)
 {
@@ -297,13 +285,6 @@ _visuals_refresh(Evas_Object *obj,
_parts_cursors_apply(sd);
 
eo_do(obj, elm_obj_layout_sizing_eval());
-
-   edje_object_signal_callback_del(wd->resize_obj,
-   "edje,change,file", "edje",
-   _reload_theme);
-   edje_object_signal_callback_add(wd->resize_obj,
-   "edje,change,file", "edje",
-   _reload_theme, obj);
 }
 
 EOLIAN static Eina_Bool
diff --git a/src/lib/elm_theme.c b/src/lib/elm_theme.c
index c35d374..67cea3e 100644
--- a/src/lib/elm_theme.c
+++ b/src/lib/elm_theme.c
@@ -264,59 +264,13 @@ _elm_theme_data_find(Elm_Theme *th, const char *key)
return NULL;
 }
 
-static void _elm_theme_idler_clean(void *data EINA_UNUSED, Evas *e 
EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED);
-
-static Eina_Bool
-_elm_theme_reload_idler(void *data)
-{
-   Evas_Object *elm = data;
-
-   elm_widget_theme(elm);
-   evas_object_data_del(elm, "elm-theme-reload-idler");
-   evas_object_event_callback_del(elm, EVAS_CALLBACK_DEL, 
_elm_theme_idler_clean);
-   return EINA_FALSE;
-}
-
-static void
-_elm_theme_idler_clean(void *data EINA_UNUSED, Evas *e EINA_UNUSED, 
Evas_Object *obj, void *event_info EINA_UNUSED)
-{
-   Ecore_Idler *idler;
-
-   idler = evas_object_data_get(obj, "elm-theme-reload-idler");
-   ecore_idler_del(idler);
-   evas_object_data_del(obj, "elm-theme-reload-idler");
-}
-
-static void
-_elm_theme_reload(void *data EINA_UNUSED, Evas_Object *obj,
-  const char *emission EINA_UNUSED, const char *source 
EINA_UNUSED)
-{
-   Evas_Object *elm;
-
-   elm = evas_object_data_get(obj, "elm-parent");
-   if (elm)
- {
-evas_object_event_callback_add(elm, EVAS_CALLBACK_DEL, 
_elm_theme_idler_clean, NULL);
-evas_object_data_set(elm, "elm-theme-reload-idler", 
ecore_idler_add(_elm_theme_reload_idler, elm));
- }
-}
-
 Eina_Bool
 _elm_theme_object_set(Evas_Object *parent, Evas_Object *o, const char *clas, 
const char *group, const char *style)
 {
Elm_Theme *th = NULL;
-   void *test;
 
if (parent) th = elm_widget_theme_get(parent);
if (!_elm_theme_set(th, o, clas, group, style)) return EINA_FALSE;
-
-   test = evas_object_data_get(o, "edje,theme,watcher");
-   if (!test)
- {
-edje_object_signal_callback_add(o, "edje,change,file", 

[EGIT] [core/efl] master 01/01: remove edje file changed monitoring as it's nothing but a bug vector

2014-07-01 Thread Carsten Haitzler
raster pushed a commit to branch master.

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

commit 8edc879cc28e7f69c110b4b9db6e611856787c6f
Author: Carsten Haitzler (Rasterman) 
Date:   Wed Jul 2 11:28:42 2014 +0900

remove edje file changed monitoring as it's nothing but a bug vector

so this has to go. reloading edje files is nothing but trouble.
example - if you update your os your theme files get updated and then
all sorts of stuff goes wrong. jeff is right. this makes it an
intractible problem. we have an open file handle on the edj file. we
share that anre reuse it via eina_file - keep it. this keeps tyhe edje
file stable and consistant.

 Elementary applications freak the fuck out
 if you change the theme file
 that they are using
 SeoZ,
http://forums.bodhilinux.com/index.php?/topic/10629-eepdater-display-issue/
 that happens when my theme file that is in use changes

we will get nothing but continued issues and complains if we keep
doing this. it's a fairly pointless mis-feature. thank god its got no
apis - just signals and internals.
---
 src/lib/edje/edje_cache.c   | 79 +
 src/lib/edje/edje_load.c| 12 ---
 src/lib/edje/edje_main.c| 15 -
 src/lib/edje/edje_private.h |  7 
 4 files changed, 1 insertion(+), 112 deletions(-)

diff --git a/src/lib/edje/edje_cache.c b/src/lib/edje/edje_cache.c
index ee81506..4cf73cf 100644
--- a/src/lib/edje/edje_cache.c
+++ b/src/lib/edje/edje_cache.c
@@ -255,48 +255,6 @@ _edje_file_coll_open(Edje_File *edf, const char *coll)
return edc;
 }
 
-#ifdef HAVE_EIO
-static Eina_Bool
-_edje_file_warn(void *data)
-{
-   Edje_File *edf = data;
-   Eina_List *l, *ll;
-   Edje *ed;
-
-   edf->references++;
-
-   EINA_LIST_FOREACH(edf->edjes, l, ed)
- _edje_ref(ed);
-
-   EINA_LIST_FOREACH(edf->edjes, l, ed)
- {
-_edje_emit(ed, "edje,change,file", "edje");
- }
-
-   EINA_LIST_FOREACH_SAFE(edf->edjes, l, ll, ed)
- _edje_unref(ed);
-
-   edf->references--;
-
-   edf->timeout = NULL;
-   return EINA_FALSE;
-}
-
-static Eina_Bool
-_edje_file_change(void *data, int ev_type EINA_UNUSED, void *event)
-{
-   Edje_File *edf = data;
-   Eio_Monitor_Event *ev = event;
-
-   if (ev->monitor == edf->monitor)
- {
-if (edf->timeout) ecore_timer_del(edf->timeout);
-edf->timeout = ecore_timer_add(0.5, _edje_file_warn, edf);
- }
-   return ECORE_CALLBACK_PASS_ON;
-}
-#endif
-
 static Edje_File *
 _edje_file_open(const Eina_File *f, const char *coll, int *error_ret, 
Edje_Part_Collection **edc_ret, time_t mtime)
 {
@@ -305,9 +263,6 @@ _edje_file_open(const Eina_File *f, const char *coll, int 
*error_ret, Edje_Part_
Eina_List *l;
Edje_Part_Collection *edc;
Eet_File *ef;
-#ifdef HAVE_EIO
-   Ecore_Event_Handler *ev;
-#endif
 
ef = eet_mmap(f);
if (!ef)
@@ -326,17 +281,6 @@ _edje_file_open(const Eina_File *f, const char *coll, int 
*error_ret, Edje_Part_
edf->f = eina_file_dup(f);
edf->ef = ef;
edf->mtime = mtime;
-#ifdef HAVE_EIO
-   edf->monitor = eio_monitor_add(eina_file_filename_get(f));
-   ev = ecore_event_handler_add(EIO_MONITOR_FILE_DELETED, _edje_file_change, 
edf);
-   edf->handlers = eina_list_append(edf->handlers, ev);
-   ev = ecore_event_handler_add(EIO_MONITOR_FILE_MODIFIED, _edje_file_change, 
edf);
-   edf->handlers = eina_list_append(edf->handlers, ev);
-   ev = ecore_event_handler_add(EIO_MONITOR_FILE_CREATED, _edje_file_change, 
edf);
-   edf->handlers = eina_list_append(edf->handlers, ev);
-   ev = ecore_event_handler_add(EIO_MONITOR_SELF_DELETED, _edje_file_change, 
edf);
-   edf->handlers = eina_list_append(edf->handlers, ev);
-#endif
 
if (edf->version != EDJE_FILE_VERSION)
  {
@@ -398,15 +342,12 @@ _edje_file_dangling(Edje_File *edf)
 #endif
 
 Edje_File *
-_edje_cache_file_coll_open(const Eina_File *file, const char *coll, int 
*error_ret, Edje_Part_Collection **edc_ret, Edje *ed)
+_edje_cache_file_coll_open(const Eina_File *file, const char *coll, int 
*error_ret, Edje_Part_Collection **edc_ret, Edje *ed EINA_UNUSED)
 {
Edje_File *edf;
Eina_List *l, *hist;
Edje_Part_Collection *edc;
Edje_Part *ep;
-#ifdef HAVE_EIO
-   Eina_Bool added = EINA_FALSE;
-#endif
 
if (!_edje_file_hash)
  {
@@ -436,16 +377,6 @@ find_list:
edf = _edje_file_open(file, coll, error_ret, edc_ret, 
eina_file_mtime_get(file));
if (!edf) return NULL;
 
-#ifdef HAVE_EIO
-   if (ed)
- {
-edf->edjes = eina_list_append(edf->edjes, ed);
-added = EINA_TRUE;
- }
-#else
-   (void) ed;
-#endif
-
eina_hash_direct_add(_edje_file_hash, &edf->f, edf);
/* return edf; */
 
@@ -552,14 +483,6 @@ open:
edc->checked = 1;
  }
  }
-#ifdef HAVE_EIO
-   if (!added)
- {
-if (edc && ed) edf->edjes = eina_list_append(edf->edjes, ed);
- }
-#else
-   (void

[E-devel] Is there an example of setting font of elementary widgets?

2014-07-01 Thread Magicloud Magiclouds
Hi,

  I found some APIs in reference, and called them without error. But still,
I could not see the font changed.

-- 
竹密岂妨流水过
山高哪阻野云飞

And for G+, please use magiclouds#gmail.com.
--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Is there an example of setting font of elementary widgets?

2014-07-01 Thread The Rasterman
On Wed, 2 Jul 2014 13:14:55 +0800 Magicloud Magiclouds
 said:

> Hi,
> 
>   I found some APIs in reference, and called them without error. But still,
> I could not see the font changed.

can you be more specific? did you look at the elementary tests that do just
this? (entry style user - entries)

-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Is there an example of setting font of elementary widgets?

2014-07-01 Thread Magicloud Magiclouds
Hi,

  Sorry I am not sure which test did you talk about. I looked into
elementary's source, tests and examples, no c source contains "font".

  My code is:

19|c = Configuration ()


20|for tc in c.text_classes_list:


21|fn = font_fontconfig_name_get ('WenQuanYi Micro Hei Mono')


22|print fn


23|c.font_overlay_set (tc[0], fn, 10)


24|c.font_overlay_apply ()


On Wed, Jul 2, 2014 at 2:15 PM, Carsten Haitzler 
wrote:

> On Wed, 2 Jul 2014 13:14:55 +0800 Magicloud Magiclouds
>  said:
>
> > Hi,
> >
> >   I found some APIs in reference, and called them without error. But
> still,
> > I could not see the font changed.
>
> can you be more specific? did you look at the elementary tests that do just
> this? (entry style user - entries)
>
> --
> - Codito, ergo sum - "I code, therefore I am" --
> The Rasterman (Carsten Haitzler)ras...@rasterman.com
>
>


-- 
竹密岂妨流水过
山高哪阻野云飞

And for G+, please use magiclouds#gmail.com.
--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Is there an example of setting font of elementary widgets?

2014-07-01 Thread The Rasterman
On Wed, 2 Jul 2014 14:21:41 +0800 Magicloud Magiclouds
 said:

elementary_test -to "entry style user"

that one. :)

test_entry_style_user() in test_entry.c in elm's src (src/bin)


it does:

   elm_entry_text_style_user_push(en, user_style);

where the style is:

static char *user_style =
   "DEFAULT='font_size=16 color=#F00'"
   "em='+ backing=on backing_color=#FFF'"
   "grn='+ color=#0F0'"
   "ul='+ underline=on underline_color=#AAA'";

> Hi,
> 
>   Sorry I am not sure which test did you talk about. I looked into
> elementary's source, tests and examples, no c source contains "font".
> 
>   My code is:
> 
> 19|c = Configuration ()
> 
> 
> 20|for tc in c.text_classes_list:
> 
> 
> 21|fn = font_fontconfig_name_get ('WenQuanYi Micro Hei Mono')
> 
> 
> 22|print fn
> 
> 
> 23|c.font_overlay_set (tc[0], fn, 10)
> 
> 
> 24|c.font_overlay_apply ()
> 
> 
> On Wed, Jul 2, 2014 at 2:15 PM, Carsten Haitzler 
> wrote:
> 
> > On Wed, 2 Jul 2014 13:14:55 +0800 Magicloud Magiclouds
> >  said:
> >
> > > Hi,
> > >
> > >   I found some APIs in reference, and called them without error. But
> > still,
> > > I could not see the font changed.
> >
> > can you be more specific? did you look at the elementary tests that do just
> > this? (entry style user - entries)
> >
> > --
> > - Codito, ergo sum - "I code, therefore I am" --
> > The Rasterman (Carsten Haitzler)ras...@rasterman.com
> >
> >
> 
> 
> -- 
> 竹密岂妨流水过
> 山高哪阻野云飞
> 
> And for G+, please use magiclouds#gmail.com.


-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel