Re: [E-devel] White box... again :-)

2011-08-17 Thread Cedric BAIL
On Mon, Aug 15, 2011 at 9:38 PM, Christopher Michael
cpmicha...@comcast.net wrote:
 On 08/15/2011 03:04 AM, Cedric BAIL wrote:
 On Mon, Aug 15, 2011 at 3:18 AM, Christopher Michael
 cpmicha...@comcast.net  wrote:
 On 08/14/2011 04:41 PM, Cedric BAIL wrote:
 On Sun, Aug 14, 2011 at 10:13 PM, Tom Hacohent...@stosb.com    wrote:
 On 14/08/11 16:06, Cedric BAIL wrote:
 Yop,

    Someone, and that's not me for sure, did bork the recover function
 of our beloved white death box. I don't want to put the finger on the
 last guy who touched that file, but I bet that I know the borker :-)

 A bit off topic, but how do you get e to seg so much to find those
 bugs?
 Never segs for me. :)

 I used a poor bleeding edge Intel driver that crash very often (most
 of the time in the shader path). Something really annoying when you
 miss this nice white box and something that make me wonder how people
 can live without it !

 Hmmm, can you describe the nature of the problem ?? It works well here.
 Does
 the box just not show up at all for you ? Some more details about what
 exactly is broken could help ;)

 It show up, but restore doesn't work and actually exit the session.

 Located and fixed the issue this morning. Please svn up and verify, thanks
 :)

Still borken here. I am tempted to send a hammer with SPANK ! SPANK !
SPANK ! on you...
-- 
Cedric BAIL

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Cross-Compiling Elementary

2011-08-17 Thread Paulo Benatto
cramfs and jffs2 =)

thanks

2011/8/17 Carsten Haitzler ras...@rasterman.com

 On Tue, 16 Aug 2011 10:35:30 -0300 Paulo Benatto bena...@gmail.com said:

 so... are you using jffs2? jffs2 doesnt support mmap properly (map shared
 wont
 work). as such efl is simply incompatible with such primitive filesystems.
 we
 could make it map private but then it is impossible to share writes. try a
 better filesystem. (ubifs if on raw nand, btrfs, ext3/4 and others etc. if
 on
 mmc and hdd/ssd devices)

  I did two simple programs to test mmap:
 
  1 - Using MAP_SHARED - Doesn't work
  2 - Using MAP_PRIVATE - Works
 
  Thanks Carsten for the help!
 
  2011/8/13 Carsten Haitzler ras...@rasterman.com
 
   On Sat, 13 Aug 2011 14:58:10 -0300 Paulo Benatto bena...@gmail.com
 said:
  
2011/8/12 Carsten Haitzler ras...@rasterman.com
   
 On Fri, 12 Aug 2011 17:13:39 -0300 Paulo Benatto 
 bena...@gmail.com
   said:

 looks like your install is screwed - elementary cant find its
 default
 theme.
 it's hunting for it and not finding it. file doesnt exist
   (default.edj).

   
hum, but when I delete the file (default.edj) doesn't appear the
 error
(cannot allocate memory).
  
   well it is loading /tmp/default.edj which is kind of wrong as it smells
   like
   its trying to load the default theme there. be that as it may - it does
   succeed
   in opening that.. but mmap fails. have you checked the number of
 mappings
   of
   the process? mmap manual says you'll get ENOMEM if:
  
 ENOMEM No memory is available, or the process's maximum number of
map‐
pings would have been exceeded.
  
   a quick check shows that normally the max # of mapppings for a process
 is
   65536. look in /proc/PID/maps while process is alive. pmap helps too.
 also
   you
   don't happen to be using jffs2 or something?
  
  Hi List,
 
  my name is Paulo, and I'm new in EFL, more or less 3 weeks ago I
   started
 to
  study EFL, I started using Evas and Ecore, now I would like to
 use
  Elementary. I've cross-compiled Elemetary, and I compiled a
 simple
 example,
  HelloWorld.c to run in my embedded system.  When I try to run the
  HelloWorld, I get this message: Cannot Allocate Memory, but
 there
   are
 45
  MB free memory. The default.edj (theme) is a litle big (1 MB),
 but I
 think
  that is not my problem.  Someone had problems with blackfin
 processor
   and
  elementary? Someone has a tip? If I can't fix this problem I will
 do
   my
  Interface using Evas/Ecore =/ hehehe.
 
  Thanks List!
  *
  MY ERROR*
 

  
 ---
  stat(/tmp/default.edj, {st_mode=S_IFREG|0644, st_size=47485,
 ...})
   = 0
  stat(/tmp/default.edj, {st_mode=S_IFREG|0644, st_size=47485,
 ...})
   = 0
  open(/tmp/default.edj, O_RDONLY)  = 10
  ioctl(10, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or
   TCGETS,
  0x2b1e4d0) = -1 ENOTTY (Inappropriate ioctl for device)
  fstat(10, {st_mode=S_IFREG|0644, st_size=47485, ...}) = 0
  fcntl(10, F_SETFD, FD_CLOEXEC)  = 0
  *mmap2(NULL, 47485, PROT_READ, MAP_SHARED, 10, 0) = -1 ENOMEM
 (Cannot
  allocate memory)*
  munmap(0x, 47485)   = -1 EINVAL (Invalid
   argument)
  close(10)   = 0
  stat(/.elementary/themes/default.edj, 0x2b1e614) = -1 ENOENT
 (No
   such
 file
  or directory)
  stat
 

  
 (/home/paulo.benatto/blackfin-jhbuild/share/elementary/themes/default.edj,
  0x2b1e614) = -1 ENOENT (No such file or directory)
 stat(/tmp/default.edj,
  {st_mode=S_IFREG|0644, st_size=47485, ...}) = 0
   stat(/tmp/default.edj,
  {st_mode=S_IFREG|0644, st_size=47485, ...}) = 0
   open(/tmp/default.edj,
  O_RDONLY)  = 10 ioctl(10, SNDCTL_TMR_TIMEBASE or
  SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x2b1e4d0) = -1 ENOTTY
  (Inappropriate ioctl for device) fstat(10, {st_mode=S_IFREG|0644,
  st_size=47485, ...}) = 0 fcntl(10, F_SETFD, FD_CLOEXEC)
  = 0
  *mmap2(NULL, 47485, PROT_READ, MAP_SHARED, 10, 0) = -1 ENOMEM
 (Cannot
  allocate memory)*
  munmap(0x, 47485)   = -1 EINVAL (Invalid
   argument)
  close(10)   = 0
  stat(/.elementary/themes/default.edj, 0x2b1e614) = -1 ENOENT
 (No
   such
 file
  or directory)
  stat
 

  
 (/home/paulo.benatto/blackfin-jhbuild/share/elementary/themes/default.edj,
  0x2b1e614) = -1 ENOENT (No such file or directory) mmap2(NULL,
 4096,
  PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS|0x400, 0, 0) =
 0x103d000
  stat(/tmp/default.edj, {st_mode=S_IFREG|0644, st_size=47485,
 ...})
   = 0
  stat(/tmp/default.edj, {st_mode=S_IFREG|0644, st_size=47485,
 ...})
   = 0
  open(/tmp/default.edj, 

Re: [E-devel] Cross-Compiling Elementary

2011-08-17 Thread The Rasterman
On Wed, 17 Aug 2011 09:45:24 -0300 Paulo Benatto bena...@gmail.com said:

then... you have problems. i suggest ubifs - maybe yaffs. ones that properly
support mmap :) (last i knew these 2 do. i don't know about cramfs).

 cramfs and jffs2 =)
 
 thanks
 
 2011/8/17 Carsten Haitzler ras...@rasterman.com
 
  On Tue, 16 Aug 2011 10:35:30 -0300 Paulo Benatto bena...@gmail.com said:
 
  so... are you using jffs2? jffs2 doesnt support mmap properly (map shared
  wont
  work). as such efl is simply incompatible with such primitive filesystems.
  we
  could make it map private but then it is impossible to share writes. try a
  better filesystem. (ubifs if on raw nand, btrfs, ext3/4 and others etc. if
  on
  mmc and hdd/ssd devices)
 
   I did two simple programs to test mmap:
  
   1 - Using MAP_SHARED - Doesn't work
   2 - Using MAP_PRIVATE - Works
  
   Thanks Carsten for the help!
  
   2011/8/13 Carsten Haitzler ras...@rasterman.com
  
On Sat, 13 Aug 2011 14:58:10 -0300 Paulo Benatto bena...@gmail.com
  said:
   
 2011/8/12 Carsten Haitzler ras...@rasterman.com

  On Fri, 12 Aug 2011 17:13:39 -0300 Paulo Benatto 
  bena...@gmail.com
said:
 
  looks like your install is screwed - elementary cant find its
  default
  theme.
  it's hunting for it and not finding it. file doesnt exist
(default.edj).
 

 hum, but when I delete the file (default.edj) doesn't appear the
  error
 (cannot allocate memory).
   
well it is loading /tmp/default.edj which is kind of wrong as it smells
like
its trying to load the default theme there. be that as it may - it does
succeed
in opening that.. but mmap fails. have you checked the number of
  mappings
of
the process? mmap manual says you'll get ENOMEM if:
   
  ENOMEM No memory is available, or the process's maximum number of
 map‐
 pings would have been exceeded.
   
a quick check shows that normally the max # of mapppings for a process
  is
65536. look in /proc/PID/maps while process is alive. pmap helps too.
  also
you
don't happen to be using jffs2 or something?
   
   Hi List,
  
   my name is Paulo, and I'm new in EFL, more or less 3 weeks ago I
started
  to
   study EFL, I started using Evas and Ecore, now I would like to
  use
   Elementary. I've cross-compiled Elemetary, and I compiled a
  simple
  example,
   HelloWorld.c to run in my embedded system.  When I try to run the
   HelloWorld, I get this message: Cannot Allocate Memory, but
  there
are
  45
   MB free memory. The default.edj (theme) is a litle big (1 MB),
  but I
  think
   that is not my problem.  Someone had problems with blackfin
  processor
and
   elementary? Someone has a tip? If I can't fix this problem I will
  do
my
   Interface using Evas/Ecore =/ hehehe.
  
   Thanks List!
   *
   MY ERROR*
  
 
   
  ---
   stat(/tmp/default.edj, {st_mode=S_IFREG|0644, st_size=47485,
  ...})
= 0
   stat(/tmp/default.edj, {st_mode=S_IFREG|0644, st_size=47485,
  ...})
= 0
   open(/tmp/default.edj, O_RDONLY)  = 10
   ioctl(10, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or
TCGETS,
   0x2b1e4d0) = -1 ENOTTY (Inappropriate ioctl for device)
   fstat(10, {st_mode=S_IFREG|0644, st_size=47485, ...}) = 0
   fcntl(10, F_SETFD, FD_CLOEXEC)  = 0
   *mmap2(NULL, 47485, PROT_READ, MAP_SHARED, 10, 0) = -1 ENOMEM
  (Cannot
   allocate memory)*
   munmap(0x, 47485)   = -1 EINVAL (Invalid
argument)
   close(10)   = 0
   stat(/.elementary/themes/default.edj, 0x2b1e614) = -1 ENOENT
  (No
such
  file
   or directory)
   stat
  
 
   
  (/home/paulo.benatto/blackfin-jhbuild/share/elementary/themes/default.edj,
   0x2b1e614) = -1 ENOENT (No such file or directory)
  stat(/tmp/default.edj,
   {st_mode=S_IFREG|0644, st_size=47485, ...}) = 0
stat(/tmp/default.edj,
   {st_mode=S_IFREG|0644, st_size=47485, ...}) = 0
open(/tmp/default.edj,
   O_RDONLY)  = 10 ioctl(10, SNDCTL_TMR_TIMEBASE or
   SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x2b1e4d0) = -1 ENOTTY
   (Inappropriate ioctl for device) fstat(10, {st_mode=S_IFREG|0644,
   st_size=47485, ...}) = 0 fcntl(10, F_SETFD, FD_CLOEXEC)
   = 0
   *mmap2(NULL, 47485, PROT_READ, MAP_SHARED, 10, 0) = -1 ENOMEM
  (Cannot
   allocate memory)*
   munmap(0x, 47485)   = -1 EINVAL (Invalid
argument)
   close(10)   = 0
   stat(/.elementary/themes/default.edj, 0x2b1e614) = -1 ENOENT
  (No
such
  file
   or directory)
   stat
  
 
   
  

Re: [E-devel] Evas text problem

2011-08-17 Thread Tom Hacohen
On 17/08/11 02:27, Teodor Petrov wrote:
 Hello,

 I have this problem, too.


I wonder, do you guys use Word/Metric caching?

What evas configure flags do you guys use?

--
Tom.

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Evas text problem

2011-08-17 Thread Mike Blumenkrantz
On Wed, 17 Aug 2011 17:45:13 +0300
Tom Hacohen tom.haco...@partner.samsung.com wrote:

 On 17/08/11 02:27, Teodor Petrov wrote:
  Hello,
 
  I have this problem, too.
 
 
 I wonder, do you guys use Word/Metric caching?
 
 What evas configure flags do you guys use?
 
 --
 Tom.
like any american hero, I use all of the options. for caching.

-- 
Mike Blumenkrantz
Zentific: Coding in binary since '10.

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Evas text problem

2011-08-17 Thread Tom Hacohen
On 17/08/11 17:45, Tom Hacohen wrote:
 I wonder, do you guys use Word/Metric caching?

 What evas configure flags do you guys use?

After a couple more tests, it looks related to Metric/Word caching.

I'll take a look and hopefully fix it tomorrow.

--
Tom.

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Evas text problem

2011-08-17 Thread Christopher Michael
On 08/17/2011 11:43 AM, Tom Hacohen wrote:
 On 17/08/11 17:45, Tom Hacohen wrote:
 I wonder, do you guys use Word/Metric caching?

 What evas configure flags do you guys use?

 After a couple more tests, it looks related to Metric/Word caching.

 I'll take a look and hopefully fix it tomorrow.

 --
 Tom.

That would be wonderful, thanks :)

dh



--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Evas text problem

2011-08-17 Thread Christopher Michael
On 08/17/2011 10:45 AM, Tom Hacohen wrote:
 On 17/08/11 02:27, Teodor Petrov wrote:
 Hello,

 I have this problem, too.


 I wonder, do you guys use Word/Metric caching?

 What evas configure flags do you guys use?

 --
 Tom.

Yes, word cache and metric cache enabled for evas here.

dh


--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] White box... again :-)

2011-08-17 Thread Christopher Michael
On 08/17/2011 06:41 AM, Tom Hacohen wrote:
 On 17/08/11 13:33, Cedric BAIL wrote:
 Still borken here. I am tempted to send a hammer with SPANK ! SPANK !
 SPANK ! on you...

 Also broken here.

 --
 Tom.

Hmmm, terribly odd. Is it still broken for you wrt Restart  Exit 
buttons not working ?? or is the nature of the break different ?

I can't see how that can be tho when it works here.

dh

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: antognolli trunk/emotion/src/lib

2011-08-17 Thread Rafael Antognolli
On Wed, Aug 17, 2011 at 4:37 PM, Enlightenment SVN
no-re...@enlightenment.org wrote:
 Log:
 emotion/smart - Use ARGB32 when it's the format returned by the module.

 Author:       antognolli
 Date:         2011-08-17 12:37:31 -0700 (Wed, 17 Aug 2011)
 New Revision: 62542
 Trac:         http://trac.enlightenment.org/e/changeset/62542

 Modified:
  trunk/emotion/src/lib/emotion_smart.c

 Modified: trunk/emotion/src/lib/emotion_smart.c
 ===
 --- trunk/emotion/src/lib/emotion_smart.c       2011-08-17 18:24:45 UTC (rev 
 62541)
 +++ trunk/emotion/src/lib/emotion_smart.c       2011-08-17 19:37:31 UTC (rev 
 62542)
 @@ -1520,6 +1520,7 @@
          }
        else if (format == EMOTION_FORMAT_BGRA)
          {
 +            evas_object_image_colorspace_set(obj, EVAS_COLORSPACE_ARGB);
             if (sd-module-bgra_data_get(sd-video, bgra_data))
               {
                  evas_object_image_data_set(obj, bgra_data);

Actually, a couple of lines above we have:

   if ((w != iw) || (h != ih))
 {
evas_object_image_colorspace_set(obj, EVAS_COLORSPACE_YCBCR422P601_PL);

Does it make sense to always set this colorspace even when we are not
using it? I think we could just remove this line...

-- 
Rafael Antognolli
ProFUSION embedded systems
http://profusion.mobi

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Elementary and dialog windows

2011-08-17 Thread Nicolas Aguirre
Hi,

I'm trying to create a simple dialog window. Just a dialog which
contains a label, an entry and a button bar with ok and cancel. That's
seems so simple to do, but i can't do it. The solution must be simple,
but i can't find it.
I made a simple test program [test1.c attached], With a main window
and a button. When you click on this button, the dilaog box is
launched.

* First problem, when i run it on e17, the dialog box is not centered,
i don't know if it should be, but i always seen dialog boxes centered
on his parent.
* Second problem, when i run it on illume, the size of the dialog box
is 1x1 pixel. Not very usefull  here the result :
http://www.deco-crea.com/files/2011-08-18-004550_480x800_scrot.png you
can find the 1x1 box on the center of the screen (this time it is
centered :P)
* Third problem, when it's displayed my box looks bad, i would like
more space between elements, and wouls like to add some pading arround
my main box. I tried to use the elm_box_padding_set, but it add
padding only between elements and not before or after last elements.
My second attempt [test2.c attached] was to add a layout, with a
swallow and manage the padding in edje. But if i do that, the box
swallowed in my edje part do no take all the space. It's like it was
always taken the min size. I really don't see how to get a dialog box
which is correctly displayed in e17 and in illume and wich looks good.
So if you could help me please it would be great:)

Regards,
--
Nicolas Aguirre
Mail: aguirre.nico...@gmail.com
Web: http://enna.geexbox.org
Blog: http://dev.enlightenment.fr/~captainigloo/
/* Build : gcc -o test test.c `pkg-config elementary --cflags --libs` */

#include Elementary.h

static void
_clicked_cb(void *data, Evas_Object *btn, void *ev)
{
   Evas_Object *win;
   Evas_Object *bg;
   Evas_Object *en;
   Evas_Object *lb;
   Evas_Object *bx;
   Evas_Object *btn_bx;
   Evas_Object *btn_ok;
   Evas_Object *btn_cancel;
   Evas_Object *sep;

   Evas_Object *main_win = data;

   win = elm_win_add(main_win, test, ELM_WIN_DIALOG_BASIC);
   elm_win_title_set(win, New Folder);
   elm_win_autodel_set(win, EINA_TRUE);
   evas_object_show(win);

   bg = elm_bg_add(win);
   evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   elm_win_resize_object_add(win, bg);
   evas_object_show(bg);

   bx = elm_box_add(win);
   evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   evas_object_size_hint_align_set(bx, -1, -1);
   evas_object_show(bx);
   elm_win_resize_object_add(win, bx);

   lb = elm_label_add(win);
   elm_object_text_set(lb, Enter folder name);
   evas_object_size_hint_weight_set(lb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   evas_object_size_hint_align_set(lb, 0.5, -1);
   evas_object_show(lb);
   elm_box_pack_end(bx, lb);

   en = elm_entry_add(win);
   elm_entry_single_line_set(en, EINA_TRUE);
   evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   evas_object_size_hint_align_set(en, -1, -1);
   elm_box_pack_end(bx, en);
   evas_object_show(en);

   sep = elm_separator_add(win);
   elm_separator_horizontal_set(sep, EINA_TRUE);
   evas_object_show(sep);
   elm_box_pack_end(bx, sep);

   btn_bx = elm_box_add(win);
   elm_box_horizontal_set(btn_bx, EINA_TRUE);
   elm_box_homogeneous_set(btn_bx, EINA_TRUE);
   evas_object_size_hint_weight_set(btn_bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   evas_object_size_hint_align_set(btn_bx, EVAS_HINT_FILL, 0.5);
   evas_object_show(btn_bx);

   btn_ok = elm_button_add(win);
   elm_button_label_set(btn_ok, OK);
   evas_object_show(btn_ok);
   evas_object_size_hint_weight_set(btn_ok, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   evas_object_size_hint_align_set(btn_ok, EVAS_HINT_FILL, 0.5);
   elm_box_pack_end(btn_bx, btn_ok);

   btn_cancel = elm_button_add(win);
   elm_button_label_set(btn_cancel, Cancel);
   evas_object_show(btn_cancel);
   evas_object_size_hint_weight_set(btn_cancel, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   evas_object_size_hint_align_set(btn_cancel, EVAS_HINT_FILL, EVAS_HINT_FILL);
   elm_box_pack_end(btn_bx, btn_cancel);

   elm_box_pack_end(bx, btn_bx);

   evas_object_resize(win, 320, 240);
}

int main(int argc, char **argv)
{
   Evas_Object *main_win;
   Evas_Object *bg;
   Evas_Object *btn;

   elm_init(argc, argv);

   main_win = elm_win_add(NULL, test, ELM_WIN_BASIC);
   elm_win_title_set(main_win, TEST);
   elm_win_autodel_set(main_win, EINA_TRUE);
   evas_object_show(main_win);


   bg = elm_bg_add(main_win);
   evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   elm_win_resize_object_add(main_win, bg);
   evas_object_show(bg);

   btn = elm_button_add(main_win);
   elm_object_text_set(btn, Test Dialog);
   evas_object_show(btn);
   elm_win_resize_object_add(main_win, btn);
   evas_object_smart_callback_add(btn, clicked, _clicked_cb, main_win);

   evas_object_resize(main_win, 480, 800);

   elm_run();

   elm_shutdown();

}
/* Build : gcc -o test2 test2.c 

Re: [E-devel] E SVN: barbieri trunk/THEMES/detourious/bits

2011-08-17 Thread Nicolas Aguirre
2011/8/17 Enlightenment SVN no-re...@enlightenment.org:
 Log:
 THEME/detorious: better calendar and clock.

  clock will now show date if there is space.

  calendar is simple and beautiful.

It looks really good !
But the day in the date doesn't have the right locale. It should be
Jeu (for Jeudi in French) instead of Tod or at least display it in
english ?

http://www.deco-crea.com/files/2011-08-18-011724_1680x1050_scrot.png

Regards,
--
Nicolas Aguirre
Mail: aguirre.nico...@gmail.com
Web: http://enna.geexbox.org
Blog: http://dev.enlightenment.fr/~captainigloo/

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: barbieri trunk/THEMES/detourious/bits

2011-08-17 Thread Mark Dickie
On 17 August 2011 18:21, Nicolas Aguirre aguirre.nico...@gmail.com wrote:
 2011/8/17 Enlightenment SVN no-re...@enlightenment.org:
 Log:
 THEME/detorious: better calendar and clock.

  clock will now show date if there is space.

  calendar is simple and beautiful.

 It looks really good !
 But the day in the date doesn't have the right locale. It should be
 Jeu (for Jeudi in French) instead of Tod or at least display it in
 english ?

 http://www.deco-crea.com/files/2011-08-18-011724_1680x1050_scrot.png

 Regards,
 --
 Nicolas Aguirre
 Mail: aguirre.nico...@gmail.com
 Web: http://enna.geexbox.org
 Blog: http://dev.enlightenment.fr/~captainigloo/

 --
 Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
 user administration capabilities and model configuration. Take
 the hassle out of deploying and managing Subversion and the
 tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Much slicker! very nice.
Tiny bug though which still exists. When you untick seconds in the
analogue clock the hand still ticks away.

Thanks

-- 
Mark Dickie


Email blaeberr...@gmail.com
Skype blaeberries

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: barbieri trunk/THEMES/detourious/bits

2011-08-17 Thread Gustavo Barbieri
Update e17 clock module (c code)

Sent from my iPad

On 17/08/2011, at 20:24, Nicolas Aguirre aguirre.nico...@gmail.com wrote:

 2011/8/17 Enlightenment SVN no-re...@enlightenment.org:
 Log:
 THEME/detorious: better calendar and clock.

  clock will now show date if there is space.

  calendar is simple and beautiful.

 It looks really good !
 But the day in the date doesn't have the right locale. It should be
 Jeu (for Jeudi in French) instead of Tod or at least display it in
 english ?

 http://www.deco-crea.com/files/2011-08-18-011724_1680x1050_scrot.png

 Regards,
 --
 Nicolas Aguirre
 Mail: aguirre.nico...@gmail.com
 Web: http://enna.geexbox.org
 Blog: http://dev.enlightenment.fr/~captainigloo/

 --
 Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
 user administration capabilities and model configuration. Take
 the hassle out of deploying and managing Subversion and the
 tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: barbieri trunk/THEMES/detourious/bits

2011-08-17 Thread Gustavo Barbieri
Did not touch (neither have plans to) analog clock, be my guest. It
should be simple, copy it from e17 default.edc and replace images.

I plan to do battery, mixer and connman soon.

Sent from my iPad

On 17/08/2011, at 21:57, Mark Dickie blaeberr...@gmail.com wrote:

 On 17 August 2011 18:21, Nicolas Aguirre aguirre.nico...@gmail.com wrote:
 2011/8/17 Enlightenment SVN no-re...@enlightenment.org:
 Log:
 THEME/detorious: better calendar and clock.

  clock will now show date if there is space.

  calendar is simple and beautiful.

 It looks really good !
 But the day in the date doesn't have the right locale. It should be
 Jeu (for Jeudi in French) instead of Tod or at least display it in
 english ?

 http://www.deco-crea.com/files/2011-08-18-011724_1680x1050_scrot.png

 Regards,
 --
 Nicolas Aguirre
 Mail: aguirre.nico...@gmail.com
 Web: http://enna.geexbox.org
 Blog: http://dev.enlightenment.fr/~captainigloo/

 --
 Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
 user administration capabilities and model configuration. Take
 the hassle out of deploying and managing Subversion and the
 tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


 Much slicker! very nice.
 Tiny bug though which still exists. When you untick seconds in the
 analogue clock the hand still ticks away.

 Thanks

 --
 Mark Dickie


 Email blaeberr...@gmail.com
 Skype blaeberries

 --
 Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
 user administration capabilities and model configuration. Take
 the hassle out of deploying and managing Subversion and the
 tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [Patch] evas_ojbect_textblock, ellipsis handling

2011-08-17 Thread cnook
Dear Mr. Tom,

I have checked with latest evas (evas_object_textblock, and some dependent
files evas_font_dir and so on)
The problem never comes again. Thanks.

Sincerely,
Shinwoo Kim.

2011년 8월 16일 오후 3:09, cnook kimci...@gmail.com님의 말:

 Dear Mr. Tom,

 Thanks for your response.
 I'll check this on the lastest evas.
 Migration would be necessary on my side.

 Sincerely,
 Shinwoo Kim.



 2011/8/14 Tom Hacohen tom.haco...@partner.samsung.com

 On 11/08/11 15:59, cnook wrote:

 Dear All, Hi!

 I have got a problem, when I used evas_object_textblock with edje.
 I am using the following style for textblock which has width 380.

style { name: tle_style;
   base: font=MYFONT:style=Medium font_size=24 align=center
 color=#ff wrap=mixed ellipsis=1.0;
   tag:  br \n;
   tag:  ps ps;
   tag:  hilight +
 font=SLP:style=Bold;

   tag:  b + font=MYFONT:style=Bold;
   tag:  whitecolor + color=#ff;
   tag:  tab \t;
}

 And the following statement is used for the textblock.
 bWarcraft_KR/b   우하하 너무 잼나요  RT

 After calculated width of above statement is 381.

 In this case, edje_object_size_min_**restricted_calc() take loops(4000
 times?)
 until it will meet some condition (ed-w  4000).
 Anyhow, attached patch cannot resolve the fundamental problem. it is just
 temporal solution.
 If this patch is reasonable, please take it before we find more proper
 way.


 I only now got around to testing it, and it works perfectly for me.
 With that being said, I had to guess the definition of your textblock
 part, a compilable example would be nicer.

 Are you using the latest Evas? Because I think I fixed a related issue
 sometime in the last month or so.

 --
 Tom.



--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [Patch] evas_ojbect_textblock, ellipsis handling

2011-08-17 Thread Tom Hacohen
On 18/08/11 08:09, cnook wrote:
 Dear Mr. Tom,
 
 I have checked with latest evas (evas_object_textblock, and some dependent
 files evas_font_dir and so on)
 The problem never comes again. Thanks.

Glad to hear. :)

--
Tom.


--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel