Re: [E-devel] ecore_file_download() always abort after 30 seconds

2012-02-26 Thread Davide Andreoli
2012/2/26 Carsten Haitzler ras...@rasterman.com

 On Sat, 25 Feb 2012 22:50:59 +0100 Davide Andreoli d...@gurumeditation.it
 
 said:

  Please give a try at ecore/src/examples/ecore_file_download_example.c
 
  All the download will fail after 30 seconds, with return status=0
  seems we are hitting some curl timeout...

 crap. i need a download that takes  30 sec ok found one. kernel was
 too
 small... and it was ewcore_file_download's problem it set a timeout (max
 time
 for operation) to ecore-con-url of 30 sec. removed. thats just silly.


yeah! thanks...and sorry for not fixing myself...so easy.

thanks goes to my new poor internet connection for spotting the bug :)

I see another problem that, didn't you see lots of:
CRI: ecore_con_url.c:1529 _ecore_con_url_timer() eina_log_print() unknown
domain -1, original message format 'multiperform is still running: %d,
timeout: %ld'

while downloading?
I can fix that by doing ecore_con_init() in the example, but it doesn't
seems to be the correct
solution...didn't you get all that warnings??




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


--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] ecore_file_download() always abort after 30 seconds

2012-02-26 Thread Davide Andreoli
2012/2/25 Vincent Torri vincent.to...@gmail.com

 On Sat, Feb 25, 2012 at 10:50 PM, Davide Andreoli
 d...@gurumeditation.it wrote:
  Please give a try at ecore/src/examples/ecore_file_download_example.c
 
  All the download will fail after 30 seconds, with return status=0
  seems we are hitting some curl timeout...
 
  btw, why the ecore_file_example is omitted from the build?

 missing stuff in Makefile.am, i guess


yes, sure, I changed the Makefile.am in my local branch, but
I'm not sure why it was omitted and I'm not sure at the way I
changed the makefile.
Can you please give it a look?
its ecore/src/examples/Makefile.am

Thanks
davemds




 Vincent


 --
 Virtualization  Cloud Management Using Capacity Planning
 Cloud computing makes use of virtualization - but cloud computing
 also focuses on allowing computing to be delivered as a service.
 http://www.accelacomm.com/jaw/sfnl/114/51521223/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] LDFLAGS with -Wl,-z,defs

2012-02-26 Thread Thanatermesis
Aparently if you add the option -Wl,-z,defs to your LDFLAGS, there's some
libs that doesn't compile, like evas and e_dbus, there's some logs:


evas:
.libs/module_la-evas_engine.o: In function `gl_lib_init':
evas_engine.c:(.text+0x2912): undefined reference to `dlopen'


edbus:

$ make V=1
make  all-recursive
make[1]: Entering directory `/mkdeb/build/libedbus/libedbus'
Making all in src
make[2]: Entering directory `/mkdeb/build/libedbus/libedbus/src'
Making all in lib
make[3]: Entering directory `/mkdeb/build/libedbus/libedbus/src/lib'
Making all in dbus
make[4]: Entering directory `/mkdeb/build/libedbus/libedbus/src/lib/dbus'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/mkdeb/build/libedbus/libedbus/src/lib/dbus'
Making all in bluez
make[4]: Entering directory `/mkdeb/build/libedbus/libedbus/src/lib/bluez'
/bin/bash ../../../libtool  --tag=CC   --mode=link ccache gcc  -g -O2
-Wshadow -version-info 2:99:1  -fvisibility=hidden -fdata-sections
-Wl,--as-needed -Wl,--gc-sections -Wl,-O1 -Wl,-z,defs -o libebluez.la
-rpath /usr/local/lib e_bluez.lo e_bluez_element.lo e_bluez_manager.lo
e_bluez_adapter.lo e_bluez_device.lo e_bluez_devicefound.lo
../../../src/lib/dbus/libedbus.la
libtool: link: ccache gcc -shared  -fPIC -DPIC  .libs/e_bluez.o
.libs/e_bluez_element.o .libs/e_bluez_manager.o
.libs/e_bluez_adapter.o .libs/e_bluez_device.o
.libs/e_bluez_devicefound.o   -Wl,-rpath
-Wl,/mkdeb/build/libedbus/libedbus/src/lib/dbus/.libs
../../../src/lib/dbus/.libs/libedbus.so  -O2 -Wl,--as-needed
-Wl,--gc-sections -Wl,-O1 -Wl,-z -Wl,defs   -pthread -Wl,-soname
-Wl,libebluez.so.1 -o .libs/libebluez.so.1.1.99
.libs/e_bluez.o: In function `_e_bluez_system_name_owner_exit':
/mkdeb/build/libedbus/libedbus/src/lib/bluez/e_bluez.c:93: undefined
reference to `ecore_event_add'
.libs/e_bluez.o: In function `e_bluez_manager_sync_elements':
/mkdeb/build/libedbus/libedbus/src/lib/bluez/e_bluez.c:84: undefined
reference to `eina_log_print'
.libs/e_bluez.o: In function `_e_bluez_system_name_owner_enter':
/mkdeb/build/libedbus/libedbus/src/lib/bluez/e_bluez.c:102: undefined
reference to `eina_log_print'
/mkdeb/build/libedbus/libedbus/src/lib/bluez/e_bluez.c:114: undefined
reference to `ecore_event_add'
/mkdeb/build/libedbus/libedbus/src/lib/bluez/e_bluez.c:105: undefined
reference to `eina_log_print'



Thanatermesis
--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] ecore_file_download() always abort after 30 seconds

2012-02-26 Thread Bluezery
2012/2/27 Davide Andreoli d...@gurumeditation.it:
 2012/2/26 Carsten Haitzler ras...@rasterman.com

 On Sat, 25 Feb 2012 22:50:59 +0100 Davide Andreoli d...@gurumeditation.it
 
 said:

  Please give a try at ecore/src/examples/ecore_file_download_example.c
 
  All the download will fail after 30 seconds, with return status=0
  seems we are hitting some curl timeout...

 crap. i need a download that takes  30 sec ok found one. kernel was
 too
 small... and it was ewcore_file_download's problem it set a timeout (max
 time
 for operation) to ecore-con-url of 30 sec. removed. thats just silly.


It's my fault because ecore_con_url callback sometimes was not called.
But this was fixed.   I completely forgot to fix this :-(


 yeah! thanks...and sorry for not fixing myself...so easy.

 thanks goes to my new poor internet connection for spotting the bug :)

 I see another problem that, didn't you see lots of:
 CRI: ecore_con_url.c:1529 _ecore_con_url_timer() eina_log_print() unknown
 domain -1, original message format 'multiperform is still running: %d,
 timeout: %ld'

 while downloading?
 I can fix that by doing ecore_con_init() in the example, but it doesn't
 seems to be the correct
 solution...didn't you get all that warnings??


I think that ecore_con_init() should be here in ecore_file_download_init()
or in ecore_con_init().




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


 --
 Virtualization  Cloud Management Using Capacity Planning
 Cloud computing makes use of virtualization - but cloud computing
 also focuses on allowing computing to be delivered as a service.
 http://www.accelacomm.com/jaw/sfnl/114/51521223/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel



-- 
BRs,
Kim.

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [Qustion][Windows] Cannot execute elementary_test.exe

2012-02-26 Thread Kim Shinwoo
Hey dear, please refer to the following information.

Breakpoint 1, eet_string_match (s1=0x490ba5 Address 0x490ba5 out of
bounds, s2=0x639db184 edje/file)
at eet_lib.c:334
334 return !strcmp(s1, s2);
(gdb) up
#1  0x6fdc1e00 in find_node_by_name (name=0x639db184 edje/file, ef=value
optimized out) at eet_lib.c:2507
2507if (eet_string_match(efn-name, name))
(gdb) print efn-name_size
$3 = 10
(gdb) print efn-name
$4 = 0x490ba5 Address 0x490ba5 out of bounds
(gdb)

Anyhow, I cannot make corefile on MinGW... If you need any other
information, please tell me.


2012/2/24 Cedric BAIL cedric.b...@free.fr

 On Fri, Feb 24, 2012 at 12:53 PM, Carsten Haitzler ras...@rasterman.com
 wrote:
  On Fri, 24 Feb 2012 20:49:31 +0900 Kim Shinwoo kimcinoo@gmail.com
 said:
 
  ok - address seems quite low. that should be an address inside a mmaped
 file.

  Just before the segmentation fault .. s1 and s2 are belows...
 
s1=0x570ba5* Address 0x570ba5 out oo bounds*
s2=0x639db184 edje/file
 
   Program received signal SIGSEGV, Segmentation fault.

 Hum, s1 and s2 should be in the same mmaped file, so almost the same
 adress. That's obviously not the case.

 Possible problem could come from a invalid chained list in eet hash
 (so something to look in find_node_by_name). But this solution seems
 impossible as this is only possible if calloc didn't set memory to
 zero...
 The second problem that I don't understand, is that when we load from
 a file, we check that the mmaped string is really a NULL terminated
 string of name_size length. Maybe you could print the content of
 efn-name_size in find_node_by_name. But I really don't understand how
 this pointer could get in and pass all this check...
 --
 Cedric BAIL


 --
 Virtualization  Cloud Management Using Capacity Planning
 Cloud computing makes use of virtualization - but cloud computing
 also focuses on allowing computing to be delivered as a service.
 http://www.accelacomm.com/jaw/sfnl/114/51521223/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] ecore_file_download() always abort after 30 seconds

2012-02-26 Thread The Rasterman
On Sun, 26 Feb 2012 16:38:40 +0100 Davide Andreoli d...@gurumeditation.it
said:

 2012/2/26 Carsten Haitzler ras...@rasterman.com
 
  On Sat, 25 Feb 2012 22:50:59 +0100 Davide Andreoli d...@gurumeditation.it
  
  said:
 
   Please give a try at ecore/src/examples/ecore_file_download_example.c
  
   All the download will fail after 30 seconds, with return status=0
   seems we are hitting some curl timeout...
 
  crap. i need a download that takes  30 sec ok found one. kernel was
  too
  small... and it was ewcore_file_download's problem it set a timeout (max
  time
  for operation) to ecore-con-url of 30 sec. removed. thats just silly.
 
 
 yeah! thanks...and sorry for not fixing myself...so easy.
 
 thanks goes to my new poor internet connection for spotting the bug :)
 
 I see another problem that, didn't you see lots of:
 CRI: ecore_con_url.c:1529 _ecore_con_url_timer() eina_log_print() unknown
 domain -1, original message format 'multiperform is still running: %d,
 timeout: %ld'
 
 while downloading?
 I can fix that by doing ecore_con_init() in the example, but it doesn't
 seems to be the correct
 solution...didn't you get all that warnings??

i didnt get any warnings, but i added an ecore_con_init to the file download
init.

 
  --
  - Codito, ergo sum - I code, therefore I am --
  The Rasterman (Carsten Haitzler)ras...@rasterman.com
 
 
 --
 Virtualization  Cloud Management Using Capacity Planning
 Cloud computing makes use of virtualization - but cloud computing 
 also focuses on allowing computing to be delivered as a service.
 http://www.accelacomm.com/jaw/sfnl/114/51521223/
 ___
 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


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [Qustion][Windows] Cannot execute elementary_test.exe

2012-02-26 Thread The Rasterman
On Mon, 27 Feb 2012 11:24:29 +0900 Kim Shinwoo kimcinoo@gmail.com said:

 Hey dear, please refer to the following information.
 
 Breakpoint 1, eet_string_match (s1=0x490ba5 Address 0x490ba5 out of
 bounds, s2=0x639db184 edje/file)
 at eet_lib.c:334
 334 return !strcmp(s1, s2);
 (gdb) up
 #1  0x6fdc1e00 in find_node_by_name (name=0x639db184 edje/file, ef=value
 optimized out) at eet_lib.c:2507
 2507if (eet_string_match(efn-name, name))
 (gdb) print efn-name_size
 $3 = 10
 (gdb) print efn-name
 $4 = 0x490ba5 Address 0x490ba5 out of bounds
 (gdb)
 
 Anyhow, I cannot make corefile on MinGW... If you need any other
 information, please tell me.

weird. size looks right, name ptr wrong. it's as if the file that was being
used has been munmapped/closed... the only weay we will find this is by finding
that close... but why would that be closed on windows and not also on linux as
its the same logic/codepath at that level - evil wraps the map stuff further
down the stack. is there a way you can print/track file mappings in windows?
(/proc/PID/maps style or the pmap tool?)

 2012/2/24 Cedric BAIL cedric.b...@free.fr
 
  On Fri, Feb 24, 2012 at 12:53 PM, Carsten Haitzler ras...@rasterman.com
  wrote:
   On Fri, 24 Feb 2012 20:49:31 +0900 Kim Shinwoo kimcinoo@gmail.com
  said:
  
   ok - address seems quite low. that should be an address inside a mmaped
  file.
 
   Just before the segmentation fault .. s1 and s2 are belows...
  
 s1=0x570ba5* Address 0x570ba5 out oo bounds*
 s2=0x639db184 edje/file
  
Program received signal SIGSEGV, Segmentation fault.
 
  Hum, s1 and s2 should be in the same mmaped file, so almost the same
  adress. That's obviously not the case.
 
  Possible problem could come from a invalid chained list in eet hash
  (so something to look in find_node_by_name). But this solution seems
  impossible as this is only possible if calloc didn't set memory to
  zero...
  The second problem that I don't understand, is that when we load from
  a file, we check that the mmaped string is really a NULL terminated
  string of name_size length. Maybe you could print the content of
  efn-name_size in find_node_by_name. But I really don't understand how
  this pointer could get in and pass all this check...
  --
  Cedric BAIL
 
 
  --
  Virtualization  Cloud Management Using Capacity Planning
  Cloud computing makes use of virtualization - but cloud computing
  also focuses on allowing computing to be delivered as a service.
  http://www.accelacomm.com/jaw/sfnl/114/51521223/
  ___
  enlightenment-devel mailing list
  enlightenment-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 
 --
 Try before you buy = See our experts in action!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-dev2
 ___
 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


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


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

2012-02-26 Thread Daniel Juyung Seo
On Sat, Feb 25, 2012 at 2:58 AM, Enlightenment SVN
no-re...@enlightenment.org wrote:
 Log:
 elementary/elm_photocam: add multi-touch zoom gesture

 Author:       xhell
 Date:         2012-02-24 09:58:29 -0800 (Fri, 24 Feb 2012)
 New Revision: 68426
 Trac:         http://trac.enlightenment.org/e/changeset/68426

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

 Modified: trunk/elementary/src/lib/elm_photocam.c
 ===
 --- trunk/elementary/src/lib/elm_photocam.c     2012-02-24 17:05:44 UTC (rev 
 68425)
 +++ trunk/elementary/src/lib/elm_photocam.c     2012-02-24 17:58:29 UTC (rev 
 68426)
 @@ -44,11 +44,27 @@
    Evas_Object *obj;
    Evas_Object *scr;
    Evas_Object *pan_smart;
 +   Evas_Object *gest;
 +   double       gest_start;
 +
    Pan *pan;
    Evas_Coord pan_x, pan_y, minw, minh;

    double zoom;
    Elm_Photocam_Zoom_Mode mode;
 +   Evas_Coord pvx, pvy, px, py, zoom_point_x, zoom_point_y;
 +   struct
 +   {
 +      int imx, imy;
 +      struct
 +      {
 +         int x_start, y_start;
 +         int x_end, y_end;
 +         double t_start;
 +         double t_end;
 +         Ecore_Animator *animator;
 +      } bounce;
 +   } gzoom;
    const char *file;

    Ecore_Job *calc_job;
 @@ -82,6 +98,7 @@
    Eina_Bool on_hold : 1;
    Eina_Bool paused : 1;
    Eina_Bool do_region : 1;
 +   Eina_Bool zoom_gest : 1;
  };

  struct _Pan
 @@ -164,8 +181,11 @@
    ay = 0;
    gw = wd-size.w;
    gh = wd-size.h;
 -   if (ow  gw) ax = (ow - gw) / 2;
 -   if (oh  gh) ay = (oh - gh) / 2;
 +   if (!wd-zoom_gest)
 +     {
 +        if (ow  gw) ax = (ow - gw) / 2;
 +        if (oh  gh) ay = (oh - gh) / 2;
 +     }
    evas_object_move(wd-img, ox + 0 - px + ax, oy + 0 - py + ay);
    evas_object_resize(wd-img, gw, gh);

 @@ -187,8 +207,11 @@
    ay = 0;
    gw = wd-size.w;
    gh = wd-size.h;
 -   if (ow  gw) ax = (ow - gw) / 2;
 -   if (oh  gh) ay = (oh - gh) / 2;
 +   if (!wd-zoom_gest)
 +     {
 +        if (ow  gw) ax = (ow - gw) / 2;
 +        if (oh  gh) ay = (oh - gh) / 2;
 +     }
    for (y = 0; y  g-gh; y++)
      {
         for (x = 0; x  g-gw; x++)
 @@ -703,6 +726,7 @@
    if (wd-calc_job) ecore_job_del(wd-calc_job);
    if (wd-scr_timer) ecore_timer_del(wd-scr_timer);
    if (wd-zoom_animator) ecore_animator_del(wd-zoom_animator);
 +   if (wd-gzoom.bounce.animator) 
 ecore_animator_del(wd-gzoom.bounce.animator);
    if (wd-long_timer) ecore_timer_del(wd-long_timer);
    free(wd);
  }
 @@ -886,11 +910,13 @@
    Grid *g;
    if (!sd) return;
    evas_object_geometry_get(obj, ox, oy, ow, oh);
 -   img_place(sd-wd-obj, sd-wd-pan_x, sd-wd-pan_y, ox, oy, ow, oh);
 +   img_place(sd-wd-obj, sd-wd-pan_x, sd-wd-pan_y,
 +             ox - sd-wd-gzoom.imx, oy - sd-wd-gzoom.imy, ow, oh);
    EINA_LIST_FOREACH(sd-wd-grids, l, g)
      {
         grid_load(sd-wd-obj, g);
 -        grid_place(sd-wd-obj, g, sd-wd-pan_x, sd-wd-pan_y, ox, oy, ow, 
 oh);
 +        grid_place(sd-wd-obj, g, sd-wd-pan_x, sd-wd-pan_y,
 +                   ox - sd-wd-gzoom.imx, oy - sd-wd-gzoom.imy, ow, oh);
      }
  }

 @@ -1050,6 +1076,245 @@
    return EINA_TRUE;
  }

 +Eina_Bool
 +_bounce_eval(void *_wd)
 +{
 +   Widget_Data *wd = (Widget_Data *)_wd;
 +   double t, tt;
 +
 +   if (!wd) return ECORE_CALLBACK_CANCEL;
 +   if ((wd-gzoom.imx == wd-gzoom.bounce.x_end) 
 +       (wd-gzoom.imy == wd-gzoom.bounce.y_end))
 +     {
 +        wd-gzoom.imx = 0;
 +        wd-gzoom.imy = 0;
 +        wd-zoom_gest = EINA_FALSE;
 +        wd-gzoom.bounce.animator = NULL;
 +        _freeze_off(NULL, wd-obj, NULL);
 +        return ECORE_CALLBACK_CANCEL;
 +     }
 +
 +   t = ecore_loop_time_get();
 +   tt = (t - wd-gzoom.bounce.t_start) / (wd-gzoom.bounce.t_end - 
 wd-gzoom.bounce.t_start);
 +   tt = 1.0 - tt;
 +   tt = 1.0 - (tt * tt);
 +
 +   if (t  wd-gzoom.bounce.t_end)
 +     {
 +        wd-gzoom.imx = 0;
 +        wd-gzoom.imy = 0;
 +        wd-zoom_gest = EINA_FALSE;
 +        _freeze_off(NULL, wd-obj, NULL);
 +        zoom_do(wd-obj, 1.0);
 +        wd-gzoom.bounce.animator = NULL;
 +        return ECORE_CALLBACK_CANCEL;
 +     }
 +
 +   if (wd-gzoom.imx != wd-gzoom.bounce.x_end)
 +     wd-gzoom.imx = wd-gzoom.bounce.x_start * (1.0 - tt) + 
 wd-gzoom.bounce.x_end * tt;
 +
 +   if (wd-gzoom.imy != wd-gzoom.bounce.y_end)
 +     wd-gzoom.imy = wd-gzoom.bounce.y_start * (1.0 - tt) + 
 wd-gzoom.bounce.y_end * tt;
 +
 +   zoom_do(wd-obj, 1.0 - (1.0 - tt));
 +   return ECORE_CALLBACK_RENEW;
 +}
 +
 +static void
 +_gzoom(Widget_Data *_wd, Evas_Coord px, Evas_Coord py, 
 Elm_Gesture_Zoom_Info* gest)
 +{
 +   Widget_Data *wd = (Widget_Data *)_wd;
 +   Evas_Coord rx, ry, rw, rh;
 +   int regx, regy, regw, regh, ix, iy, iw, ih;
 +   int xx, yy;
 +
 +   if (!wd) return;
 +   wd-mode = ELM_PHOTOCAM_ZOOM_MODE_MANUAL;
 +   wd-zoom = wd-gest_start / gest-zoom;
 +   wd-size.ow = wd-size.w;
 +   wd-size.oh = wd-size.h;
 +   

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

2012-02-26 Thread ChunEon Park
Should it be fixed? If then, the title visible states would be corrupted. 
I intended to recover the title visible state for all pages.

-Regards, Hermet-
 
-Original Message-
From: Enlightenment SVNlt;no-re...@enlightenment.orggt; 
To: enlightenment-...@lists.sourceforge.net
Cc: 
Sent: 12-02-24(금) 22:04:37
Subject: E SVN: raster trunk/elementary/src/lib
Log:
fix naviframe theme hook.
 
 
Author: raster
Date: 2012-02-24 05:04:37 -0800 (Fri, 24 Feb 2012)
New Revision: 68413
Trac: http://trac.enlightenment.org/e/changeset/68413
Modified:
 trunk/elementary/src/lib/elc_naviframe.c 
Modified: trunk/elementary/src/lib/elc_naviframe.c
===
--- trunk/elementary/src/lib/elc_naviframe.c 2012-02-24 12:46:18 UTC (rev 68412)
+++ trunk/elementary/src/lib/elc_naviframe.c 2012-02-24 13:04:37 UTC (rev 68413)
@@ -217,8 +217,9 @@
 EINA_INLIST_FOREACH(wd-stack, it)
 {
 _item_style_set(it, it-style);
- _item_title_visible_update(it);
 }
+ if (it)
+ _item_title_visible_update(it);
 }
 
 static void _emit_hook(Evas_Object *obj,
--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
enlightenment-svn mailing list
enlightenment-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] LDFLAGS with -Wl,-z,defs

2012-02-26 Thread The Rasterman
On Sun, 26 Feb 2012 20:13:45 +0100 Thanatermesis thanatermesis.e...@gmail.com
said:

compiles now. :)

 Aparently if you add the option -Wl,-z,defs to your LDFLAGS, there's some
 libs that doesn't compile, like evas and e_dbus, there's some logs:
 
 
 evas:
 .libs/module_la-evas_engine.o: In function `gl_lib_init':
 evas_engine.c:(.text+0x2912): undefined reference to `dlopen'
 
 
 edbus:
 
 $ make V=1
 make  all-recursive
 make[1]: Entering directory `/mkdeb/build/libedbus/libedbus'
 Making all in src
 make[2]: Entering directory `/mkdeb/build/libedbus/libedbus/src'
 Making all in lib
 make[3]: Entering directory `/mkdeb/build/libedbus/libedbus/src/lib'
 Making all in dbus
 make[4]: Entering directory `/mkdeb/build/libedbus/libedbus/src/lib/dbus'
 make[4]: Nothing to be done for `all'.
 make[4]: Leaving directory `/mkdeb/build/libedbus/libedbus/src/lib/dbus'
 Making all in bluez
 make[4]: Entering directory `/mkdeb/build/libedbus/libedbus/src/lib/bluez'
 /bin/bash ../../../libtool  --tag=CC   --mode=link ccache gcc  -g -O2
 -Wshadow -version-info 2:99:1  -fvisibility=hidden -fdata-sections
 -Wl,--as-needed -Wl,--gc-sections -Wl,-O1 -Wl,-z,defs -o libebluez.la
 -rpath /usr/local/lib e_bluez.lo e_bluez_element.lo e_bluez_manager.lo
 e_bluez_adapter.lo e_bluez_device.lo e_bluez_devicefound.lo
 ../../../src/lib/dbus/libedbus.la
 libtool: link: ccache gcc -shared  -fPIC -DPIC  .libs/e_bluez.o
 .libs/e_bluez_element.o .libs/e_bluez_manager.o
 .libs/e_bluez_adapter.o .libs/e_bluez_device.o
 .libs/e_bluez_devicefound.o   -Wl,-rpath
 -Wl,/mkdeb/build/libedbus/libedbus/src/lib/dbus/.libs
 ../../../src/lib/dbus/.libs/libedbus.so  -O2 -Wl,--as-needed
 -Wl,--gc-sections -Wl,-O1 -Wl,-z -Wl,defs   -pthread -Wl,-soname
 -Wl,libebluez.so.1 -o .libs/libebluez.so.1.1.99
 .libs/e_bluez.o: In function `_e_bluez_system_name_owner_exit':
 /mkdeb/build/libedbus/libedbus/src/lib/bluez/e_bluez.c:93: undefined
 reference to `ecore_event_add'
 .libs/e_bluez.o: In function `e_bluez_manager_sync_elements':
 /mkdeb/build/libedbus/libedbus/src/lib/bluez/e_bluez.c:84: undefined
 reference to `eina_log_print'
 .libs/e_bluez.o: In function `_e_bluez_system_name_owner_enter':
 /mkdeb/build/libedbus/libedbus/src/lib/bluez/e_bluez.c:102: undefined
 reference to `eina_log_print'
 /mkdeb/build/libedbus/libedbus/src/lib/bluez/e_bluez.c:114: undefined
 reference to `ecore_event_add'
 /mkdeb/build/libedbus/libedbus/src/lib/bluez/e_bluez.c:105: undefined
 reference to `eina_log_print'
 
 
 
 Thanatermesis
 --
 Virtualization  Cloud Management Using Capacity Planning
 Cloud computing makes use of virtualization - but cloud computing 
 also focuses on allowing computing to be delivered as a service.
 http://www.accelacomm.com/jaw/sfnl/114/51521223/
 ___
 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


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


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

2012-02-26 Thread The Rasterman
On Mon, 27 Feb 2012 14:06:38 +0900 ChunEon Parkher...@naver.com said:

aaahbug was a different one- i just hid it. fixed now. title visibility was
always enabled when u change style.. pretty wrong imho.

 Should it be fixed? If then, the title visible states would be corrupted. 
 I intended to recover the title visible state for all pages.
 
 -Regards, Hermet-
  
 -Original Message-
 From: Enlightenment SVNlt;no-re...@enlightenment.orggt; 
 To: enlightenment-...@lists.sourceforge.net
 Cc: 
 Sent: 12-02-24(금) 22:04:37
 Subject: E SVN: raster trunk/elementary/src/lib
 Log:
 fix naviframe theme hook.
  
  
 Author: raster
 Date: 2012-02-24 05:04:37 -0800 (Fri, 24 Feb 2012)
 New Revision: 68413
 Trac: http://trac.enlightenment.org/e/changeset/68413
 Modified:
  trunk/elementary/src/lib/elc_naviframe.c 
 Modified: trunk/elementary/src/lib/elc_naviframe.c
 ===
 --- trunk/elementary/src/lib/elc_naviframe.c 2012-02-24 12:46:18 UTC (rev
 68412) +++ trunk/elementary/src/lib/elc_naviframe.c 2012-02-24 13:04:37 UTC
 (rev 68413) @@ -217,8 +217,9 @@
  EINA_INLIST_FOREACH(wd-stack, it)
  {
  _item_style_set(it, it-style);
 - _item_title_visible_update(it);
  }
 + if (it)
 + _item_title_visible_update(it);
  }
  
  static void _emit_hook(Evas_Object *obj,
 --
 Virtualization  Cloud Management Using Capacity Planning
 Cloud computing makes use of virtualization - but cloud computing 
 also focuses on allowing computing to be delivered as a service.
 http://www.accelacomm.com/jaw/sfnl/114/51521223/
 ___
 enlightenment-svn mailing list
 enlightenment-...@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
 --
 Try before you buy = See our experts in action!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-dev2
 ___
 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


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] new evas compile warnings

2012-02-26 Thread The Rasterman
On Sat, 25 Feb 2012 03:28:40 -0500 Michael Blumenkrantz
michael.blumenkra...@gmail.com said:

 Making all in gl_x11
   CC module_la-evas_engine.lo
   CC module_la-evas_x_main.lo
 evas_engine.c: In function '_sym_init':
 evas_engine.c:519:115: warning: assignment from incompatible pointer type
 evas_engine.c:519:273: warning: assignment from incompatible pointer type
 evas_engine.c: In function 'compute_gl_coordinates':
 evas_engine.c:3558:23: warning: unused variable 'oy2'
 evas_engine.c:3558:18: warning: unused variable 'ox2'
 evas_engine.c:3558:13: warning: unused variable 'oy1'
 evas_engine.c:3558:8: warning: unused variable 'ox1'
 evas_engine.c:3557:23: warning: unused variable 'ny2'
 evas_engine.c:3557:18: warning: unused variable 'nx2'
 evas_engine.c:3557:13: warning: unused variable 'ny1'
 evas_engine.c:3557:8: warning: unused variable 'nx1'

it warns no more.. well first 2 warns just make no sense... it's doing the
right thing... hmmm.

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


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] elev8: Function/parameter/class naming scheme

2012-02-26 Thread The Rasterman
On Sat, 25 Feb 2012 15:27:46 +0900 Daniel Juyung Seo seojuyu...@gmail.com
said:

i shall continue to go eeww

 Good topic.
 Agreed on my side :)
 elev8 is for JavaScript programmer and EFL background is not needed to
 use elev8.
 Here we go CamelCase!
 
 Daniel Juyung Seo (SeoZ)
 
 On Fri, Feb 24, 2012 at 5:12 PM, Cedric BAIL cedric.b...@free.fr wrote:
  Yop,
 
  On Thu, Feb 23, 2012 at 9:16 PM, Leandro Pereira lean...@profusion.mobi
  wrote:
  I'd like to propose we move the naming scheme of Elev8's API to
  CamelCase, so that it is more consistent with other things our target
  developers might be using.
 
  JavaScript itself, Node.js, jQuery, and even Tizen APIs (at least the
  ones I've looked into -- WebRuntime stuff to be more precise) uses this
  scheme.
 
  I'm proposing this because we're working on a JavaScript framework to
  develop applications in EFL using Elev8 as a base.
 
  And although the idea is to completely hide what's below (where naming
  wouldn't matter because it'd be inside a library the user would import),
  eventually for certain more advanced tasks, this might be possible and
  I'd like to maintain consistency and, most importantly, a sense of
  familiarity to the target developer base.
 
  Any point against this change in elev8? Are there any major changes
  waiting to be merged that I should worry about?
 
  The main difference with elixir and elev8 is that we choose to take a
  more JS approach with no one to one mapping with EFL C API. I think
  that switching to CamelCase would be one more step in that direction.
  It will make the code written for elev8 more like other JS script. So
  I vote for it, and soon.
  --
  Cedric BAIL
 
  --
  Virtualization  Cloud Management Using Capacity Planning
  Cloud computing makes use of virtualization - but cloud computing
  also focuses on allowing computing to be delivered as a service.
  http://www.accelacomm.com/jaw/sfnl/114/51521223/
  ___
  enlightenment-devel mailing list
  enlightenment-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 
 --
 Virtualization  Cloud Management Using Capacity Planning
 Cloud computing makes use of virtualization - but cloud computing 
 also focuses on allowing computing to be delivered as a service.
 http://www.accelacomm.com/jaw/sfnl/114/51521223/
 ___
 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


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] elev8: Function/parameter/class naming scheme

2012-02-26 Thread Michael Blumenkrantz
On Mon, 27 Feb 2012 15:44:01 +0900
Carsten Haitzler (The Rasterman) ras...@rasterman.com wrote:

 On Sat, 25 Feb 2012 15:27:46 +0900 Daniel Juyung Seo seojuyu...@gmail.com
 said:
 
 i shall continue to go eeww
+2
 
  Good topic.
  Agreed on my side :)
  elev8 is for JavaScript programmer and EFL background is not needed to
  use elev8.
  Here we go CamelCase!
  
  Daniel Juyung Seo (SeoZ)
  
  On Fri, Feb 24, 2012 at 5:12 PM, Cedric BAIL cedric.b...@free.fr wrote:
   Yop,
  
   On Thu, Feb 23, 2012 at 9:16 PM, Leandro Pereira lean...@profusion.mobi
   wrote:
   I'd like to propose we move the naming scheme of Elev8's API to
   CamelCase, so that it is more consistent with other things our target
   developers might be using.
  
   JavaScript itself, Node.js, jQuery, and even Tizen APIs (at least the
   ones I've looked into -- WebRuntime stuff to be more precise) uses this
   scheme.
  
   I'm proposing this because we're working on a JavaScript framework to
   develop applications in EFL using Elev8 as a base.
  
   And although the idea is to completely hide what's below (where naming
   wouldn't matter because it'd be inside a library the user would import),
   eventually for certain more advanced tasks, this might be possible and
   I'd like to maintain consistency and, most importantly, a sense of
   familiarity to the target developer base.
  
   Any point against this change in elev8? Are there any major changes
   waiting to be merged that I should worry about?
  
   The main difference with elixir and elev8 is that we choose to take a
   more JS approach with no one to one mapping with EFL C API. I think
   that switching to CamelCase would be one more step in that direction.
   It will make the code written for elev8 more like other JS script. So
   I vote for it, and soon.
   --
   Cedric BAIL
  

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] suggest new api for elm_entry's copy paste behavior

2012-02-26 Thread 김대성
 
Dear. All elementary library developers.
 
I deprecated old apis(elm_entry_cnp_textonly_set/get) in this patch.
Please review this patch once again.
 
Best regards.
-Original Message-
From: Carsten Haitzlerlt;ras...@rasterman.comgt;
To: Enlightenment developer 
listlt;enlightenment-devel@lists.sourceforge.netgt;
Cc: 김대성lt;ad960...@naver.comgt;
Sent: 12-02-24(금) 18:49:29
Subject: Re: [E-devel] suggest new api for elm_entry's copy  paste behavior
On Fri, 17 Feb 2012 17:45:57 +0900 김대성lt;ad960...@naver.comgt; said:
could you provide this new api and ALSO deprecate the old apis so we dont have
an instant api break? (we can deprecate and move over the next few days/weeeks)?

 Dear. All elementary developer.

 Attached to the mail is the patch for new API.
 This patch changes elm_entry_cnp_test_only_set/get APIs to
 elm_entry_cnp_mode_set/get APIs.
 Patch is useful for 3 cases when copypaste through entry in application.
 case 1 : get original markup text
 case 2 : get markup text without image
 case 3 : get plain text

 CNP_MODE can be set these values.
 EML_CNP_MODE_MARKUP : any tags are not removed.
 EML_CNP_MODE_NO_IMAGE : just removes all item tags.
 EML_CNP_MODE_PLAINTEXT : removes all item tags, fonts and color tags.

 Please review this patch.

 Best regards.
--
- Codito, ergo sum - I code, therefore I am --
The Rasterman (Carsten Haitzler) ras...@rasterman.com
Index: src/lib/elm_entry.c
===
--- src/lib/elm_entry.c (revision 68468)
+++ src/lib/elm_entry.c (working copy)
@@ -67,7 +67,7 @@
Eina_Bool drag_selection_asked : 1;
Eina_Bool can_write : 1;
Eina_Bool autosave : 1;
-   Eina_Bool textonly : 1;
+   Elm_CNP_Mode cnp_mode : 2;
Eina_Bool usedown : 1;
Eina_Bool scroll : 1;
Eina_Bool h_bounce : 1;
@@ -1129,14 +1129,67 @@
  elm_widget_scroll_hold_push(data);
 }
 
+static char *
+_remove_item_tags(const char *str)
+{
+   char *ret;
+   if (!str)
+ return NULL;
+
+   Eina_Strbuf *buf = eina_strbuf_new();
+   if (!buf)
+ return NULL;
+
+   if (!eina_strbuf_append(buf, str))
+ return NULL;
+
+   while (EINA_TRUE)
+ {
+const char *temp = eina_strbuf_string_get(buf);
+
+char *startTag = NULL;
+char *endTag = NULL;
+
+startTag = strstr(temp, item);
+if (!startTag)
+  startTag = strstr(temp, /item);
+if (startTag)
+  endTag = strstr(startTag, );
+else
+  break;
+if (!endTag || startTag  endTag)
+  break;
+
+size_t sindex = startTag - temp;
+size_t eindex = endTag - temp + 1;
+if (!eina_strbuf_remove(buf, sindex, eindex))
+  break;
+ }
+   ret = eina_strbuf_string_steal(buf);
+   eina_strbuf_free(buf);
+   return ret;
+}
+
 void
 _elm_entry_entry_paste(Evas_Object *obj, const char *entry)
 {
+   Widget_Data *wd = elm_widget_data_get(obj);
+   
+   char *str = NULL;
+   if (wd-cnp_mode == ELM_CNP_MODE_NO_IMAGE)
+ {
+str = _remove_item_tags(entry);
+if (!str)
+  str = strdup(entry);
+ }
+   else
+ str = strdup(entry);
+
Elm_Entry_Change_Info info;
info.merge = EINA_FALSE;
info.insert = EINA_TRUE;
info.change.insert.pos = elm_entry_cursor_pos_get(obj);
-   info.change.insert.content = eina_stringshare_add(entry);
+   info.change.insert.content = eina_stringshare_add(str);
  {
 char *tmp;
 tmp = evas_textblock_text_markup_to_utf8(elm_entry_textblock_get(obj),
@@ -1145,10 +1198,11 @@
 free(tmp);
  }
 
-   elm_entry_entry_insert(obj, entry);
+   elm_entry_entry_insert(obj, str);
evas_object_smart_callback_call(obj, SIG_CHANGED_USER, info);
 
eina_stringshare_del(info.change.insert.content);
+   free(str);
 }
 
 static void
@@ -1160,10 +1214,11 @@
if (wd-sel_notify_handler)
  {
 #ifdef HAVE_ELEMENTARY_X
-Elm_Sel_Format formats;
+Elm_Sel_Format formats = ELM_SEL_FORMAT_MARKUP;
 wd-selection_asked = EINA_TRUE;
-formats = ELM_SEL_FORMAT_MARKUP;
-if (!wd-textonly)
+if (wd-cnp_mode == ELM_CNP_MODE_PLAINTEXT)
+  formats = ELM_SEL_FORMAT_TEXT;
+else if (wd-cnp_mode != ELM_CNP_MODE_NO_IMAGE)
   formats |= ELM_SEL_FORMAT_IMAGE;
 elm_cnp_selection_get(ELM_SEL_TYPE_CLIPBOARD, formats, data, NULL, 
NULL);
 #endif
@@ -1656,8 +1711,13 @@
 if ((top)  (elm_win_xwindow_get(top)))
   {
  wd-selection_asked = EINA_TRUE;
- elm_cnp_selection_get(type, ELM_SEL_FORMAT_MARKUP, data,
-   NULL, NULL);
+ Elm_Sel_Format formats = ELM_SEL_FORMAT_MARKUP;
+ if (wd-cnp_mode == ELM_CNP_MODE_PLAINTEXT)
+   formats = ELM_SEL_FORMAT_TEXT;
+ else if (wd-cnp_mode != ELM_CNP_MODE_NO_IMAGE)
+   formats |= ELM_SEL_FORMAT_IMAGE;
+ elm_cnp_selection_get(type, formats,