Re: [E-devel] E SVN: jaehwan IN trunk/elementary: . data/themes/widgets src/bin src/lib

2012-05-23 Thread Jaehwan Kim
Dear Gustavo


2012년 5월 23일 수요일에 Gustavo Sverzut Barbieri님이 작성:

 Hi,

 what's the use case in setting a maximum number of items manually?


If we want to expand the size of items as window size, we will use
ELM_TOOLBAR_SHRINK_EXPAND mode.
At that time, if the items are more than what we want to show, we should
limit the number of visible items.
So I limited by using maximum number.
If I want to show 5 items among the 12 items regardless of window size, is
there any other method?


 To me this seems like a hack. It should be defined based on the available
 space. Otherwise you'll get horrible user interfaces by changing screen
 resolution, or even screen orientation in mobile devices.


In current toolbar, there are more item. If the more item is clicked, the
menu widget is shown the below of toolbar.
It is shown not available space, too.
I think the location of more panel is not a problem. If there are some ugly
user interface by changing resolution, I'll fix it.

Thanks for your advice and if there is any alternative, please explain it.

Regards,
--
Jaehwan Kim.



 Then please explain why it's needed, or remove such api.

 Regards,
 -- Gustavo

 On Tue, May 22, 2012 at 2:18 AM, Enlightenment SVN 
 no-re...@enlightenment.org wrote:

  Log:
  Toolbar: Add the more panel feature in toolbar. When it is the
  ELM_TOOLBAR_SHRINK_EXPAND mode and the max item is set, the items over
 max
  number are located in more panel.
   The APIs are added for this feature.(elm_toolbar_more_item_get,
  elm_toolbar_items_max_set/get)
 
 
  Author:   jaehwan
  Date: 2012-05-21 22:18:12 -0700 (Mon, 21 May 2012)
  New Revision: 71297
  Trac: http://trac.enlightenment.org/e/changeset/71297
 
  Modified:
   trunk/elementary/ChangeLog
  trunk/elementary/data/themes/widgets/toolbar.edc
  trunk/elementary/src/bin/test_toolbar.c
  trunk/elementary/src/lib/elm_toolbar.c
  trunk/elementary/src/lib/elm_toolbar.h
 
  Modified: trunk/elementary/ChangeLog
  ===
  --- trunk/elementary/ChangeLog  2012-05-22 04:55:49 UTC (rev 71296)
  +++ trunk/elementary/ChangeLog  2012-05-22 05:18:12 UTC (rev 71297)
  @@ -77,3 +77,9 @@
 
 * Fix fileselector selection done bug and pass the right string.
 
  +2012-05-22  Jaehwan Kim
  +
  +   * Toolbar: Add the more panel feature in toolbar.
  +When it is the ELM_TOOLBAR_SHRINK_EXPAND mode and the max item
 is
  set,
  +the items over max number are located in more panel.
  +The APIs are added for this feature.(elm_toolbar_more_item_get,
  elm_toolbar_items_max_set/get)
 
  Modified: trunk/elementary/data/themes/widgets/toolbar.edc
  ===
  --- trunk/elementary/data/themes/widgets/toolbar.edc2012-05-22
  04:55:49 UTC (rev 71296)
  +++ trunk/elementary/data/themes/widgets/toolbar.edc2012-05-22
  05:18:12 UTC (rev 71297)
  @@ -131,6 +131,175 @@
 }
   }
 
  +group { name: elm/toolbar/more/default;
  +   images {
  +  image: toolbar_separator_h.png COMP;
  +   }
  +   parts {
  +  part { name: base;
  + mouse_events: 1;
  + description { state: default 0.0;
  +rel1.relative: 0.0 0.0;
  +rel2.relative: 1.0 0.0;
  +image {
  +   normal: bt_dis_base.png;
  +   border: 4 4 4 4;
  +}
  +image.middle: SOLID;
  + }
  + description { state: open 0.0;
  +inherit: default 0.0;
  +rel2.relative: 1.0 1.0;
  + }
  + description { state: open2 0.0;
  +inherit: default 0.0;
  +rel2.relative: 1.0 2.0;
  + }
  +  }
  +  part { name: clipper;
  + type: RECT;
  + mouse_events: 0;
  + description {
  +state: default 0.0;
  +fixed: 1 1;
  +rel1 {
  +   to: base;
  +}
  +rel2 {
  +   to: base;
  + --
 Gustavo Sverzut Barbieri
 http://profusion.mobi embedded systems
 --
 MSN: barbi...@gmail.com javascript:;
 Skype: gsbarbieri
 Mobile: +55 (19) 9225-2202

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net javascript:;
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

--
Live Security Virtual Conference
Exclusive live event will cover all the ways 

[E-devel] [PATCH] Wayland: Fix not add input.

2012-05-23 Thread zhiwen . wu
From: Alex Wu zhiwen...@linux.intel.com

wl_seat adopation patch didn't change the interface name from
wl_input_device to wl_seat at global object listener handler,
 so that no input will be added.
---
 src/lib/ecore_wayland/ecore_wl.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore_wayland/ecore_wl.c b/src/lib/ecore_wayland/ecore_wl.c
index 33d69e2..5abbd24 100644
--- a/src/lib/ecore_wayland/ecore_wl.c
+++ b/src/lib/ecore_wayland/ecore_wl.c
@@ -407,7 +407,7 @@ _ecore_wl_cb_handle_global(struct wl_display *disp, 
unsigned int id, const char
  ewd-wl.compositor = wl_display_bind(disp, id, wl_compositor_interface);
else if (!strcmp(interface, wl_output))
  _ecore_wl_output_add(ewd, id);
-   else if (!strcmp(interface, wl_input_device))
+   else if (!strcmp(interface, wl_seat))
  _ecore_wl_input_add(ewd, id);
else if (!strcmp(interface, wl_shell))
  ewd-wl.shell = wl_display_bind(disp, id, wl_shell_interface);
-- 
1.7.9.5


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [PATCH] Wayland: Fix not add input.

2012-05-23 Thread Chris Michael
Fixed in EFL svn now, Thanks :)

Dh


 -Original Message-
 From: zhiwen...@linux.intel.com [mailto:zhiwen...@linux.intel.com]
 Sent: 23 May 2012 08:32
 To: enlightenment-devel@lists.sourceforge.net
 Cc: wayland-de...@lists.freedesktop.org
 Subject: [E-devel] [PATCH] Wayland: Fix not add input.
 
 From: Alex Wu zhiwen...@linux.intel.com
 
 wl_seat adopation patch didn't change the interface name from
 wl_input_device to wl_seat at global object listener handler,
  so that no input will be added.
 ---
  src/lib/ecore_wayland/ecore_wl.c |2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/src/lib/ecore_wayland/ecore_wl.c
 b/src/lib/ecore_wayland/ecore_wl.c
 index 33d69e2..5abbd24 100644
 --- a/src/lib/ecore_wayland/ecore_wl.c
 +++ b/src/lib/ecore_wayland/ecore_wl.c
 @@ -407,7 +407,7 @@ _ecore_wl_cb_handle_global(struct wl_display *disp,
 unsigned int id, const char
   ewd-wl.compositor = wl_display_bind(disp, id,
 wl_compositor_interface);
 else if (!strcmp(interface, wl_output))
   _ecore_wl_output_add(ewd, id);
 -   else if (!strcmp(interface, wl_input_device))
 +   else if (!strcmp(interface, wl_seat))
   _ecore_wl_input_add(ewd, id);
 else if (!strcmp(interface, wl_shell))
   ewd-wl.shell = wl_display_bind(disp, id, wl_shell_interface);
 --
 1.7.9.5
 
 
 ---
 ---
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond.
 Discussions
 will include endpoint security, mobile security and the latest in
 malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] CLOSE_WAIT remaining using ecore_con

2012-05-23 Thread Pierre-Olivier Huguet

Hello,
I'm having issues using ecore_con : connections remains in CLOSE_WAIT state.

I've been working with ecore rev. 68447 and updated to 69296 recently, 
I've still got the same issue.


See attached sample program.

Thanks.


efl_hubtcp.tgz
Description: GNU Unix tar archive
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [Patch][Efreet] Add parameter checking to exported API (efreet_desktop)

2012-05-23 Thread Bluezery
2012/5/22 Christopher Michael cpmicha...@comcast.net:
 On 05/21/12 16:34, Sebastian Dransfeld wrote:
 On 05/21/2012 08:24 AM, Bluezery wrote:
 Hello,

 Some efreet APIs do not check input parameters.  So I add checking by
 using EINA_SAFETY_ON_XXX().
 ISO/IEC statndards says that If an argument to a function has an
 invalid value, behavior is undefined . But this is  just for the
 primitive functions such as libc.  I think that parameter checking is
 needed in at least EFL exported APIs

 This I 150% support (Not the use of Eina, but rather the checking) !!
 Exported APIs need to be clean

 EFL needs lots of param checking. Has been missing for a bit of time
 now. I try to add it as I go, but not everyone is supportive. Some do
 see it as a wasted variable check ... but I would rather KNOW that the
 stuff I am working with IS valid first, before I start to work with it
 ;) ... If not, then what's left ? A Guess that the variable is valid ???
 No thanks ;)

  to prevent run-time abnormal
 behavior.
 Bail out nicely if you can ... ;)

 EINA_SAFTETY_ON_XXX are better than if (xxx) return because it gives
 error message and can be maintainable.

 But adds some overhead for the logging. 'if (xxx) return' is easier
 to read then chasing down (in a bunch of source code) some obscure
 macros that nobody knowsand printf is cheap (afaik), easily removed...

Yes, if is easier and cheaper than EINA_SAFETY_XXX.
But I prefer EINA_SAFETY_XXX.  :) because it can prevent NORMAL
user(like me)'s wrong usage by finding bugs more easily (by logging
overhead).
and logging overhead can be reduced by using disable eina safety check
flags when eina is built.
Anyway, It's a matter of taste. :D   and Thank you for your comments.

 Actually these may be needed for some static  internal functions. But
 I did not add.

 If this patches would be acceptable, I will add these checking into
 other efreet files (efreet_menu, efreet_base, etc.)

 Patch is fine. Just add to other efreet files and I will commit.

Finally I made a patch. please review this patch again.
If this patch is in, we should fix applications by seeing error
messages originated from this changes such as elementary_config. :)

 S.

 Seb, as long as you approve it then no worries ;) Never got into
 efreet...least not much past the initial fdo support  but I trust
 Seb. He's been here for a long long LONG time...


 Cheers,
 dh



 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel



 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel



-- 
BRs,
Kim.


efreet@add_param_check.diff
Description: Binary data
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: hyoyoung trunk/elementary/src/lib

2012-05-23 Thread Bluezery
2012/5/23 Hyoyoung Chang hyoyo...@gmail.com:
 Maybe it's best time to talk about sizeof(char)

 Do we need to sizeof(char)? I just that is problem of coding convention.
 such as (a == 0) and (!a).
 Is there any predefined convention about this case?

sizeof(char) may be larger (in the future if we use unicode :p) than
1.  but I haven't seen yet. :)


 On Wed, May 23, 2012 at 10:52 AM, ChunEon Park her...@naver.com wrote:
 FYI, sizeof will be computed at the compile time.


 -Original Message-
 From: ChunEon Parklt;her...@naver.comgt;
 To: lt;enlightenment-devel@lists.sourceforge.netgt;; 
 lt;enlightenment-...@lists.sourceforge.netgt;;
 Cc:
 Sent: 2012-05-23 (수) 10:49:24
 Subject: Re: [E-devel] E SVN: hyoyoung trunk/elementary/src/lib


 The most I prefer is to use sizeof( variable );


 No harmful for performance and would be better if the buffer type is changed.




 -Original Message-
 From: Enlightenment SVNlt;no-replygt;@enlightenment.orggt;
 To: lt;enlightenment-svngt;@lists.sourceforge.netgt;;
 Cc:
 Sent: 2012-05-23 (수) 09:53:08
 Subject: E SVN: hyoyoung trunk/elementary/src/lib


 Log:
 elementary/cnp: don't calc sizeof char at buffer malloc



 Author:       hyoyoung
 Date:         2012-05-22 17:53:07 -0700 (Tue, 22 May 2012)
 New Revision: 71337
 Trac:         http://trac.enlightenment.org/e/changeset/71337


 Modified:
  trunk/elementary/src/lib/elm_cnp.c


 Modified: trunk/elementary/src/lib/elm_cnp.c
 ===
 --- trunk/elementary/src/lib/elm_cnp.c2012-05-23 00:51:11 UTC (rev 71336)
 +++ trunk/elementary/src/lib/elm_cnp.c2012-05-23 00:53:07 UTC (rev 71337)
 @@ -785,7 +785,7 @@
    char *mkupstr;


    data = notify-gt;data;
 -   str = malloc(sizeof(char) * (data-gt;length + 1));
 +   str = malloc((data-gt;length + 1));
    if (!str) return 0;
    strncpy(str, (char *)data-gt;data, data-gt;length);
    str[data-gt;length] = '\0';
 @@ -840,7 +840,7 @@
      }
    else
      {
 -        stripstr = p = malloc(data-gt;length * sizeof(char) + 1);
 +        stripstr = p = malloc(data-gt;length + 1);
         if (!stripstr) return 0;
         memcpy(stripstr, data-gt;data, data-gt;length);
         stripstr[data-gt;length] = 0;
 @@ -985,7 +985,7 @@


    cnp_debug(Got some HTML: Checking encoding is useful\n);
    data = notify-gt;data;
 -   char *stripstr = malloc(sizeof(char) * (data-gt;length + 1));
 +   char *stripstr = malloc(data-gt;length + 1);
    if (!stripstr) return 0;
    strncpy(stripstr, (char *)data-gt;data, data-gt;length);
    stripstr[data-gt;length] = '\0';




 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-svn mailing list
 enlightenment-...@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel



-- 
BRs,
Kim.


[E-devel] Mozilla Initiative to teach web to the masses.

2012-05-23 Thread Sanjeev BA
http://www.mozilla.org/en-US/webmaker/
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] CLOSE_WAIT remaining using ecore_con

2012-05-23 Thread The Rasterman
On Wed, 23 May 2012 09:36:18 +0200 Pierre-Olivier Huguet
pierre-olivier.hug...@asp64.com said:

 Hello,
 I'm having issues using ecore_con : connections remains in CLOSE_WAIT state.
 
 I've been working with ecore rev. 68447 and updated to 69296 recently, 
 I've still got the same issue.
 
 See attached sample program.

i believe i shall hoist the finger of blame at discomfitor for now... it's
fixed in svn - waiting for him to look at go wtf before i backport and
changelog it!

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [Patch][elementary] accessibility for mobile device.

2012-05-23 Thread The Rasterman
On Thu, 3 May 2012 17:24:10 +0900 cnook kimci...@gmail.com said:

reject! :) see access module + ecore_x_illume commands to drive widget walking
etc. :) u need this to be out-of-window as the whole screen has to catch events.

 Dear All, Hello.
 
 I would like to add accessibility feature for the mobile device.
 The mobile device environment is different with desktop environment.
 On the desktop environment, you can make MOUSE_IN event without previous
 MOUSE_DOWN event.
 but.. on the mobile device environment, you should start with MOUSE_DOWN
 event first and make MOUSE_IN event.
 
 Raster.. knows this issue.. so he had supported a new mode
 EVAS_OBJECT_POINTER_MODE_NOGRAB_NO_REPEAT_UPDOWN.
 Thanks for your help.. but on the attached patch, I just use the
 EVAS_OBJECT_POINTER_MODE_NOGRAB instead of it.
 
 You cannot test full features of this on the desktop environment... because
 there are some issue related with MOUSE events.
 And the patch is just initial.. (or draft) version of the accessibility on
 the mobile device. Please review the patch. Thanks.
 
 Sincerely,
 Shinwoo Kim.


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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: jaehwan IN trunk/elementary: . data/themes/widgets src/bin src/lib

2012-05-23 Thread Daniel Juyung Seo
Hello,

On Wed, May 23, 2012 at 3:51 PM, Jaehwan Kim jaehwan.kim@gmail.com wrote:
 Dear Gustavo


 2012년 5월 23일 수요일에 Gustavo Sverzut Barbieri님이 작성:

 Hi,

 what's the use case in setting a maximum number of items manually?


 If we want to expand the size of items as window size, we will use
 ELM_TOOLBAR_SHRINK_EXPAND mode.
 At that time, if the items are more than what we want to show, we should
 limit the number of visible items.

For me this requirement looks weird. Why we limit the number of items
and put the rest items into more option even though we have enough
space?

 So I limited by using maximum number.
 If I want to show 5 items among the 12 items regardless of window size, is
 there any other method?


And yes you're right. If someone really wants to have this ugliness,
your commit is needed.


 To me this seems like a hack. It should be defined based on the available
 space. Otherwise you'll get horrible user interfaces by changing screen
 resolution, or even screen orientation in mobile devices.


 In current toolbar, there are more item. If the more item is clicked, the
 menu widget is shown the below of toolbar.
 It is shown not available space, too.
 I think the location of more panel is not a problem. If there are some ugly
 user interface by changing resolution, I'll fix it.

 Thanks for your advice and if there is any alternative, please explain it.

Please ask them why they need this feature.

Daniel Juyung Seo (SeoZ)


 Regards,
 --
 Jaehwan Kim.



 Then please explain why it's needed, or remove such api.

 Regards,
 -- Gustavo

 On Tue, May 22, 2012 at 2:18 AM, Enlightenment SVN 
 no-re...@enlightenment.org wrote:

  Log:
  Toolbar: Add the more panel feature in toolbar. When it is the
  ELM_TOOLBAR_SHRINK_EXPAND mode and the max item is set, the items over
 max
  number are located in more panel.
   The APIs are added for this feature.(elm_toolbar_more_item_get,
  elm_toolbar_items_max_set/get)
 
 
  Author:   jaehwan
  Date: 2012-05-21 22:18:12 -0700 (Mon, 21 May 2012)
  New Revision: 71297
  Trac: http://trac.enlightenment.org/e/changeset/71297
 
  Modified:
   trunk/elementary/ChangeLog
  trunk/elementary/data/themes/widgets/toolbar.edc
  trunk/elementary/src/bin/test_toolbar.c
  trunk/elementary/src/lib/elm_toolbar.c
  trunk/elementary/src/lib/elm_toolbar.h
 
  Modified: trunk/elementary/ChangeLog
  ===
  --- trunk/elementary/ChangeLog  2012-05-22 04:55:49 UTC (rev 71296)
  +++ trunk/elementary/ChangeLog  2012-05-22 05:18:12 UTC (rev 71297)
  @@ -77,3 +77,9 @@
 
 * Fix fileselector selection done bug and pass the right string.
 
  +2012-05-22  Jaehwan Kim
  +
  +   * Toolbar: Add the more panel feature in toolbar.
  +When it is the ELM_TOOLBAR_SHRINK_EXPAND mode and the max item
 is
  set,
  +the items over max number are located in more panel.
  +The APIs are added for this feature.(elm_toolbar_more_item_get,
  elm_toolbar_items_max_set/get)
 
  Modified: trunk/elementary/data/themes/widgets/toolbar.edc
  ===
  --- trunk/elementary/data/themes/widgets/toolbar.edc2012-05-22
  04:55:49 UTC (rev 71296)
  +++ trunk/elementary/data/themes/widgets/toolbar.edc2012-05-22
  05:18:12 UTC (rev 71297)
  @@ -131,6 +131,175 @@
 }
   }
 
  +group { name: elm/toolbar/more/default;
  +   images {
  +  image: toolbar_separator_h.png COMP;
  +   }
  +   parts {
  +  part { name: base;
  + mouse_events: 1;
  + description { state: default 0.0;
  +rel1.relative: 0.0 0.0;
  +rel2.relative: 1.0 0.0;
  +image {
  +   normal: bt_dis_base.png;
  +   border: 4 4 4 4;
  +}
  +image.middle: SOLID;
  + }
  + description { state: open 0.0;
  +inherit: default 0.0;
  +rel2.relative: 1.0 1.0;
  + }
  + description { state: open2 0.0;
  +inherit: default 0.0;
  +rel2.relative: 1.0 2.0;
  + }
  +  }
  +  part { name: clipper;
  + type: RECT;
  + mouse_events: 0;
  + description {
  +state: default 0.0;
  +fixed: 1 1;
  +rel1 {
  +   to: base;
  +}
  +rel2 {
  +   to: base;
  + --
 Gustavo Sverzut Barbieri
 http://profusion.mobi embedded systems
 --
 MSN: barbi...@gmail.com javascript:;
 Skype: gsbarbieri
 Mobile: +55 (19) 9225-2202

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. 

Re: [E-devel] [Patch]Add new APIs in multibuttonentry

2012-05-23 Thread The Rasterman
On Fri, 04 May 2012 05:16:10 + (GMT) GoUn Lee gouni@samsung.com said:

 Dear all,
 
 I've attached patch to add new API which is
 elm_multibuttonentry_input_panel_enabled_get/set() This is similar to
 elm_entry_input_panel_enabled_set/get(). Multibuttonentry handles input panel
 manually. it shows when multibuttonentry is focused and hides when it losts
 focus. But sometimes, it needs to be controlled by application especially
 focus is moving. so I've  added this APIs.
 
 I'd appreciate if someone could review this patch.
 Thank you,

first naming - it shouldnt be input_panel, but keyboard - look at elm_win.h -
Elm_Win_Keyboard_Mode. this sets keyboard hint modes on the window. so keyboard
is the naming you want.

secondly. shouldn't this really just be disabling ALL input (typing etc.) and
just as a SIDE EFFECT the vkbd (virtual keyboard - input panel) doesn't show
if the window is focused?

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: hyoyoung trunk/elementary/src/lib

2012-05-23 Thread Daniel Juyung Seo
Do we really need go to here?
It looks clean but I want to avoid using goto too many places without necessity.

Daniel Juyung Seo (SeoZ)

On Wed, May 23, 2012 at 4:31 PM, Enlightenment SVN
no-re...@enlightenment.org wrote:
 Log:
 elementary/genlist: add short cut in item bring in calc.
  fix compress_mode documentation.


 Author:       hyoyoung
 Date:         2012-05-23 00:31:03 -0700 (Wed, 23 May 2012)
 New Revision: 71349
 Trac:         http://trac.enlightenment.org/e/changeset/71349

 Modified:
  trunk/elementary/src/lib/elm_genlist.c trunk/elementary/src/lib/elm_genlist.h

 Modified: trunk/elementary/src/lib/elm_genlist.c
 ===
 --- trunk/elementary/src/lib/elm_genlist.c      2012-05-23 04:32:00 UTC (rev 
 71348)
 +++ trunk/elementary/src/lib/elm_genlist.c      2012-05-23 07:31:03 UTC (rev 
 71349)
 @@ -4955,6 +4955,9 @@
    Elm_Gen_Item *_it = (Elm_Gen_Item *)it;
    Evas_Coord gith = 0;
    if (_it-generation  _it-wd-generation) return EINA_FALSE;
 +   if ((_it-wd-homogeneous) 
 +       (_it-wd-mode == ELM_LIST_COMPRESS))
 +     goto hm_shortcut;  /* homogenous genlist shortcut */
    if ((_it-item-queued) || (!_it-item-mincalcd))
      {
         _it-wd-show_item = _it;
 @@ -4963,6 +4966,7 @@
         _it-item-showme = EINA_TRUE;
         return EINA_FALSE;
      }
 +hm_shortcut:
    if (_it-wd-show_item)
      {
         _it-wd-show_item-item-showme = EINA_FALSE;

 Modified: trunk/elementary/src/lib/elm_genlist.h
 ===
 --- trunk/elementary/src/lib/elm_genlist.h      2012-05-23 04:32:00 UTC (rev 
 71348)
 +++ trunk/elementary/src/lib/elm_genlist.h      2012-05-23 07:31:03 UTC (rev 
 71349)
 @@ -516,9 +516,11 @@
  * @note ELM_LIST_COMPRESS will make list resize slower as it will have to
  *       recalculate every item height again whenever the list width
  *       changes!
 - * @note When ELM_LIST_COMPRESS mode is enabled, it also enables
 - *       compress mode (see elm_genlist_mode_set()) and
 - *       disables homogeneous (see elm_genlist_homogeneous_set()).
 + * @note Homogeneous mode is for that all items in the genlist same
 + *       width/height. With ELM_LIST_COMPRESS, it makes genlist items to fast
 + *       initializing. However there's no sub-objects in genlist which can be
 + *       on the flying resizable (such as TEXTBLOCK). If then, some dynamic
 + *       resizable objects in genlist would not diplayed properly.
  *
  * @see elm_genlist_mode_get()
  *
 @@ -1326,8 +1328,7 @@
  *
  * This will enable the homogeneous mode where items are of the same
  * height and width so that genlist may do the lazy-loading at its
 - * maximum (which increases the performance for scrolling the list). This
 - * implies 'compressed' mode.
 + * maximum (which increases the performance for scrolling the list).
  *
  * @see elm_genlist_mode_set()
  * @see elm_genlist_homogeneous_get()


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-svn mailing list
 enlightenment-...@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-svn

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: hyoyoung trunk/elementary/src/lib

2012-05-23 Thread Joerg Sonnenberger
On Wed, May 23, 2012 at 05:56:10PM +0900, Bluezery wrote:
 2012/5/23 Hyoyoung Chang hyoyo...@gmail.com:
  Maybe it's best time to talk about sizeof(char)
 
  Do we need to sizeof(char)? I just that is problem of coding convention.
  such as (a == 0) and (!a).
  Is there any predefined convention about this case?
 
 sizeof(char) may be larger (in the future if we use unicode :p) than
 1.  but I haven't seen yet. :)

The C standard explicitly defines it as one. Are you thinking about
wchar_t?

Joerg

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: hyoyoung trunk/elementary/src/lib

2012-05-23 Thread Hyoyoung Chang
On Wed, May 23, 2012 at 6:59 PM, Daniel Juyung Seo seojuyu...@gmail.com wrote:
 Do we really need go to here?
 It looks clean but I want to avoid using goto too many places without 
 necessity.

In this case, i think so.
I don't like to use jump either.
But if jump makes clear code, there's no need to avoid


 Daniel Juyung Seo (SeoZ)

 On Wed, May 23, 2012 at 4:31 PM, Enlightenment SVN
 no-re...@enlightenment.org wrote:
 Log:
 elementary/genlist: add short cut in item bring in calc.
  fix compress_mode documentation.


 Author:       hyoyoung
 Date:         2012-05-23 00:31:03 -0700 (Wed, 23 May 2012)
 New Revision: 71349
 Trac:         http://trac.enlightenment.org/e/changeset/71349

 Modified:
  trunk/elementary/src/lib/elm_genlist.c 
 trunk/elementary/src/lib/elm_genlist.h

 Modified: trunk/elementary/src/lib/elm_genlist.c
 ===
 --- trunk/elementary/src/lib/elm_genlist.c      2012-05-23 04:32:00 UTC (rev 
 71348)
 +++ trunk/elementary/src/lib/elm_genlist.c      2012-05-23 07:31:03 UTC (rev 
 71349)
 @@ -4955,6 +4955,9 @@
    Elm_Gen_Item *_it = (Elm_Gen_Item *)it;
    Evas_Coord gith = 0;
    if (_it-generation  _it-wd-generation) return EINA_FALSE;
 +   if ((_it-wd-homogeneous) 
 +       (_it-wd-mode == ELM_LIST_COMPRESS))
 +     goto hm_shortcut;  /* homogenous genlist shortcut */
    if ((_it-item-queued) || (!_it-item-mincalcd))
      {
         _it-wd-show_item = _it;
 @@ -4963,6 +4966,7 @@
         _it-item-showme = EINA_TRUE;
         return EINA_FALSE;
      }
 +hm_shortcut:
    if (_it-wd-show_item)
      {
         _it-wd-show_item-item-showme = EINA_FALSE;

 Modified: trunk/elementary/src/lib/elm_genlist.h
 ===
 --- trunk/elementary/src/lib/elm_genlist.h      2012-05-23 04:32:00 UTC (rev 
 71348)
 +++ trunk/elementary/src/lib/elm_genlist.h      2012-05-23 07:31:03 UTC (rev 
 71349)
 @@ -516,9 +516,11 @@
  * @note ELM_LIST_COMPRESS will make list resize slower as it will have to
  *       recalculate every item height again whenever the list width
  *       changes!
 - * @note When ELM_LIST_COMPRESS mode is enabled, it also enables
 - *       compress mode (see elm_genlist_mode_set()) and
 - *       disables homogeneous (see elm_genlist_homogeneous_set()).
 + * @note Homogeneous mode is for that all items in the genlist same
 + *       width/height. With ELM_LIST_COMPRESS, it makes genlist items to 
 fast
 + *       initializing. However there's no sub-objects in genlist which can 
 be
 + *       on the flying resizable (such as TEXTBLOCK). If then, some dynamic
 + *       resizable objects in genlist would not diplayed properly.
  *
  * @see elm_genlist_mode_get()
  *
 @@ -1326,8 +1328,7 @@
  *
  * This will enable the homogeneous mode where items are of the same
  * height and width so that genlist may do the lazy-loading at its
 - * maximum (which increases the performance for scrolling the list). This
 - * implies 'compressed' mode.
 + * maximum (which increases the performance for scrolling the list).
  *
  * @see elm_genlist_mode_set()
  * @see elm_genlist_homogeneous_get()


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-svn mailing list
 enlightenment-...@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-svn

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [Patch][elm_map] Add elm_map_overlays_get elm_map_overlay_visible_get

2012-05-23 Thread The Rasterman
On Mon, 21 May 2012 14:09:22 +0900 Bluezery ohpo...@gmail.com said:

that's a lot of changes in a single patch, but ok- i took a look. nothing jumps
out at me as bad and hyouyong looked at it too, so in it goes. thanks! :)

 2012/5/15 Bluezery ohpo...@gmail.com:
  2012/5/14 Hyoyoung Chang hyoyo...@gmail.com:
  It works well, and pretty nice feature.
  diffs are good to me.
 
  In _overlay_show(Elm_Map_Overlay *overlay),
  there's many if statements. how about to change switch/case?
 
  Thank you for your comments :)
  Yes, switch looks better than if in this case.
  I fixed that. And Merged NEWS, Changelog also.
  Please review again.
 
 
  On Fri, May 4, 2012 at 2:29 PM, Bluezery ohpo...@gmail.com wrote:
  Dear EFL developers,
 
  I want to add 2 new APIs (elm_map_overlays_get 
  elm_map_overlay_visible_get).
 
  There are no way to get the group overlays because group overlay,
  something like virtual overlay, is created and deleted dynamically.
  So elm_map_overlays_get returns total overlay's list and user can get
  any type of overlays including group overlays.
  Overlays which is grouped can not be visible. Because overlay grouping
  is performed by elm_map, user do not know whether overlays are visible
  or not. So elm_map_overlay_visible_get is added for this reason.
 
  Thanks
 
  --
  BRs,
  Kim.
 
  --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond. Discussions
  will include endpoint security, mobile security and the latest in malware
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  enlightenment-devel mailing list
  enlightenment-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 
 
  --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond. Discussions
  will include endpoint security, mobile security and the latest in malware
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  enlightenment-devel mailing list
  enlightenment-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 
 
 
  --
  BRs,
  Kim.
 
 Bump up :D
 Changelog and NEWS are Merged.
 
 -- 
 BRs,
 Kim.


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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: tasn trunk/PROTO/eobj/lib

2012-05-23 Thread The Rasterman
On Tue, 08 May 2012 10:52:21 +0300 Tom Hacohen tom.haco...@samsung.com said:

 On 08/05/12 10:41, Vincent Torri wrote:
  http://eodev.sourceforge.net/eo/doc/html/index.html
 
  it's a C++ library that has eo as namespace. That means that if
  someone writes a C++ binding of our Eo, its namespace will conflict
  withthe above library if they are used together.
 
 Again, good point, please convince raster/cedric. I don't really care 
 about the naming, they wanted something short and cedric suggested eo. 
 Ask them what name they prefer and I'll change it, I don't really care. :)

it's ultimately not even going to be libeo - it's going to be part of libefl...
so it's moot. eo saves us typing lots of extra bj chars. we don't need extra
bj's in our code - just more slapping on the kbd we don't need. :)

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] The revised box breaks ctxpopup.

2012-05-23 Thread The Rasterman
On Thu, 10 May 2012 19:26:22 +0900 Kim Shinwoo kimcinoo@gmail.com said:

 Dear Mr. Gustavo Lima Chaves, Hello.
 
 I found the missed line when the box evaluates its size.
 Please review the patch. Thanks.

oh.. this is.. in already.. well then. btw - you dont need a changelog for
this as it sa fix to work done after 1.0 release. only if its a bug fix for a
bug that was there at 1.0 release or a new feature after 1.0 do we need
changelog. :)

 Sincerely,
 Shinwoo Kim.
 
 2012/5/9 Gustavo Chaves gl...@profusion.mobi:
  Hi, Shinwoo. Thanks for reporting. I'll get to it as soon as I can. Sorry
  for not noticing it before -- now #1 of my todo list.
 
  Best regards,
 
  On Tue, May 8, 2012 at 5:36 AM, Kim Shinwoo kimcinoo@gmail.com wrote:
 
  Hi! All,
 
  The revised box(
  http://trac.enlightenment.org/e/browser/trunk/elementary/src/lib/elm_box.c?rev=70745
  )
  breaks ctxpopup.
  Even though I would like to check what is the reason of this problem,
  It will be better to check with others.
 
  Sincerely,
  Shinwoo Kim.
 
 
  --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond. Discussions
  will include endpoint security, mobile security and the latest in malware
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  enlightenment-devel mailing list
  enlightenment-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 
 
 
 
  --
  Gustavo Lima Chaves
  Senior Developer
 
  ProFUSION embedded systems
 
  http://profusion.mobi
  --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond. Discussions
  will include endpoint security, mobile security and the latest in malware
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  enlightenment-devel mailing list
  enlightenment-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: yoz IN trunk/elementary: data/themes/widgets src/bin src/lib

2012-05-23 Thread The Rasterman
On Wed, 9 May 2012 16:11:45 +0200 Michaël Bouchaud y...@efl.so said:

 2012/5/8 Daniel Juyung Seo seojuyu...@gmail.com

 Ho damn !
 I had in mind, that you will merge genlist and gengrid when I wrote this
 patch.
 As you said, we need to fix it with an item type enum. And use the same api
 like genlist does for append/preppend funcs. And here you can name your
 item_class group_index again.
 I could provide a patch soon, if you want. Thats my mess :D

yes. patch. soon please! :):):) that'd be awesome++!

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Doing some publicity

2012-05-23 Thread The Rasterman
On Wed, 9 May 2012 11:12:41 +0200 Vincent Torri vincent.to...@gmail.com said:

 Hey
 
 As the EFL have been released, and as Tizen 1.0 has been announced, I
 think that it is important that we announce the EFL release on several
 sites (osnews, phoronix, /., etc...) so that the EFL are a bit more
 known.
 
 Indeed, I have just read that on /. :
 
 http://news.slashdot.org/comments.pl?sid=2822873cid=39861611
 
 I'm also pretty sure there are WAY more developers that know Qt/GTK
 out there, than developers who know EFL. I for one don't personally
 know anyone who's ever used EFL, but I do know plenty of people who've
 used Qt or GTK.
 
 If we want people to know the EFL, publicity *must* be done. And if
 possible, someone who writes good english (not me...) should write it.

agreed. we need tutorials/demos/howto's, but as we have all our libs split it's
a mess to do. thus merge into a single efl tree. single efl doc. no more
splitting it apart. but before we go there we have to get e17 out... :)

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] About ecore_pipe_add/del pair

2012-05-23 Thread The Rasterman
On Mon, 7 May 2012 19:09:45 +0900 (KST) Jiyoun Park jijib...@naver.com said:

hmm realistically ecore_init and shutdown (same really with almost any efl api)
is intended to be run ONCE per process and the shutdown once at process
termination. not multiple times. it's a lot harder to make this always work in
the repeated init/shutdown case and frankly was never intended for this or
tested and implemented for it. my suggestion: only init once and shut down
once. :)

 Hello. 
 
 I have a question related with ecore_init/ecore_shutdown. 
 
 ecore_init called ecore_pipe_add. 
 but ecore_shutdown didn't call ecore_pipe_del because of dealing with writing
 of onother thread. 
 
 This makes problem if application called ecore_init/ecore_shutdown several
 times in application life time. It will increse fd number until file open
 fail. 
 
 Is there some method to solve this bug or guide for application? 
 this is known bug. 
 
 If somebody have good method to solve or avoid this problem, please let me
 know it thank you. 
 
 I attached sample code. 
 
 
 -- Jiyoun Park (jypark) - 
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 


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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: hyoyoung trunk/elementary/src/lib

2012-05-23 Thread Bluezery
2012/5/23 Joerg Sonnenberger jo...@britannica.bec.de:
 On Wed, May 23, 2012 at 05:56:10PM +0900, Bluezery wrote:
 2012/5/23 Hyoyoung Chang hyoyo...@gmail.com:
  Maybe it's best time to talk about sizeof(char)
 
  Do we need to sizeof(char)? I just that is problem of coding convention.
  such as (a == 0) and (!a).
  Is there any predefined convention about this case?

 sizeof(char) may be larger (in the future if we use unicode :p) than
 1.  but I haven't seen yet. :)

 The C standard explicitly defines it as one. Are you thinking about
 wchar_t?
 Joerg

How about c++??


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel



-- 
BRs,
Kim.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: hyoyoung trunk/elementary/src/lib

2012-05-23 Thread Vincent Torri
On Wed, May 23, 2012 at 12:50 PM, Bluezery ohpo...@gmail.com wrote:
 2012/5/23 Joerg Sonnenberger jo...@britannica.bec.de:
 On Wed, May 23, 2012 at 05:56:10PM +0900, Bluezery wrote:
 2012/5/23 Hyoyoung Chang hyoyo...@gmail.com:
  Maybe it's best time to talk about sizeof(char)
 
  Do we need to sizeof(char)? I just that is problem of coding convention.
  such as (a == 0) and (!a).
  Is there any predefined convention about this case?

 sizeof(char) may be larger (in the future if we use unicode :p) than
 1.  but I haven't seen yet. :)

 The C standard explicitly defines it as one. Are you thinking about
 wchar_t?
 Joerg

 How about c++??

same (of course), as any C prog must be run without differences when
compiled with a c++ compiler.

Nevertheless, look at this:

http://www.parashift.com/c++-faq-lite/new/sizeof-char.html

Vincent

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: hyoyoung trunk/elementary/src/lib

2012-05-23 Thread Hyoyoung Chang
It's a good information thread but off topic :P
raster said, in e coding style, do not need to check sizeof(char).
thanks guys.

On Wed, May 23, 2012 at 7:57 PM, Vincent Torri vincent.to...@gmail.com wrote:
 On Wed, May 23, 2012 at 12:50 PM, Bluezery ohpo...@gmail.com wrote:
 2012/5/23 Joerg Sonnenberger jo...@britannica.bec.de:
 On Wed, May 23, 2012 at 05:56:10PM +0900, Bluezery wrote:
 2012/5/23 Hyoyoung Chang hyoyo...@gmail.com:
  Maybe it's best time to talk about sizeof(char)
 
  Do we need to sizeof(char)? I just that is problem of coding convention.
  such as (a == 0) and (!a).
  Is there any predefined convention about this case?

 sizeof(char) may be larger (in the future if we use unicode :p) than
 1.  but I haven't seen yet. :)

 The C standard explicitly defines it as one. Are you thinking about
 wchar_t?
 Joerg

 How about c++??

 same (of course), as any C prog must be run without differences when
 compiled with a c++ compiler.

 Nevertheless, look at this:

 http://www.parashift.com/c++-faq-lite/new/sizeof-char.html

 Vincent

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: hyoyoung trunk/elementary/src/lib

2012-05-23 Thread Bluezery
2012/5/23 Vincent Torri vincent.to...@gmail.com:
 On Wed, May 23, 2012 at 12:50 PM, Bluezery ohpo...@gmail.com wrote:
 2012/5/23 Joerg Sonnenberger jo...@britannica.bec.de:
 On Wed, May 23, 2012 at 05:56:10PM +0900, Bluezery wrote:
 2012/5/23 Hyoyoung Chang hyoyo...@gmail.com:
  Maybe it's best time to talk about sizeof(char)
 
  Do we need to sizeof(char)? I just that is problem of coding convention.
  such as (a == 0) and (!a).
  Is there any predefined convention about this case?

 sizeof(char) may be larger (in the future if we use unicode :p) than
 1.  but I haven't seen yet. :)

 The C standard explicitly defines it as one. Are you thinking about
 wchar_t?
 Joerg

 How about c++??

 same (of course), as any C prog must be run without differences when
 compiled with a c++ compiler.

 Nevertheless, look at this:

 http://www.parashift.com/c++-faq-lite/new/sizeof-char.html

 Vincent

Thank you for the link. I have to study harder !!!
Anyway, c standard also says it's 1. :p
http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2011/n3242.pdf

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel



-- 
BRs,
Kim.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [Query] [Edje] multisense audio play behaviour .

2012-05-23 Thread The Rasterman
On Thu, 10 May 2012 12:10:32 + (GMT) PRINCE KUMAR DUBEY
prince.du...@samsung.com said:

it depends. this depends on channel assignment. if you want to play on a
single output channel or have a new channel dynamically created per play
event. so the unfortunate answer is both. you need to be able to play and
have it replace the sample on a channel (eg the implicit default channel),
or to be able to replace a sample on an explicit channel name OR to be able to
just magically create a new anonymous channel and play there.

 
 Hi,
 
 This is regarding edje multisense audio play.
 suppose my application is using a widget (e.g. button) which use edje
 multisense feature, on touch I am playing it. if suppose the sample is long
 enough and I am pushing the application in background. now my query is what
 should be the behaviour? whether it should stop playing or something else ?
 if it should stop, how to handle this ? who will handle this ? should we have
 some interface in edje so, application can use ? Please provide some
 suggestions. Thanks Prince
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 


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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: hyoyoung trunk/elementary/src/lib

2012-05-23 Thread Vincent Torri
On Wed, May 23, 2012 at 1:09 PM, Bluezery ohpo...@gmail.com wrote:
 2012/5/23 Vincent Torri vincent.to...@gmail.com:
 On Wed, May 23, 2012 at 12:50 PM, Bluezery ohpo...@gmail.com wrote:
 2012/5/23 Joerg Sonnenberger jo...@britannica.bec.de:
 On Wed, May 23, 2012 at 05:56:10PM +0900, Bluezery wrote:
 2012/5/23 Hyoyoung Chang hyoyo...@gmail.com:
  Maybe it's best time to talk about sizeof(char)
 
  Do we need to sizeof(char)? I just that is problem of coding convention.
  such as (a == 0) and (!a).
  Is there any predefined convention about this case?

 sizeof(char) may be larger (in the future if we use unicode :p) than
 1.  but I haven't seen yet. :)

 The C standard explicitly defines it as one. Are you thinking about
 wchar_t?
 Joerg

 How about c++??

 same (of course), as any C prog must be run without differences when
 compiled with a c++ compiler.

 Nevertheless, look at this:

 http://www.parashift.com/c++-faq-lite/new/sizeof-char.html

 Vincent

 Thank you for the link. I have to study harder !!!
 Anyway, c standard also says it's 1. :p
 http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2011/n3242.pdf

read the kernighan and ritchie book

Vincent

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: raster trunk/edje/src/bin

2012-05-23 Thread David Seikel
On Tue, 22 May 2012 20:12:25 -0700 Enlightenment SVN
no-re...@enlightenment.org wrote:

 Log:
 found scrollbar bug in e17 theme... something to do with my making
   part lookups faster (O(1)). disable new part lookup code until i've
   figured it out.

Is it safe to use edje_cc again?  See my previous email about it being
lazy.

-- 
A big old stinking pile of genius that no one wants
coz there are too many silver coated monkeys in the world.


signature.asc
Description: PGP signature
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: hyoyoung trunk/elementary/src/lib

2012-05-23 Thread ChunEon Park
No care about it actually. but I just said for the maintainence .

If u need to change the buffer type to support unicode or whatever else,
then you need to modify all of lines where you refered the buffer pointer as 1 
size.

If u miss those lines, then BOOM!@

And I think that is not just regards with coding style but the programming 
skill.

The answer just raster said. is not enough neither.


-Regards, Hermet-

-Original Message-
From: Hyoyoung Changhyoyo...@gmail.com 
To: Enlightenment developer listenlightenment-devel@lists.sourceforge.net; 
Cc: 
Sent: 2012-05-23 (수) 20:06:55
Subject: Re: [E-devel] E SVN: hyoyoung trunk/elementary/src/lib

It's a good information thread but off topic :P
raster said, in e coding style, do not need to check sizeof(char).
thanks guys.

On Wed, May 23, 2012 at 7:57 PM, Vincent Torri vincent.torri@gmail.com wrote:
 On Wed, May 23, 2012 at 12:50 PM, Bluezery ohpowel@gmail.com wrote:
 2012/5/23 Joerg Sonnenberger joerg@britannica.bec.de:
 On Wed, May 23, 2012 at 05:56:10PM +0900, Bluezery wrote:
 2012/5/23 Hyoyoung Chang hyoyoung@gmail.com:
  Maybe it's best time to talk about sizeof(char)
 
  Do we need to sizeof(char)? I just that is problem of coding convention.
  such as (a == 0) and (!a).
  Is there any predefined convention about this case?

 sizeof(char) may be larger (in the future if we use unicode :p) than
 1.  but I haven't seen yet. :)

 The C standard explicitly defines it as one. Are you thinking about
 wchar_t?
 Joerg

 How about c++??

 same (of course), as any C prog must be run without differences when
 compiled with a c++ compiler.

 Nevertheless, look at this:

 http://www.parashift.com/c++-faq-lite/new/sizeof-char.html

 Vincent

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Cedric is lazy to.

2012-05-23 Thread Cedric BAIL
On Tue, May 22, 2012 at 5:06 PM, David Seikel onef...@gmail.com wrote:
 On Tue, 22 May 2012 10:26:03 +1000 David Seikel onef...@gmail.com
 wrote:
 Just a reminder to Cedric to fix up what he broke in edje_cc.  It
 falls asleep quite often, never stopping.  He said last night in IRC
 that disabling glib integration will fix that, but it made no
 difference.

 Trying to compile latest SVN I have to killall -TERM edje_cc all the
 damn time.  Seems to be about half of the time it's needed.

 That was painful.  Had to kill edje_cc every few minutes, but I was busy
 doing other stuff.  So the entire SVN compile took all day.  I should
 have just put sleep 300; killall -KILL edje_cc in a loop.

Hey, I haven't been lazy at all. I have successfully teach raster how
to efficiently bork svn ! That was quite a work :-)
-- 
Cedric BAIL

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: hyoyoung trunk/elementary/src/lib

2012-05-23 Thread Cedric BAIL
On Tue, May 22, 2012 at 6:02 PM, Leandro Pereira lean...@profusion.mobi wrote:
 On Mon, May 21, 2012 at 10:35 PM, Enlightenment SVN
 no-re...@enlightenment.org wrote:
    cnp_debug(Got some HTML: Checking encoding is useful\n);
    data = notify-data;
 +   char *stripstr = malloc(sizeof(char) * (data-length + 1));

 sizeof(char) is 1 by definition. Just malloc(data-length + 1).

You are wrong sizeof(unsigned char) is one. On some system, it could
be a signed char and be bigger. I think it's the case on SPARC. Not
sure about it.
-- 
Cedric BAIL

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: hyoyoung trunk/elementary/src/lib

2012-05-23 Thread Vincent Torri
On Wed, May 23, 2012 at 3:31 PM, Cedric BAIL cedric.b...@free.fr wrote:
 On Tue, May 22, 2012 at 6:02 PM, Leandro Pereira lean...@profusion.mobi 
 wrote:
 On Mon, May 21, 2012 at 10:35 PM, Enlightenment SVN
 no-re...@enlightenment.org wrote:
    cnp_debug(Got some HTML: Checking encoding is useful\n);
    data = notify-data;
 +   char *stripstr = malloc(sizeof(char) * (data-length + 1));

 sizeof(char) is 1 by definition. Just malloc(data-length + 1).

 You are wrong sizeof(unsigned char) is one. On some system, it could
 be a signed char and be bigger. I think it's the case on SPARC. Not
 sure about it.

if i'm not mistaken, on some systems, sizeof(char) == 1 but the size
taken in memory  by a char is  8 bits (on some cray, it's 64 bits)

the standard (C ansi) says that if 't' is an integer type, sizeof(t)
== sizeof(signed t) == sizeof(unsigned t)

Vincent

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: raster trunk/edje/src/bin

2012-05-23 Thread The Rasterman
On Wed, 23 May 2012 22:11:50 +1000 David Seikel onef...@gmail.com said:

 On Tue, 22 May 2012 20:12:25 -0700 Enlightenment SVN
 no-re...@enlightenment.org wrote:
 
  Log:
  found scrollbar bug in e17 theme... something to do with my making
part lookups faster (O(1)). disable new part lookup code until i've
figured it out.
 
 Is it safe to use edje_cc again?  See my previous email about it being
 lazy.

laziness is all cedric's fault. :) that hasn't changed.

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: raster trunk/ecore/src/lib/ecore_con

2012-05-23 Thread Michael Blumenkrantz
not quite, internet sucking too much to fix it myself atm. couple cnp fails
by me while rewriting things a long time ago I guess

On Wed, May 23, 2012 at 9:07 AM, Enlightenment SVN 
no-re...@enlightenment.org wrote:

 Log:
 before i changelog and backport this... discomfitor - look at this!
  how the hell did we get ecore_con to the state of NEVER
  closing/freeing clients?



 Author:   raster
 Date: 2012-05-23 02:07:47 -0700 (Wed, 23 May 2012)
 New Revision: 71352
 Trac: http://trac.enlightenment.org/e/changeset/71352

 Modified:
  trunk/ecore/src/lib/ecore_con/ecore_con.c

 Modified: trunk/ecore/src/lib/ecore_con/ecore_con.c
 ===
 --- trunk/ecore/src/lib/ecore_con/ecore_con.c   2012-05-23 08:47:37 UTC
 (rev 71351)
 +++ trunk/ecore/src/lib/ecore_con/ecore_con.c   2012-05-23 09:07:47 UTC
 (rev 71352)
 @@ -116,9 +116,17 @@
  }
INF(Lost client %s, (cl-ip) ? cl-ip : );
if (cl-fd_handler)
 - ecore_main_fd_handler_del(cl-fd_handler);
 -
 -   cl-fd_handler = NULL;
 + {
 +ecore_main_fd_handler_del(cl-fd_handler);
 +cl-fd_handler = NULL;
 + }
 +   if (cl-host_server)
 + {
 +_ecore_con_client_free(cl);
 +cl-host_server-clients =
 +  eina_list_remove(cl-host_server-clients, cl);
 +cl-host_server = NULL;
 + }
  }

  void



 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-svn mailing list
 enlightenment-...@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-svn

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: hyoyoung trunk/elementary/src/lib

2012-05-23 Thread Iván Briano
2012/5/23 ChunEon Park her...@naver.com:
 No care about it actually. but I just said for the maintainence .

 If u need to change the buffer type to support unicode or whatever else,
 then you need to modify all of lines where you refered the buffer pointer as 
 1 size.

 If u miss those lines, then BOOM!@

 And I think that is not just regards with coding style but the programming 
 skill.

 The answer just raster said. is not enough neither.


We use utf8 everywhere, except in Eina_Unicode that Evas uses
internally. If you decide to suddenly switch how to handle strings
in our code you'll have much bigger problems than just the type
and size of one buffer.
It's fine to think about how things may change in the future, but
there's a limit to it. Otherwise, what about the case when quantum
computing is a common thing and bits are no longer are limited to 1 and 0?
Should we start taking that case into account all over our code?

 
 -Regards, Hermet-

 -Original Message-
 From: Hyoyoung Changhyoyo...@gmail.com
 To: Enlightenment developer listenlightenment-devel@lists.sourceforge.net;
 Cc:
 Sent: 2012-05-23 (수) 20:06:55
 Subject: Re: [E-devel] E SVN: hyoyoung trunk/elementary/src/lib

 It's a good information thread but off topic :P
 raster said, in e coding style, do not need to check sizeof(char).
 thanks guys.

 On Wed, May 23, 2012 at 7:57 PM, Vincent Torri vincent.torri@gmail.com 
 wrote:
 On Wed, May 23, 2012 at 12:50 PM, Bluezery ohpowel@gmail.com wrote:
 2012/5/23 Joerg Sonnenberger joerg@britannica.bec.de:
 On Wed, May 23, 2012 at 05:56:10PM +0900, Bluezery wrote:
 2012/5/23 Hyoyoung Chang hyoyoung@gmail.com:
  Maybe it's best time to talk about sizeof(char)
 
  Do we need to sizeof(char)? I just that is problem of coding convention.
  such as (a == 0) and (!a).
  Is there any predefined convention about this case?

 sizeof(char) may be larger (in the future if we use unicode :p) than
 1.  but I haven't seen yet. :)

 The C standard explicitly defines it as one. Are you thinking about
 wchar_t?
 Joerg

 How about c++??

 same (of course), as any C prog must be run without differences when
 compiled with a c++ compiler.

 Nevertheless, look at this:

 http://www.parashift.com/c++-faq-lite/new/sizeof-char.html

 Vincent

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Cedric is lazy to.

2012-05-23 Thread David Seikel
On Wed, 23 May 2012 15:19:15 +0200 Cedric BAIL cedric.b...@free.fr
wrote:

 On Tue, May 22, 2012 at 5:06 PM, David Seikel onef...@gmail.com
 wrote:
  On Tue, 22 May 2012 10:26:03 +1000 David Seikel onef...@gmail.com
  wrote:
  Just a reminder to Cedric to fix up what he broke in edje_cc.  It
  falls asleep quite often, never stopping.  He said last night in
  IRC that disabling glib integration will fix that, but it made no
  difference.
 
  Trying to compile latest SVN I have to killall -TERM edje_cc all
  the damn time.  Seems to be about half of the time it's needed.
 
  That was painful.  Had to kill edje_cc every few minutes, but I was
  busy doing other stuff.  So the entire SVN compile took all day.  I
  should have just put sleep 300; killall -KILL edje_cc in a loop.
 
 Hey, I haven't been lazy at all. I have successfully teach raster how
 to efficiently bork svn ! That was quite a work :-)

lol

-- 
A big old stinking pile of genius that no one wants
coz there are too many silver coated monkeys in the world.


signature.asc
Description: PGP signature
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Cedric is lazy to.

2012-05-23 Thread Iván Briano
2012/5/23 David Seikel onef...@gmail.com:
 On Wed, 23 May 2012 15:19:15 +0200 Cedric BAIL cedric.b...@free.fr
 wrote:

 On Tue, May 22, 2012 at 5:06 PM, David Seikel onef...@gmail.com
 wrote:
  On Tue, 22 May 2012 10:26:03 +1000 David Seikel onef...@gmail.com
  wrote:
  Just a reminder to Cedric to fix up what he broke in edje_cc.  It
  falls asleep quite often, never stopping.  He said last night in
  IRC that disabling glib integration will fix that, but it made no
  difference.
 
  Trying to compile latest SVN I have to killall -TERM edje_cc all
  the damn time.  Seems to be about half of the time it's needed.
 
  That was painful.  Had to kill edje_cc every few minutes, but I was
  busy doing other stuff.  So the entire SVN compile took all day.  I
  should have just put sleep 300; killall -KILL edje_cc in a loop.

 Hey, I haven't been lazy at all. I have successfully teach raster how
 to efficiently bork svn ! That was quite a work :-)

 lol


Maybe this helps?


   \_ /opt/e17/bin/edje_cc -id ../../data/themes -f
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
|   \_ [embryo_cc] defunct
\_ /opt/e17/bin/edje_cc -id ../../data/themes -f
\_ [embryo_cc] defunct
\_ [embryo_cc] defunct
\_ [embryo_cc] defunct
\_ [embryo_cc] defunct
\_ [embryo_cc] defunct

 A big old stinking pile of genius that no one wants
 coz there are too many silver coated monkeys in the world.

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 

Re: [E-devel] [Patch][Efreet] Add parameter checking to exported API (efreet_desktop)

2012-05-23 Thread Gustavo Sverzut Barbieri
On Wed, May 23, 2012 at 5:40 AM, Bluezery ohpo...@gmail.com wrote:
 2012/5/22 Cedric BAIL cedric.b...@free.fr:
 On Tue, May 22, 2012 at 12:48 PM, Christopher Michael
 cpmicha...@comcast.net wrote:
 On 05/21/12 16:34, Sebastian Dransfeld wrote:
 On 05/21/2012 08:24 AM, Bluezery wrote:
 Hello,

 Some efreet APIs do not check input parameters.  So I add checking by
 using EINA_SAFETY_ON_XXX().
 ISO/IEC statndards says that If an argument to a function has an
 invalid value, behavior is undefined . But this is  just for the
 primitive functions such as libc.  I think that parameter checking is
 needed in at least EFL exported APIs

 This I 150% support (Not the use of Eina, but rather the checking) !!
 Exported APIs need to be clean

 EFL needs lots of param checking. Has been missing for a bit of time
 now. I try to add it as I go, but not everyone is supportive. Some do
 see it as a wasted variable check ... but I would rather KNOW that the
 stuff I am working with IS valid first, before I start to work with it
 ;) ... If not, then what's left ? A Guess that the variable is valid ???
 No thanks ;)

 Actually the EINA_SAFETY is something that could be turned off at
 build time, so the cost at runtime would be zero on a production
 build. This also means that if you use EINA_SAFETY, apps will be
 warned about there unwise usage. Prefer direct check if you want them
 to always work. I do consider that for example *_free(*) should always
 work on NULL, so better to not use EINA_SAFETY.
  Sorry I don't have much time to check your patch now. Maybe will do next 
 week.
 --
 Cedric BAIL

 Thank you for your comment.
 In release time, we can also disable logging?? but if so, some
 overhead is remained yet.
 Currently it seems that we can only enable/disable eina safety checks in eina
 Can we add another safety check mode to reduce overhead more such as
 safety check without logging mode (only use if/else)?? and we can
 select safety check mode when build time.
 It seems that current IT trend makes release cycle more shorter
 (incremental releases) and logging system may be needed after a
 product is released in this case.

You can disable it in whatever software defines the maximum logging
level. If you choose to disable in your own project, just do look at
expected CPP symbol: EINA_LOG_LEVEL_MAXIMUM

What I recommend is to only do EINA_LOG_LEVEL_MAXIMUM=1 (error) and
that will disable the report of all but critical and errors. Warning,
debug and info are gone at compile phase if you choose -O2 (maybe -O1
as well). As reference see:
  - http://trac.enlightenment.org/e/browser/trunk/eina/configure.ac#L175
  - http://trac.enlightenment.org/e/browser/trunk/ecore/configure.ac#L78


That's for logging, but safety check logs to ERR (1) and would be
still be printed. You can opt to decrease the maximum log level,
keeping the if() return without the logging.
   Right now there is no way to disable the safety checks for the user
software as it's configured only in eina_config.h But it's pretty easy
to add such check in eina_safety_checks.h, allowing user software to
define some EINA_SAFETY_CHECKS_DISABLE.

But really, the check is pretty irrelevant... if you consider the cost
of a comparison instruction it's way smaller than a function call,
that we do a lot. Usually these checks exist only on function entrance
and not on hot-paths.

Then leave the safety checks and the benefit they may bring. You
should decrease the maximum log level as it will also reduce the code
size by removing the unused strings.

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: jaehwan IN trunk/elementary: . data/themes/widgets src/bin src/lib

2012-05-23 Thread Gustavo Sverzut Barbieri
On Wed, May 23, 2012 at 6:51 AM, Daniel Juyung Seo seojuyu...@gmail.com wrote:
 Hello,

 On Wed, May 23, 2012 at 3:51 PM, Jaehwan Kim jaehwan.kim@gmail.com 
 wrote:
 Dear Gustavo


 2012년 5월 23일 수요일에 Gustavo Sverzut Barbieri님이 작성:

 Hi,

 what's the use case in setting a maximum number of items manually?


 If we want to expand the size of items as window size, we will use
 ELM_TOOLBAR_SHRINK_EXPAND mode.
 At that time, if the items are more than what we want to show, we should
 limit the number of visible items.

 For me this requirement looks weird. Why we limit the number of items
 and put the rest items into more option even though we have enough
 space?

 So I limited by using maximum number.
 If I want to show 5 items among the 12 items regardless of window size, is
 there any other method?


 And yes you're right. If someone really wants to have this ugliness,
 your commit is needed.


 To me this seems like a hack. It should be defined based on the available
 space. Otherwise you'll get horrible user interfaces by changing screen
 resolution, or even screen orientation in mobile devices.


 In current toolbar, there are more item. If the more item is clicked, the
 menu widget is shown the below of toolbar.
 It is shown not available space, too.
 I think the location of more panel is not a problem. If there are some ugly
 user interface by changing resolution, I'll fix it.

 Thanks for your advice and if there is any alternative, please explain it.

 Please ask them why they need this feature.

I totally agree on Seoz points. First have them to prove why this is
the case, otherwise you introduce new code that is unneeded and people
have to maintain it... and if I know designers well, you'll have to
later change your code because they will change their mind, then the
code is unused by everyone :-/

And being a hack, I'd leave the hack to other places instead of
Elementary. In your case, you can place the toolbar inside a box, and
add padding rectangles to sides. Then you calculate the toolbar item
size, the amount needed, resize the padding rectangles to force
toolbar to be resized. Ugly as hell, but better in your app than in
Elementary.

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] About ecore_pipe_add/del pair

2012-05-23 Thread Gustavo Sverzut Barbieri
On Wed, May 23, 2012 at 7:49 AM, Carsten Haitzler ras...@rasterman.com wrote:
 On Mon, 7 May 2012 19:09:45 +0900 (KST) Jiyoun Park jijib...@naver.com said:

 hmm realistically ecore_init and shutdown (same really with almost any efl 
 api)
 is intended to be run ONCE per process and the shutdown once at process
 termination. not multiple times. it's a lot harder to make this always work in
 the repeated init/shutdown case and frankly was never intended for this or
 tested and implemented for it. my suggestion: only init once and shut down
 once. :)

I know you wrote this based on an application writer point of view.
But given this is a generic mail list, please make the following
remark visible:

 - always init and shutdown ONCE per your CALL SITE usage.

That means: if you write an app that uses ecore_* symbols, always call
ecore_init() and ecore_shutdown() from your app. Even if you get that
ecore_* from elementary_init()[1]. This consistency will save you
headaches in the future. And this rule easily applies to library,
being consistent everywhere. Actually it is the case to solve DSO
problems in linkage, pkg-config problems and so on.

[1] I know many of us don't do ecore_init(), evas_init(),
eina_init()... and so on when using elementary_init(). Saves typing,
but is bad for consistency. If you explicitly use these symbols, as we
often do, then it's better to explicitly call them and avoid issues.
If you're experienced enough to skip them, do it but do not RECOMMEND
it to people :-)  [if you don't call any ecore_evas_*, then there is
no need to ecore_evas_init()...]

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Cedric is lazy to.

2012-05-23 Thread Daniel Juyung Seo
Yes in terms of breaking svn, you are not lazy :)

Daniel Juyung Seo (SeoZ)

On Wed, May 23, 2012 at 10:19 PM, Cedric BAIL cedric.b...@free.fr wrote:
 On Tue, May 22, 2012 at 5:06 PM, David Seikel onef...@gmail.com wrote:
 On Tue, 22 May 2012 10:26:03 +1000 David Seikel onef...@gmail.com
 wrote:
 Just a reminder to Cedric to fix up what he broke in edje_cc.  It
 falls asleep quite often, never stopping.  He said last night in IRC
 that disabling glib integration will fix that, but it made no
 difference.

 Trying to compile latest SVN I have to killall -TERM edje_cc all the
 damn time.  Seems to be about half of the time it's needed.

 That was painful.  Had to kill edje_cc every few minutes, but I was busy
 doing other stuff.  So the entire SVN compile took all day.  I should
 have just put sleep 300; killall -KILL edje_cc in a loop.

 Hey, I haven't been lazy at all. I have successfully teach raster how
 to efficiently bork svn ! That was quite a work :-)
 --
 Cedric BAIL

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] [BUG] Items Minimized to Systray Fail to Maximize

2012-05-23 Thread Joel Madero
There are several applications which I use that fail to maximize once I
minimize to systray, the most notable are Empathy  Handbrake. This is
happening on multiple machines and has been confirmed by another user of
Bodhi. With empathy, after minimizing the buddy list to systray there is no
way to re-maximize it (bring it back up) other than to use the Windows Menu
option.

Distribution: Bodhi Linux 1.4
E-Packages: 20120514-1

Other notes:
The shelf that the systray is on is set to not autohide and to allow
windows to overlap it but I've tested it with other settings and it seems
100% consistent in not being able to refocus a window after it's been
minimized to the systray.

Some other apps show less of a problem or no problem when minimized to
systray:
Clementine: No problem, can minimize and maximize with single clicks
Opera: Seems to be a partial issue, sometimes I have to click on the icon
3-5 times before it'll actually refocus and maximize from systray.

The problem seems worse if iBox is also being used but this could just be
my imagination. With or without iBox systray never will remaximize my buddy
list or handbrake.
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Elementary+threading

2012-05-23 Thread Leif Middelschulte
Hey there,

I put together an example that reveils unexpected elm behavior here on
my T60 (Intel T2500).

I'm mentioning my cpu, because - according to ecore_thread's docs -
the number of maximum threads is limited to 2n | n = |processors|.
For some reason though the default number of threads equals my # of cpus.

So anybody who has a more recent machine please extend the number of
events emited/threads generated to the number of your maximum threads
- 1 to make elm_fileselector show nothing.


I hope I'm doing something wrong here.

-- 
Leif
#include Ecore.h
#include Elementary.h

void _blocking1(void *data, Ecore_Thread *th)
{
   ecore_thread_reschedule(th);
}

void create_thread1(void)
{
   ecore_thread_run(_blocking1, NULL, NULL, NULL);
}

Eina_Bool _event_1(void *data, int type, void *event)
{
   create_thread1();
   return ECORE_CALLBACK_RENEW;
}


void _blocking2(void *data, Ecore_Thread *th)
{
   ecore_thread_reschedule(th);
}

void create_thread2(void)
{
   ecore_thread_run(_blocking2, NULL, NULL, NULL);
}

Eina_Bool _event_2(void *data, int type, void *event)
{
   create_thread2();
   return ECORE_CALLBACK_RENEW;
}


void _blocking3(void *data, Ecore_Thread *th)
{
   ecore_thread_reschedule(th);
}

void create_thread3(void)
{
   ecore_thread_run(_blocking3, NULL, NULL, NULL);
}

Eina_Bool _event_3(void *data, int type, void *event)
{
   create_thread3();
   return ECORE_CALLBACK_RENEW;
}

static void /* hook on the sole smart callback */
_file_chosen(void *data, Evas_Object *obj, void *event_info)
{
   const char *file = event_info;
   if (file)
 printf(File chosen: %s\n, file);
   else
 printf(File selection canceled.\n);
}

EAPI_MAIN int elm_main(int argc, char **argv)
{
   Evas_Object *win, *bg, *btn;

   win = elm_win_add(NULL, layout, ELM_WIN_BASIC);
   elm_win_title_set(win, Layout);
   elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
   elm_win_autodel_set(win, EINA_TRUE);

   bg = elm_bg_add(win);
   elm_bg_color_set(bg, 255, 255, 255);
   evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   elm_win_resize_object_add(win, bg);
   evas_object_show(bg);
   evas_object_size_hint_min_set(bg, 160, 160);
   evas_object_size_hint_max_set(bg, 640, 640);

   btn = elm_fileselector_button_add(bg);
   elm_object_text_set(btn, Select a file);
   evas_object_smart_callback_add(btn, file,chosen, _file_chosen, NULL);
   evas_object_resize(btn, 100, 50);
   evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   evas_object_size_hint_align_set(bg, 0.5, 0.5);
   evas_object_show(btn);

   evas_object_resize(win, 320, 320);
   evas_object_show(win);

   //add event handlers
   ecore_event_handler_add(1, _event_1, NULL);
   ecore_event_handler_add(2, _event_2, NULL);
   ecore_event_handler_add(3, _event_3, NULL);

   //one extra thread: no problem
   ecore_event_add(1, NULL, NULL, NULL);
   //This second event/thread will lead no an empty/buggy fileselector
   ecore_event_add(2, NULL, NULL, NULL);
   //This third event/thread will lead to no UI at all/crashing app.
   ecore_event_add(3, NULL, NULL, NULL);

   elm_run();
   elm_shutdown();

   return 0;
}

ELM_MAIN()
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] [PATCH v3] Only unlink the temporary file created in evas_object_image_memfile_set on cleanup

2012-05-23 Thread Raphael Kubo da Costa
Vincent Torri vincent.to...@gmail.com writes:

 On Mon, May 21, 2012 at 10:28 AM, Joerg Sonnenberger
 jo...@britannica.bec.de wrote:
 On Mon, May 21, 2012 at 12:15:10AM -0300, Raphael Kubo da Costa wrote:
 After talking about the previous version of the patch with raster on
 IRC, I'm sending a more conservative version that does not change the
 Linux behavior -- /dev/shm is expected to work on Linux, and the
 non-Linux case works at the expense of leaving some files in /tmp if a
 crash occurs before _cleanup_tmpf() is called.

 Can you not hard-code /tmp, but try to honor TMPDIR?

 TMPDIR does not exist on Windows. TMP and  TEMP do

New attempt attached: we now check TMPDIR, TMP and TEMP (in this order)
before falling back to /tmp.

Index: src/lib/canvas/evas_object_image.c
===
--- src/lib/canvas/evas_object_image.c	(revision 71134)
+++ src/lib/canvas/evas_object_image.c	(working copy)
@@ -203,8 +203,7 @@
 
o = (Evas_Object_Image *)(obj-object_data);
if (!o-tmpf) return;
-#ifdef __linux__
-#else
+#ifndef __linux__
unlink(o-tmpf);
 #endif
if (o-tmpf_fd = 0) close(o-tmpf_fd);
@@ -224,19 +223,22 @@
char buf[4096];
void *dst;
int fd = -1;
+   const char *tmpdir;

o = (Evas_Object_Image *)(obj-object_data);
+
 #ifdef __linux__
snprintf(buf, sizeof(buf), /dev/shm/.evas-tmpf-%i-%p-%i-XX, 
 (int)getpid(), data, (int)size);
+#else
+   tmpdir = getenv(TMPDIR);
+   if (!tmpdir) tmpdir = getenv(TMP);
+   if (!tmpdir) tmpdir = getenv(TEMP);
+   if (!tmpdir) tmpdir = /tmp;
+   snprintf(buf, sizeof(buf), %s/.evas-tmpf-%i-%p-%i-XX, 
+	tmpdir, (int)getpid(), data, (int)size);
+#endif
fd = mkstemp(buf);
-#endif   
-   if (fd  0)
- {
-snprintf(buf, sizeof(buf), /tmp/.evas-tmpf-%i-%p-%i-XX, 
- (int)getpid(), data, (int)size);
-fd = mkstemp(buf);
- }
if (fd  0) return;
if (ftruncate(fd, size)  0)
  {
@@ -244,7 +246,9 @@
 close(fd);
 return;
  }
+#ifdef __linux__
unlink(buf);
+#endif

eina_mmap_safety_enabled_set(EINA_TRUE);

@@ -269,6 +273,7 @@
(void) data;
(void) size;
(void) format;
+   (void) tmpdir;
 #endif
 }
 
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [Patch][Efreet] Add parameter checking to exported API (efreet_desktop)

2012-05-23 Thread Sebastian Dransfeld
On 05/23/2012 10:26 AM, Bluezery wrote:
 2012/5/22 Christopher Michaelcpmicha...@comcast.net:
 On 05/21/12 16:34, Sebastian Dransfeld wrote:
 On 05/21/2012 08:24 AM, Bluezery wrote:
 Hello,

 Some efreet APIs do not check input parameters.  So I add checking by
 using EINA_SAFETY_ON_XXX().
 ISO/IEC statndards says that If an argument to a function has an
 invalid value, behavior is undefined . But this is  just for the
 primitive functions such as libc.  I think that parameter checking is
 needed in at least EFL exported APIs

In, with some modifications.

1. free function should accept NULL, and just return
2. Add EINA_SAFETY after variable declaration

S.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] About ecore_pipe_add/del pair

2012-05-23 Thread The Rasterman
On Wed, 23 May 2012 13:03:42 -0300 Gustavo Sverzut Barbieri
barbi...@profusion.mobi said:

 On Wed, May 23, 2012 at 7:49 AM, Carsten Haitzler ras...@rasterman.com
 wrote:
  On Mon, 7 May 2012 19:09:45 +0900 (KST) Jiyoun Park jijib...@naver.com
  said:
 
  hmm realistically ecore_init and shutdown (same really with almost any efl
  api) is intended to be run ONCE per process and the shutdown once at process
  termination. not multiple times. it's a lot harder to make this always work
  in the repeated init/shutdown case and frankly was never intended for this
  or tested and implemented for it. my suggestion: only init once and shut
  down once. :)
 
 I know you wrote this based on an application writer point of view.
 But given this is a generic mail list, please make the following
 remark visible:
 
  - always init and shutdown ONCE per your CALL SITE usage.
 
 That means: if you write an app that uses ecore_* symbols, always call
 ecore_init() and ecore_shutdown() from your app. Even if you get that
 ecore_* from elementary_init()[1]. This consistency will save you
 headaches in the future. And this rule easily applies to library,
 being consistent everywhere. Actually it is the case to solve DSO
 problems in linkage, pkg-config problems and so on.
 
 [1] I know many of us don't do ecore_init(), evas_init(),
 eina_init()... and so on when using elementary_init(). Saves typing,
 but is bad for consistency. If you explicitly use these symbols, as we
 often do, then it's better to explicitly call them and avoid issues.
 If you're experienced enough to skip them, do it but do not RECOMMEND
 it to people :-)  [if you don't call any ecore_evas_*, then there is
 no need to ecore_evas_init()...]

this isn't sustainable. then evewry app begins with a ridiculous list of inits:

eina_init();
ecore_init();
evas_init();
edje_init();
elementary_init();

at a minimum.; if you have config of your own, need to deal with thumbnails, do
some dbus and freedesktop stuff add:

eet_init();
ethumb_init();
e_dbus_init();
efreet_init();

...

no - the POINT of elementary is to cut this out and bring down the barrier of
entry to writing an app. you SHOULD use elm's main setup:

#include Elementary.h

EAPI_MAIN int elm_main(int argc, char **argv)
{
 // if you want efl to handle finding your bin/lib/data dirs for u, you must
 // do this below.
   elm_app_info_set(elm_main, datadir, some-data-file);
   elm_app_compile_bin_dir_set(PACKAGE_BIN_DIR);
   elm_app_compile_data_dir_set(PACKAGE_DATA_DIR);
 // do your setup code here - create window etc. no init/shutdown needed if
 // its a lib supported by elm, when done, we run.
   elm_run();
 // do any application shutdown here
   elm_shutdown();
 // final just before process shutdown stuff here
 // (after elm/rest of efl is done cleaning up)
   return 0; // app return code. 0 == no error
}
ELM_MAIN()

i actually should make a simpler macro for the elm_main func decl. it's too
much typing. the app info stuff could do with becoming part of some standard
ptr/struct passed to elm. with all the inits you suggest to be used, and
shutdowns, this template gets more than 2x longer with no actual gain in
functionality.

 -- 
 Gustavo Sverzut Barbieri
 http://profusion.mobi embedded systems
 --
 MSN: barbi...@gmail.com
 Skype: gsbarbieri
 Mobile: +55 (19) 9225-2202
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 


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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] About ecore_pipe_add/del pair

2012-05-23 Thread Gustavo Sverzut Barbieri
As I tried to explain you save lines of code, adds inconsistencies since 
elementary will not be able to cover everything. Unfortunately we disagree on 
the best approach.

--Gustavo

Sent from my iPhone

On 23/05/2012, at 21:04, Carsten Haitzler (The Rasterman) 
ras...@rasterman.com wrote:

 On Wed, 23 May 2012 13:03:42 -0300 Gustavo Sverzut Barbieri
 barbi...@profusion.mobi said:
 
 On Wed, May 23, 2012 at 7:49 AM, Carsten Haitzler ras...@rasterman.com
 wrote:
 On Mon, 7 May 2012 19:09:45 +0900 (KST) Jiyoun Park jijib...@naver.com
 said:
 
 hmm realistically ecore_init and shutdown (same really with almost any efl
 api) is intended to be run ONCE per process and the shutdown once at process
 termination. not multiple times. it's a lot harder to make this always work
 in the repeated init/shutdown case and frankly was never intended for this
 or tested and implemented for it. my suggestion: only init once and shut
 down once. :)
 
 I know you wrote this based on an application writer point of view.
 But given this is a generic mail list, please make the following
 remark visible:
 
 - always init and shutdown ONCE per your CALL SITE usage.
 
 That means: if you write an app that uses ecore_* symbols, always call
 ecore_init() and ecore_shutdown() from your app. Even if you get that
 ecore_* from elementary_init()[1]. This consistency will save you
 headaches in the future. And this rule easily applies to library,
 being consistent everywhere. Actually it is the case to solve DSO
 problems in linkage, pkg-config problems and so on.
 
 [1] I know many of us don't do ecore_init(), evas_init(),
 eina_init()... and so on when using elementary_init(). Saves typing,
 but is bad for consistency. If you explicitly use these symbols, as we
 often do, then it's better to explicitly call them and avoid issues.
 If you're experienced enough to skip them, do it but do not RECOMMEND
 it to people :-)  [if you don't call any ecore_evas_*, then there is
 no need to ecore_evas_init()...]
 
 this isn't sustainable. then evewry app begins with a ridiculous list of 
 inits:
 
 eina_init();
 ecore_init();
 evas_init();
 edje_init();
 elementary_init();
 
 at a minimum.; if you have config of your own, need to deal with thumbnails, 
 do
 some dbus and freedesktop stuff add:
 
 eet_init();
 ethumb_init();
 e_dbus_init();
 efreet_init();
 
 ...
 
 no - the POINT of elementary is to cut this out and bring down the barrier of
 entry to writing an app. you SHOULD use elm's main setup:
 
 #include Elementary.h
 
 EAPI_MAIN int elm_main(int argc, char **argv)
 {
 // if you want efl to handle finding your bin/lib/data dirs for u, you 
 must
 // do this below.
   elm_app_info_set(elm_main, datadir, some-data-file);
   elm_app_compile_bin_dir_set(PACKAGE_BIN_DIR);
   elm_app_compile_data_dir_set(PACKAGE_DATA_DIR);
 // do your setup code here - create window etc. no init/shutdown needed if
 // its a lib supported by elm, when done, we run.
   elm_run();
 // do any application shutdown here
   elm_shutdown();
 // final just before process shutdown stuff here
 // (after elm/rest of efl is done cleaning up)
   return 0; // app return code. 0 == no error
 }
 ELM_MAIN()
 
 i actually should make a simpler macro for the elm_main func decl. it's too
 much typing. the app info stuff could do with becoming part of some standard
 ptr/struct passed to elm. with all the inits you suggest to be used, and
 shutdowns, this template gets more than 2x longer with no actual gain in
 functionality.
 
 -- 
 Gustavo Sverzut Barbieri
 http://profusion.mobi embedded systems
 --
 MSN: barbi...@gmail.com
 Skype: gsbarbieri
 Mobile: +55 (19) 9225-2202
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 
 
 
 -- 
 - Codito, ergo sum - I code, therefore I am --
 The Rasterman (Carsten Haitzler)ras...@rasterman.com
 

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net

Re: [E-devel] About ecore_pipe_add/del pair

2012-05-23 Thread The Rasterman
On Wed, 23 May 2012 22:50:10 -0300 Gustavo Sverzut Barbieri
barbi...@profusion.mobi said:

 As I tried to explain you save lines of code, adds inconsistencies since
 elementary will not be able to cover everything. Unfortunately we disagree on
 the best approach.

it already covers all of core efl. when there is a single efl tree it'll cover
everything in that tree. it wont be inconsistent. it's already pretty
consistent.

 --Gustavo
 
 Sent from my iPhone
 
 On 23/05/2012, at 21:04, Carsten Haitzler (The Rasterman)
 ras...@rasterman.com wrote:
 
  On Wed, 23 May 2012 13:03:42 -0300 Gustavo Sverzut Barbieri
  barbi...@profusion.mobi said:
  
  On Wed, May 23, 2012 at 7:49 AM, Carsten Haitzler ras...@rasterman.com
  wrote:
  On Mon, 7 May 2012 19:09:45 +0900 (KST) Jiyoun Park jijib...@naver.com
  said:
  
  hmm realistically ecore_init and shutdown (same really with almost any efl
  api) is intended to be run ONCE per process and the shutdown once at
  process termination. not multiple times. it's a lot harder to make this
  always work in the repeated init/shutdown case and frankly was never
  intended for this or tested and implemented for it. my suggestion: only
  init once and shut down once. :)
  
  I know you wrote this based on an application writer point of view.
  But given this is a generic mail list, please make the following
  remark visible:
  
  - always init and shutdown ONCE per your CALL SITE usage.
  
  That means: if you write an app that uses ecore_* symbols, always call
  ecore_init() and ecore_shutdown() from your app. Even if you get that
  ecore_* from elementary_init()[1]. This consistency will save you
  headaches in the future. And this rule easily applies to library,
  being consistent everywhere. Actually it is the case to solve DSO
  problems in linkage, pkg-config problems and so on.
  
  [1] I know many of us don't do ecore_init(), evas_init(),
  eina_init()... and so on when using elementary_init(). Saves typing,
  but is bad for consistency. If you explicitly use these symbols, as we
  often do, then it's better to explicitly call them and avoid issues.
  If you're experienced enough to skip them, do it but do not RECOMMEND
  it to people :-)  [if you don't call any ecore_evas_*, then there is
  no need to ecore_evas_init()...]
  
  this isn't sustainable. then evewry app begins with a ridiculous list of
  inits:
  
  eina_init();
  ecore_init();
  evas_init();
  edje_init();
  elementary_init();
  
  at a minimum.; if you have config of your own, need to deal with
  thumbnails, do some dbus and freedesktop stuff add:
  
  eet_init();
  ethumb_init();
  e_dbus_init();
  efreet_init();
  
  ...
  
  no - the POINT of elementary is to cut this out and bring down the barrier
  of entry to writing an app. you SHOULD use elm's main setup:
  
  #include Elementary.h
  
  EAPI_MAIN int elm_main(int argc, char **argv)
  {
  // if you want efl to handle finding your bin/lib/data dirs for u, you
  must // do this below.
elm_app_info_set(elm_main, datadir, some-data-file);
elm_app_compile_bin_dir_set(PACKAGE_BIN_DIR);
elm_app_compile_data_dir_set(PACKAGE_DATA_DIR);
  // do your setup code here - create window etc. no init/shutdown needed
  if // its a lib supported by elm, when done, we run.
elm_run();
  // do any application shutdown here
elm_shutdown();
  // final just before process shutdown stuff here
  // (after elm/rest of efl is done cleaning up)
return 0; // app return code. 0 == no error
  }
  ELM_MAIN()
  
  i actually should make a simpler macro for the elm_main func decl. it's too
  much typing. the app info stuff could do with becoming part of some standard
  ptr/struct passed to elm. with all the inits you suggest to be used, and
  shutdowns, this template gets more than 2x longer with no actual gain in
  functionality.
  
  -- 
  Gustavo Sverzut Barbieri
  http://profusion.mobi embedded systems
  --
  MSN: barbi...@gmail.com
  Skype: gsbarbieri
  Mobile: +55 (19) 9225-2202
  
  --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and 
  threat landscape has changed and how IT managers can respond. Discussions 
  will include endpoint security, mobile security and the latest in malware 
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  enlightenment-devel mailing list
  enlightenment-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
  
  
  
  -- 
  - Codito, ergo sum - I code, therefore I am --
  The Rasterman (Carsten Haitzler)ras...@rasterman.com
  
 


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



Re: [E-devel] About ecore_pipe_add/del pair

2012-05-23 Thread Gustavo Sverzut Barbieri
You cannot cover all libraries as supposedly there will always be third party 
libs following that pattern. So far we can do many, but it's impossible to 
guarantee all.

--Gustavo

Sent from my iPhone

On 24/05/2012, at 00:20, Carsten Haitzler (The Rasterman) 
ras...@rasterman.com wrote:

 On Wed, 23 May 2012 22:50:10 -0300 Gustavo Sverzut Barbieri
 barbi...@profusion.mobi said:
 
 As I tried to explain you save lines of code, adds inconsistencies since
 elementary will not be able to cover everything. Unfortunately we disagree on
 the best approach.
 
 it already covers all of core efl. when there is a single efl tree it'll cover
 everything in that tree. it wont be inconsistent. it's already pretty
 consistent.
 
 --Gustavo
 
 Sent from my iPhone
 
 On 23/05/2012, at 21:04, Carsten Haitzler (The Rasterman)
 ras...@rasterman.com wrote:
 
 On Wed, 23 May 2012 13:03:42 -0300 Gustavo Sverzut Barbieri
 barbi...@profusion.mobi said:
 
 On Wed, May 23, 2012 at 7:49 AM, Carsten Haitzler ras...@rasterman.com
 wrote:
 On Mon, 7 May 2012 19:09:45 +0900 (KST) Jiyoun Park jijib...@naver.com
 said:
 
 hmm realistically ecore_init and shutdown (same really with almost any efl
 api) is intended to be run ONCE per process and the shutdown once at
 process termination. not multiple times. it's a lot harder to make this
 always work in the repeated init/shutdown case and frankly was never
 intended for this or tested and implemented for it. my suggestion: only
 init once and shut down once. :)
 
 I know you wrote this based on an application writer point of view.
 But given this is a generic mail list, please make the following
 remark visible:
 
 - always init and shutdown ONCE per your CALL SITE usage.
 
 That means: if you write an app that uses ecore_* symbols, always call
 ecore_init() and ecore_shutdown() from your app. Even if you get that
 ecore_* from elementary_init()[1]. This consistency will save you
 headaches in the future. And this rule easily applies to library,
 being consistent everywhere. Actually it is the case to solve DSO
 problems in linkage, pkg-config problems and so on.
 
 [1] I know many of us don't do ecore_init(), evas_init(),
 eina_init()... and so on when using elementary_init(). Saves typing,
 but is bad for consistency. If you explicitly use these symbols, as we
 often do, then it's better to explicitly call them and avoid issues.
 If you're experienced enough to skip them, do it but do not RECOMMEND
 it to people :-)  [if you don't call any ecore_evas_*, then there is
 no need to ecore_evas_init()...]
 
 this isn't sustainable. then evewry app begins with a ridiculous list of
 inits:
 
 eina_init();
 ecore_init();
 evas_init();
 edje_init();
 elementary_init();
 
 at a minimum.; if you have config of your own, need to deal with
 thumbnails, do some dbus and freedesktop stuff add:
 
 eet_init();
 ethumb_init();
 e_dbus_init();
 efreet_init();
 
 ...
 
 no - the POINT of elementary is to cut this out and bring down the barrier
 of entry to writing an app. you SHOULD use elm's main setup:
 
 #include Elementary.h
 
 EAPI_MAIN int elm_main(int argc, char **argv)
 {
// if you want efl to handle finding your bin/lib/data dirs for u, you
 must // do this below.
  elm_app_info_set(elm_main, datadir, some-data-file);
  elm_app_compile_bin_dir_set(PACKAGE_BIN_DIR);
  elm_app_compile_data_dir_set(PACKAGE_DATA_DIR);
// do your setup code here - create window etc. no init/shutdown needed
 if // its a lib supported by elm, when done, we run.
  elm_run();
// do any application shutdown here
  elm_shutdown();
// final just before process shutdown stuff here
// (after elm/rest of efl is done cleaning up)
  return 0; // app return code. 0 == no error
 }
 ELM_MAIN()
 
 i actually should make a simpler macro for the elm_main func decl. it's too
 much typing. the app info stuff could do with becoming part of some standard
 ptr/struct passed to elm. with all the inits you suggest to be used, and
 shutdowns, this template gets more than 2x longer with no actual gain in
 functionality.
 
 -- 
 Gustavo Sverzut Barbieri
 http://profusion.mobi embedded systems
 --
 MSN: barbi...@gmail.com
 Skype: gsbarbieri
 Mobile: +55 (19) 9225-2202
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 
 
 
 -- 
 - Codito, ergo sum - I code, therefore I am --
 The Rasterman (Carsten Haitzler)ras...@rasterman.com
 

Re: [E-devel] About ecore_pipe_add/del pair

2012-05-23 Thread The Rasterman
On Thu, 24 May 2012 00:25:09 -0300 Gustavo Sverzut Barbieri
barbi...@profusion.mobi said:

 You cannot cover all libraries as supposedly there will always be third party
 libs following that pattern. So far we can do many, but it's impossible to
 guarantee all.

sure - and for those libraries - you need to follow their setup/shutdown
mechanisms. for efl we have covered it all for the user - as of elementary we
have.

 --Gustavo
 
 Sent from my iPhone
 
 On 24/05/2012, at 00:20, Carsten Haitzler (The Rasterman)
 ras...@rasterman.com wrote:
 
  On Wed, 23 May 2012 22:50:10 -0300 Gustavo Sverzut Barbieri
  barbi...@profusion.mobi said:
  
  As I tried to explain you save lines of code, adds inconsistencies since
  elementary will not be able to cover everything. Unfortunately we disagree
  on the best approach.
  
  it already covers all of core efl. when there is a single efl tree it'll
  cover everything in that tree. it wont be inconsistent. it's already pretty
  consistent.
  
  --Gustavo
  
  Sent from my iPhone
  
  On 23/05/2012, at 21:04, Carsten Haitzler (The Rasterman)
  ras...@rasterman.com wrote:
  
  On Wed, 23 May 2012 13:03:42 -0300 Gustavo Sverzut Barbieri
  barbi...@profusion.mobi said:
  
  On Wed, May 23, 2012 at 7:49 AM, Carsten Haitzler ras...@rasterman.com
  wrote:
  On Mon, 7 May 2012 19:09:45 +0900 (KST) Jiyoun Park jijib...@naver.com
  said:
  
  hmm realistically ecore_init and shutdown (same really with almost any
  efl api) is intended to be run ONCE per process and the shutdown once at
  process termination. not multiple times. it's a lot harder to make this
  always work in the repeated init/shutdown case and frankly was never
  intended for this or tested and implemented for it. my suggestion: only
  init once and shut down once. :)
  
  I know you wrote this based on an application writer point of view.
  But given this is a generic mail list, please make the following
  remark visible:
  
  - always init and shutdown ONCE per your CALL SITE usage.
  
  That means: if you write an app that uses ecore_* symbols, always call
  ecore_init() and ecore_shutdown() from your app. Even if you get that
  ecore_* from elementary_init()[1]. This consistency will save you
  headaches in the future. And this rule easily applies to library,
  being consistent everywhere. Actually it is the case to solve DSO
  problems in linkage, pkg-config problems and so on.
  
  [1] I know many of us don't do ecore_init(), evas_init(),
  eina_init()... and so on when using elementary_init(). Saves typing,
  but is bad for consistency. If you explicitly use these symbols, as we
  often do, then it's better to explicitly call them and avoid issues.
  If you're experienced enough to skip them, do it but do not RECOMMEND
  it to people :-)  [if you don't call any ecore_evas_*, then there is
  no need to ecore_evas_init()...]
  
  this isn't sustainable. then evewry app begins with a ridiculous list of
  inits:
  
  eina_init();
  ecore_init();
  evas_init();
  edje_init();
  elementary_init();
  
  at a minimum.; if you have config of your own, need to deal with
  thumbnails, do some dbus and freedesktop stuff add:
  
  eet_init();
  ethumb_init();
  e_dbus_init();
  efreet_init();
  
  ...
  
  no - the POINT of elementary is to cut this out and bring down the barrier
  of entry to writing an app. you SHOULD use elm's main setup:
  
  #include Elementary.h
  
  EAPI_MAIN int elm_main(int argc, char **argv)
  {
 // if you want efl to handle finding your bin/lib/data dirs for u, you
  must // do this below.
   elm_app_info_set(elm_main, datadir, some-data-file);
   elm_app_compile_bin_dir_set(PACKAGE_BIN_DIR);
   elm_app_compile_data_dir_set(PACKAGE_DATA_DIR);
 // do your setup code here - create window etc. no init/shutdown needed
  if // its a lib supported by elm, when done, we run.
   elm_run();
 // do any application shutdown here
   elm_shutdown();
 // final just before process shutdown stuff here
 // (after elm/rest of efl is done cleaning up)
   return 0; // app return code. 0 == no error
  }
  ELM_MAIN()
  
  i actually should make a simpler macro for the elm_main func decl. it's
  too much typing. the app info stuff could do with becoming part of some
  standard ptr/struct passed to elm. with all the inits you suggest to be
  used, and shutdowns, this template gets more than 2x longer with no
  actual gain in functionality.
  
  -- 
  Gustavo Sverzut Barbieri
  http://profusion.mobi embedded systems
  --
  MSN: barbi...@gmail.com
  Skype: gsbarbieri
  Mobile: +55 (19) 9225-2202
  
  --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and 
  threat landscape has changed and how IT managers can respond.
  Discussions will include endpoint security, mobile security and the
  latest in malware threats.
  

Re: [E-devel] Eio dep in edje

2012-05-23 Thread The Rasterman
On Fri, 11 May 2012 14:36:00 +0900 Daniel Juyung Seo seojuyu...@gmail.com
said:

 Yes eio came after edje release. So for those who do not use eio, this
 breaks consistency.
 So edje_watch build should be optional.

but eio came out when edje 1.2 came out... :)

 Daniel Juyung Seo (SeoZ)
 
 On Fri, May 11, 2012 at 12:50 PM, Vincent Torri vincent.to...@gmail.com
 wrote:
  On Fri, May 11, 2012 at 2:20 AM, Cedric BAIL cedric.b...@free.fr wrote:
  On Fri, May 11, 2012 at 12:37 AM, Michael Blumenkrantz
  michael.blumenkra...@gmail.com wrote:
  On Thu, 10 May 2012 16:39:48 +0300
  Tom Hacohen tom.haco...@samsung.com wrote:
  Dear Cedric,
 
  You ruined my life. Seriously, I don't want Eio and it's pissing me off.
  :) It's only a dep for edje_watch, so just if you don't detect eio,
  don't build edje_watch.
 
  Vincent said he'll take a look tonight, but please if you see it's not
  fixed by tomorrow, fix it.
 
  I vote we keep it. Anything that ruins Tom's life must necessarily
  improve my life. This feature seems like an absolute requirement.
 
  Sounds the same to me ! More seriously, I did that on purpose, so that
  most people will build with eio dep in. If you don't want it just
  disable the build of edje_watch. That should do the work.
 
  well,  you did something  that is inconsistent : eio is optional for
  the library, but mandatory for edje watch
 
  Vincent
 
  --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond. Discussions
  will include endpoint security, mobile security and the latest in malware
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  enlightenment-devel mailing list
  enlightenment-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 


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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] NSIS installer of the EFL

2012-05-23 Thread The Rasterman
On Fri, 11 May 2012 07:45:57 +0200 Andreas Volz li...@brachttal.net said:

 Am Fri, 11 May 2012 00:07:43 +0200 schrieb Vincent Torri:
 
  On Wed, May 9, 2012 at 9:59 PM, Andreas Volz li...@brachttal.net
  wrote:
   Am Wed, 9 May 2012 09:41:18 +0200 schrieb Vincent Torri:
  
   On Wed, May 9, 2012 at 7:17 AM, Andreas Volz li...@brachttal.net
   wrote:
Am Tue, 8 May 2012 22:42:13 +0200 schrieb Vincent Torri:
   
On Tue, May 8, 2012 at 9:56 PM, Andreas Volz
li...@brachttal.net wrote:
 Am Tue, 8 May 2012 21:04:10 +0200 schrieb Vincent Torri:

 Hey

 I've built an NSIS installer. It contains evil, eina, eet,
 evas, ecore, embryo, edje, eio, elementary and expedite
 (latest releases)

 You can grab it here :
 http://dev.enlightenment.fr/~doursse/NSIS/Efl-1.2.0.exe

 Please test it and report any problem with it

 I tried it with WinXP and it seems to work great. But I need
 OpenGL support for my application. Are you able to provide
 binaries compiled against OpenGL (GLEW)?

 Or has someone else Evas binaries for 1.2.0 or 1.1.0 compiled
 against GLEW for MinGW?
   
Unfortunately, i have to rewrite the opengl engine for Windows.
Don't know if it's possible to release evas 1.2.1 with a new
engine
   
And Direct3D? Or SDL with OpenGL backend? I really need
accelerated Evas for a customer Demo with Win32. And I need it
begin of next week. :-(
  
   I'll try to add this evening the sdl-gl engine to the installer
  
   Would be nice. I'll test it and report results.
  
  I had some problems with gl_sdl. So I'm writing gl_win32 :-) I have
  written around 50% of the code. tomorrow evening, i will almost finish
  it. So this week-end, you'll have that engine (evas, expedite,
  ecore_evas and elm) in a new NSIS installer.
 
 Thanks. And I really hope my Intel HD 3000 will have better results
 than software rendering. :-)

at least under wine software gdi rendering on the same machine is a LOT slower
than native linux+x11 software rendering. like many times slower from the
look of things. the real issue in windows is that opengl itself is poorly
supported, so without a fully baked d3d/dx engine (what we have is far from
baked even)... it will always suffer. :)

 Some other applications have shown not so high performance 3D results.
 But the test will show it...
 
 regards
   Andreas
 
 -- 
 Technical Blog http://andreasvolz.wordpress.com/
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 


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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] elm_radio somewhat broken

2012-05-23 Thread The Rasterman
On Thu, 10 May 2012 23:17:16 -0400 Michael Blumenkrantz
michael.blumenkra...@gmail.com said:

 this has been the case for a while, but I was too busy to report it.
 
 https://github.com/zmike/shotgun/blob/master/src/bin/contact.c
 contact_resource_menu_setup()
 
 the variable 'radio', despite only being explicitly written to one time, fails
 the elm widget name check in elm_radio_value_set() at the end of the function.
 this was not always the case, to the best of my knowledge.
 
 I blame glima because he's on a vacation^Wbusiness trip.

is it returning null because menu is null? or something? it radio widget never
even was created?

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 


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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Elementary: Question. Fonts in elm entry object

2012-05-23 Thread The Rasterman
On Sun, 13 May 2012 10:47:50 +0300 Tom Hacohen tom.haco...@samsung.com said:

 On 11/05/12 23:07, Art B wrote:
  I can't seem to figure/understand how to modify the fonts(name or size)
  trough my elm C client-code. I can do this easily with an edje TEXTBLOCK
  object. But then I miss out on anchors for example.
 
  I would appreciate greatly if someone could explain how to do this with
  elementary for me. A code example would suffice also.
 
 I added a short paragraph to the entry docs to explain how it can be 
 done. Doc generation is currently broken on the server, but you can just 
 access the following file:

i fixed the doc generation. yay!

 http://svn.enlightenment.org/svn/e/trunk/elementary/src/lib/elm_entry.h 
 and search for entry-style-set.
 
 Also, there's a code example available in ecrire ( 
 http://svn.enlightenment.org/svn/e/trunk/ecrire/ ). Or more 
 specifically, in main.c:510, function: editor_font_set. You should 
 probably check that out as well.
 
 --
 Tom.
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 


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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] elm toolbar item count broken

2012-05-23 Thread The Rasterman
On Tue, 15 May 2012 16:05:06 +0900 Jaehwan Kim jaehwan.kim@gmail.com said:

awesome man. you got to this before i did! :)

 Hi
 
 The more item should be not counted.
 I changed the toolbar code.
 Please refer to revision 71096.
 
 Thanks.
 --
 Jaehwan Kim.
 
 2012년 5월 13일 일요일에 Michael Blumenkrantz님이 작성:
 
  when you create a toolbar, it automagically creates a more menu toolbar
  item
  (SHRINK_MENU) by default. this creates a toolbar item that is apparently
  visible to user functions; toolbar_item_count returns 1 for toolbars
  containing
  only this item, even though the user has not actually added any items. this
  should probably be changed, since a user will expect that only manually
  created
  items are counted/accessible from the toolbar api.
 
 
  --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond. Discussions
  will include endpoint security, mobile security and the latest in malware
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  enlightenment-devel mailing list
  enlightenment-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [Patch]Enable multisampling capacity on the evasgl

2012-05-23 Thread The Rasterman
On Mon, 14 May 2012 18:06:06 +0900 Sung W. Park sung...@gmail.com said:

faster than me! well done! tnx! :)

 Hi Sanghee,
 
 I think we'll have to come up with a better way to differentiate between
 Low,
 Med, High in the future although...  I do recognize that the
 GL_IMG_multisampled_render_to_texture isn't necessarily the best written GL
 extension.  You can't exactly tell at what sample the driver is rendering.
 
 Anyway, the patch looks fine and I've tested it on an EGL target to verify
 that it
 works.
 
 In svn! Thanks for the patch.
 
 cheers,
 Sung
 
 
 On Mon, May 14, 2012 at 2:22 PM, sanghee park sh15.p...@samsung.com wrote:
 
  Dear all,
 
  I compose this mail to ask reviewal this patch about multisampling on the
  evasgl.
  I want to make multisampling capacity to enhance rendering quality of the
  evasgl.
  But if MSAA is applied always, this have possibility lowering rendering
  performance,
  I separated user's input level to high, mid, low, none.
  If you want to test this patch, try to examine rendering qulity on EGL
  circumstance with multisampling level.
  Plaese review it, and any suggestion will be appreciated.
 
  Best Regards,
  SangHee
 
  --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond. Discussions
  will include endpoint security, mobile security and the latest in malware
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  enlightenment-devel mailing list
  enlightenment-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 


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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [Patch][elm_config]check if input value, cache_flush_poll_interval is greater than zero

2012-05-23 Thread The Rasterman
On Mon, 21 May 2012 16:12:16 +0900 Bluezery ohpo...@gmail.com said:

 Hello,
 
 _elm_config-cache_flush_poll_interval is used for flushing cache by
 ecore poller.
 If this value is not greater than 0, poller is disabled.
 But, I think that this value should be greater than 0 because there
 already exists cache_flush_enable for enable/disable cache poller.
 
 Please review this patch.
 Thanks.

this is testing for sanity. remember these config values come from on-disk
files or properties that could be corrupted. a poll interval of 0 makes no
sense. :/ so... what is this fixing? :)

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [Patch] Add Ecore_X_Error_Code enumeration

2012-05-23 Thread The Rasterman
On Mon, 21 May 2012 17:09:45 -0400 Christopher Michael cpmicha...@comcast.net
said:

 Doyoun,
 
 As this looks to be just an added enum to the header, I would say that 
 it is OK to go in. Nothing in the current API is using it, so no 
 breakage :) However, this begs the question ... What point is adding an 
 Enum if NO CODE is using it ??

it's a rare cold and freezing day in hell that anyone handles an x error. the
default for xlib is to exit() the process when such an error happens. we're all
nasty and evil and set up an error handled to summarily ignore all such
errors. :) (window managers have to do this all the time). and the few times
error handling is used (to detect if another wm is running, to detect if
mit-shm works) its done totally synchronously by flushing everything first
doing 1 x op and forcing a sync to get that 1 error (otherwise its basically
impossible to figure out which operation cause the error as its async). so
these error codes are never consulted as any error at all is the info we
want. :)

so i am curious... why are u looking for a specific error code?

 dh
 
 On 05/21/12 04:20, Doyoun Kang wrote:
  Dear All,
 
  I added the Ecore_X_Error_Code enumeration which wraps X error codes.
  I think this will be useful when the X error occurs.
  Please check the attached patch file.
 
  Thanks.
  --
  Doyoun Kang
 
 
 
  --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond. Discussions
  will include endpoint security, mobile security and the latest in malware
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 
 
 
  ___
  enlightenment-devel mailing list
  enlightenment-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 


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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [Patch] Add Ecore_X_Error_Code enumeration

2012-05-23 Thread The Rasterman
On Tue, 22 May 2012 01:30:21 + (GMT) Doyoun Kang doyoun.k...@samsung.com
said:

ok - in svn, BUT... i still want to know.. what errors are u having to handle
and why?

 I attached file. :)
 
 --- Original Message ---
 Sender : doyoun.k...@samsung.com
 Date : 2012-05-22 10:24 (GMT+09:00)
 Title : Re: [E-devel] [Patch] Add Ecore_X_Error_Code enumeration
 
 I added ChangeLog, NEWS, document. :)
 And this will be used for error handling.
 
 --
 Ecore_X_Error_Code err_code;
 err_code = ecore_x_error_code_get();
 if (err_code == ECORE_X_ERROR_CODE_SUCCESS)
   {
  // Do something
   }
 else if (err_code == ECORE_X_ERROR_CODE_BAD_WINDOW)
   {
  // Do something
   }
 else
   {
  // Do something
   }
 --
 
 This enumeration can be used both X and XCB.
 
 Doyoun
 
 
 --- Original Message ---
 Sender : Vincent Torri
 Date : 2012-05-21 17:24 (GMT+09:00)
 Title : Re: [E-devel] [Patch] Add Ecore_X_Error_Code enumeration
 
 and where are these error codes used in the xlib and xcb code ?
 
 Vincent
 
 On Mon, May 21, 2012 at 10:23 AM, Vincent Torri wrote:
  missing ChangeLog entry
  missing NEWS entry
  missing doc (don't forget @since)
 
  Vincent
 
  On Mon, May 21, 2012 at 10:20 AM, Doyoun Kang wrote:
  Dear All,
 
  I added the Ecore_X_Error_Code enumeration which wraps X error codes.
  I think this will be useful when the X error occurs.
  Please check the attached patch file.
 
  Thanks.
  --
  Doyoun Kang
  --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond. Discussions
  will include endpoint security, mobile security and the latest in malware
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  enlightenment-devel mailing list
  enlightenment-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [patch] allow copy and paste operations for non-widget evas objects

2012-05-23 Thread The Rasterman
On Mon, 21 May 2012 17:20:05 +0200 Michal Pakula vel Rutka
m.pak...@samsung.com said:

thank makes sense and is a useful fallback fro your situation. its in svn. i
added a changelog and AUTHORS entry too for you. in future can you include
changelog entires in your patches? also if you are adding code for the first
time to a project an addition to AUTHORS will be good as part of your patch, in
case we forget. :)

 Dear EFL developers,
 
 I am currently implementing a clipboard for WebKit-EFL. When using
 elm_cnp_selection_get and set function an evas object passed has to be a
 widget. Currently in WebKit-EFL we are using an view which is an Evas_Object,
 but not a widget. Sample WebKit applications like  EWebLauncher and tests
 applications does not use elementary so I cannot obtain parent widget for a
 view object and finally we cannot perform copy and paste operations. Widgets
 are used in elm_cnp_selection functions to obtain Ecore_X_Window. My patch
 leaves current way of obtaining it and adds an another in case when the
 standard one fails. When Evas_Object is not a widget I am trying to get an
 Ecore_X_Window using ecore.
 
 
 BR,
 Michal
 
 The above message is intended solely for the named addressee and may contain
 trade secret, industrial technology or privileged and confidential
 information otherwise protected under applicable law. Any unauthorized
 dissemination, distribution, copying or use of the information contained in
 this communication is strictly prohibited. If you have received this
 communication in error, please notify sender by email and delete this
 communication immediately.
 
 
 Powyższa wiadomość przeznaczona jest wyłącznie dla adresata niniejszej
 wiadomości i może zawierać informacje będące tajemnicą handlową, tajemnicą
 przedsiębiorstwa oraz informacje o charakterze poufnym chronione
 obowiązującymi przepisami prawa. Jakiekolwiek nieuprawnione ich
 rozpowszechnianie, dystrybucja, kopiowanie lub użycie informacji zawartych w
 powyższej wiadomości jest zabronione. Jeśli otrzymałeś powyższą wiadomość
 omyłkowo, uprzejmie proszę poinformuj o tym fakcie drogą mailową nadawcę tej
 wiadomości oraz niezwłocznie usuń powyższą wiadomość ze swojego komputera.


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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [Patch][elm_config]check if input value, cache_flush_poll_interval is greater than zero

2012-05-23 Thread Bluezery
2012/5/24 Carsten Haitzler ras...@rasterman.com:
 On Mon, 21 May 2012 16:12:16 +0900 Bluezery ohpo...@gmail.com said:

 Hello,

 _elm_config-cache_flush_poll_interval is used for flushing cache by
 ecore poller.
 If this value is not greater than 0, poller is disabled.
 But, I think that this value should be greater than 0 because there
 already exists cache_flush_enable for enable/disable cache poller.

 Please review this patch.
 Thanks.

 this is testing for sanity. remember these config values come from on-disk
 files or properties that could be corrupted. a poll interval of 0 makes no
 sense. :/ so... what is this fixing? :)

I overlooked the config value.
Anyway, this patch is not in and just documentation was fixed. B-)
IMHO, if below zero makes no sense, the input parameter type could be
better to be changed from int to unsigned int and from EET_T_INT
to EET_T_UINT at next release.

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




-- 
BRs,
Kim.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Signal hooks on elm_icon

2012-05-23 Thread The Rasterman
On Tue, 22 May 2012 14:38:50 -0300 Gustavo Lima Chaves gl...@profusion.mobi
said:

what signal callbacks i see nothing in els_icon or elm_icon code that lists
for edje signal callbacks? unless u mean clicked ? this one?

 Hi, people.
 
 As you can see, there are signal callback hooks on elm_icon objects,
 in Elementary. Problem is this is an unused (none of the known themes
 listening to signals on icons) *and inconsistent* feature, since icons
 may as well be sole images (no Edje). Would it be OK to remove it or
 will I have to support it and mark as deprecated for an eventual next
 major release?
 
 Best regards,
 
 -- 
 Gustavo Lima Chaves
 Computer Engineer @ ProFUSION Embedded Systems
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 


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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Cedric is lazy to.

2012-05-23 Thread David Seikel
Looks like raster fixed it and I can compile again.  Still compiling
stuff and so far so good, I got further than I did before.

-- 
A big old stinking pile of genius that no one wants
coz there are too many silver coated monkeys in the world.


signature.asc
Description: PGP signature
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Elementary+threading

2012-05-23 Thread SHILPA ONKAR SINGH
Hi,

I also tested this behavior recently and checked the ecore - code as well
the maximum number of threads that can be spawned equals the cpu
count [ Probably design decision ]
eina_cpu_count gives the number of CPU  and based on which the maximum
threads spawned at a time is restricted in code itself.
for eg: if I have 1 cpu then I can spawn only one other thread.
even If I call ecore_thread_max_set and set higher number of threads no use
because of this restriction. 

I think we can keep the default thread count based on cpu count but if we call 
max_set
we should be able to increase the number of maximum spawned threads despite of 
number of CPUs ofcourse some restriction
can be put there as well.

Please let me know your opinion.

Thanks
Shilpa


--- Original Message ---
Sender : Leif Middelschulteleif.middelschu...@gmail.com
Date : May 24, 2012 03:13 (GMT+09:00)
Title : [E-devel] Elementary+threading

Hey there,

I put together an example that reveils unexpected elm behavior here on
my T60 (Intel T2500).

I'm mentioning my cpu, because - according to ecore_thread's docs -
the number of maximum threads is limited to 2n | n = |processors|.
For some reason though the default number of threads equals my # of cpus.

So anybody who has a more recent machine please extend the number of
events emited/threads generated to the number of your maximum threads
- 1 to make elm_fileselector show nothing.


I hope I'm doing something wrong here.

-- 
Leif
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [Patch][elm_config]check if input value, cache_flush_poll_interval is greater than zero

2012-05-23 Thread The Rasterman
On Thu, 24 May 2012 13:37:47 +0900 Bluezery ohpo...@gmail.com said:

 2012/5/24 Carsten Haitzler ras...@rasterman.com:
  On Mon, 21 May 2012 16:12:16 +0900 Bluezery ohpo...@gmail.com said:
 
  Hello,
 
  _elm_config-cache_flush_poll_interval is used for flushing cache by
  ecore poller.
  If this value is not greater than 0, poller is disabled.
  But, I think that this value should be greater than 0 because there
  already exists cache_flush_enable for enable/disable cache poller.
 
  Please review this patch.
  Thanks.
 
  this is testing for sanity. remember these config values come from on-disk
  files or properties that could be corrupted. a poll interval of 0 makes no
  sense. :/ so... what is this fixing? :)
 
 I overlooked the config value.
 Anyway, this patch is not in and just documentation was fixed. B-)
 IMHO, if below zero makes no sense, the input parameter type could be
 better to be changed from int to unsigned int and from EET_T_INT
 to EET_T_UINT at next release.

unsigned int still can be 0. :) and no - patch isnt in. at least the first hunk
i think is not so wise to remove the check if its  0. the 2nd one we could
put in. 
  --
  - Codito, ergo sum - I code, therefore I am --
  The Rasterman (Carsten Haitzler)    ras...@rasterman.com
 
 
 
 
 -- 
 BRs,
 Kim.
 


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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Elementary+threading

2012-05-23 Thread The Rasterman
On Thu, 24 May 2012 05:25:10 + (GMT) SHILPA ONKAR SINGH
shilpa.si...@samsung.com said:

you can increase the max number of worker threads, but it limits it to 2x
number of cpu's. at the moment. as such these threads get put in a queue if all
workers are busy and so get handled serially as workers become available.

 Hi,
 
 I also tested this behavior recently and checked the ecore - code as well
 the maximum number of threads that can be spawned equals the cpu
 count [ Probably design decision ]
 eina_cpu_count gives the number of CPU  and based on which the maximum
 threads spawned at a time is restricted in code itself.
 for eg: if I have 1 cpu then I can spawn only one other thread.
 even If I call ecore_thread_max_set and set higher number of threads no use
 because of this restriction. 
 
 I think we can keep the default thread count based on cpu count but if we
 call max_set we should be able to increase the number of maximum spawned
 threads despite of number of CPUs ofcourse some restriction can be put there
 as well.
 
 Please let me know your opinion.
 
 Thanks
 Shilpa
 
 
 --- Original Message ---
 Sender : Leif Middelschulteleif.middelschu...@gmail.com
 Date : May 24, 2012 03:13 (GMT+09:00)
 Title : [E-devel] Elementary+threading
 
 Hey there,
 
 I put together an example that reveils unexpected elm behavior here on
 my T60 (Intel T2500).
 
 I'm mentioning my cpu, because - according to ecore_thread's docs -
 the number of maximum threads is limited to 2n | n = |processors|.
 For some reason though the default number of threads equals my # of cpus.
 
 So anybody who has a more recent machine please extend the number of
 events emited/threads generated to the number of your maximum threads
 - 1 to make elm_fileselector show nothing.
 
 
 I hope I'm doing something wrong here.
 
 -- 
 Leif
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 


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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel