[E-devel] What are E_Manager/Container/Zone ?

2007-02-04 Thread Simon TRENY
Hi everyone,

I'm writing a module for e17 and I have some difficulties to understand
the differences between E_Manager, E_Container and E_Zone. It seems
E_Manager contains several E_Containers which contain several E_Zones.

E_Zone seems to be divided in several E_Desk's (the virtual desktops)
so I would think that the E_Zones are the actual screens. But then,
what are the E_Containers and the E_Managers?

And what exactly do e_manager/container/zone_current_get(). If a E_Zone
corresponds really to a screen, how could a screen be the current one?

Thanks in advance
Simon


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] ibar dnd

2007-02-04 Thread Aleksej Struk
Hi there,

I've noticed the following behaviour of dnd in ibar. When I start
dragging the icon, the drop position of the icon is shown. When I stop dragging,
the icon is basically copied to a new place, and the old icon,
the icon I drag, stays in place.

Does anyone can confirm the same?

sndev

-- 

Aleksej Struk
Master Degree Student
Free University of Bozen-Bolzano
Faculty of Computer Science
phone: +39-0471-061749
cell phone: +39-3204627049 +370-61278908
[EMAIL PROTECTED] [EMAIL PROTECTED] - http://astruk.googlepages.com/home

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] What are E_Manager/Container/Zone ?

2007-02-04 Thread Sebastian Dransfeld
Simon TRENY wrote:
> Hi everyone,
> 
> I'm writing a module for e17 and I have some difficulties to understand
> the differences between E_Manager, E_Container and E_Zone. It seems
> E_Manager contains several E_Containers which contain several E_Zones.
> 
> E_Zone seems to be divided in several E_Desk's (the virtual desktops)
> so I would think that the E_Zones are the actual screens. But then,
> what are the E_Containers and the E_Managers?
> 
> And what exactly do e_manager/container/zone_current_get(). If a E_Zone
> corresponds really to a screen, how could a screen be the current one?

1 manager for each root display.

1 container for each virtual root (e17 does not support virtual roots, 
so 1 container for each manager).

1 zone for each screen (xinerama with two physical screens will result 
in 2 zones for each container).

A standard setup will have 1 manager, 1 container and 1 zone.

current() will give you the active one, typically where the pointer is.

Sebastian

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] fm2 fix

2007-02-04 Thread Stark, Thomas
Hi,

attached a little patch which corrects the "file://" handling in the
_e_fm2_icon_desktop_url_eval function. This avoids links like:
  AdobeReader.desktop
-> ///home/thomas/.e/e/applications/all/AdobeReader.desktop

Bye,
Thomas


-- 
 Stark, Thomas <[EMAIL PROTECTED]>
--- cvs/e17/apps/e/src/bin/e_fm.c	2007-02-04 14:31:34.0 +0100
+++ build/e17/apps/e/src/bin/e_fm.c	2007-02-04 18:05:20.0 +0100
@@ -2448,8 +2448,8 @@
char *path, *p;

if (strlen(val) < 6) return NULL;
-   if (strncmp(val, "file:", 5)) return NULL;
-   path = (char *)val + 5;
+   if (strncmp(val, "file://", 7)) return NULL;
+   path = (char *)val + 7;
p = e_util_shell_env_path_eval(path);
if (!p) return NULL;
s = evas_stringshare_add(p);
@@ -6058,7 +6058,7 @@
 		"Name=%s\n"
 		"X-Enlightenment-IconClass=%s\n"
 		"Comment=%s\n"
-		"URL=file:/%s"
+		"URL=file://%s"
 		,
 		rem->label,
 		"fileman/hd", 
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] What are E_Manager/Container/Zone ?

2007-02-04 Thread Simon TRENY
Thanks, things are a lot clearer now :)

There is just one thing that I still don't understand. Why the E_Desks
are contained by a E_Zone and not by a E_Manager directly? I thought
that when you "join" two physical screens with xinerama, they both
share the same virtual desktops no? (I never used Xinerama so I may be
wrong...)
Or maybe the E_Desks from 2 E_Zones that belong to the same E_Container
are the same?

Thanks for your help :)
Simon


On Sun, 04 Feb 2007 17:18:59 +0100,
Sebastian Dransfeld <[EMAIL PROTECTED]> wrote :

> Simon TRENY wrote:
> > Hi everyone,
> > 
> > I'm writing a module for e17 and I have some difficulties to
> > understand the differences between E_Manager, E_Container and
> > E_Zone. It seems E_Manager contains several E_Containers which
> > contain several E_Zones.
> > 
> > E_Zone seems to be divided in several E_Desk's (the virtual
> > desktops) so I would think that the E_Zones are the actual screens.
> > But then, what are the E_Containers and the E_Managers?
> > 
> > And what exactly do e_manager/container/zone_current_get(). If a
> > E_Zone corresponds really to a screen, how could a screen be the
> > current one?
> 
> 1 manager for each root display.
> 
> 1 container for each virtual root (e17 does not support virtual
> roots, so 1 container for each manager).
> 
> 1 zone for each screen (xinerama with two physical screens will
> result in 2 zones for each container).
> 
> A standard setup will have 1 manager, 1 container and 1 zone.
> 
> current() will give you the active one, typically where the pointer
> is.
> 
> Sebastian
> 
> -
> Using Tomcat but need to do more? Need to support web services,
> security? Get stuff done quickly with pre-integrated technology to
> make your job easier. Download IBM WebSphere Application Server
> v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___ enlightenment-devel
> mailing list enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] [PATCH] Add bgr 565 convert support to evas

2007-02-04 Thread Lars Munch
Hi

The attached patch adds "16bpp BGR 565 Converter Support" to evas.

Please apply.

-- Lars Munch

Index: configure.in
===
RCS file: /var/cvs/e/e17/libs/evas/configure.in,v
retrieving revision 1.199
diff -p -u -r1.199 configure.in
--- configure.in	4 Dec 2006 20:34:29 -	1.199
+++ configure.in	4 Feb 2007 20:09:29 -
@@ -1444,12 +1444,12 @@ AC_ARG_ENABLE(convert-8-rgb-111, 
 ## Convert to 16bpp RGB 565
 conv_16_rgb_565="no"
 conv_16_rgb_565="yes"
-AC_MSG_CHECKING(whether to build 16bpp 565 converter code)
+AC_MSG_CHECKING(whether to build 16bpp 565 rgb converter code)
 AC_ARG_ENABLE(convert-16-rgb-565, 
-  [  --enable-convert-16-rgb-565 enable 16bpp 565 converter code], [
+  [  --enable-convert-16-rgb-565 enable 16bpp rgb 565 converter code], [
   if test x"$enableval" = x"yes" ; then
 AC_MSG_RESULT(yes)
-AC_DEFINE(BUILD_CONVERT_16_RGB_565, 1, [16bpp 565 Converter Support])
+AC_DEFINE(BUILD_CONVERT_16_RGB_565, 1, [16bpp RGB 565 Converter Support])
 conv_16_rgb_565="yes"
   else
 AC_MSG_RESULT(no)
@@ -1458,7 +1458,30 @@ AC_ARG_ENABLE(convert-16-rgb-565, 
   ], [
   AC_MSG_RESULT($conv_16_rgb_565)
   if test x"$conv_16_rgb_565" = x"yes" ; then
-AC_DEFINE(BUILD_CONVERT_16_RGB_565, 1, [16bpp 565 Converter Support])
+AC_DEFINE(BUILD_CONVERT_16_RGB_565, 1, [16bpp RGB 565 Converter Support])
+  fi
+  ]
+)
+
+###
+## Convert to 16bpp BGR 565
+conv_16_bgr_565="no"
+conv_16_bgr_565="yes"
+AC_MSG_CHECKING(whether to build 16bpp 565 bgr converter code)
+AC_ARG_ENABLE(convert-16-bgr-565, 
+  [  --enable-convert-16-bgr-565 enable 16bpp bgr 565 converter code], [
+  if test x"$enableval" = x"yes" ; then
+AC_MSG_RESULT(yes)
+AC_DEFINE(BUILD_CONVERT_16_BGR_565, 1, [16bpp BGR 565 Converter Support])
+conv_16_bgr_565="yes"
+  else
+AC_MSG_RESULT(no)
+	conv_16_bgr_565="no"
+  fi
+  ], [
+  AC_MSG_RESULT($conv_16_bgr_565)
+  if test x"$conv_16_bgr_565" = x"yes" ; then
+AC_DEFINE(BUILD_CONVERT_16_BGR_565, 1, [16bpp BGR 565 Converter Support])
   fi
   ]
 )
@@ -2020,6 +2043,7 @@ echo "  8bpp RGB 121: $conv_
 echo "  8bpp RGB 111: $conv_8_rgb_111"
 # FIXME: add grayscale and B&W support
 echo "  16bpp RGB 565...: $conv_16_rgb_565"
+echo "  16bpp BGR 565...: $conv_16_bgr_565"
 echo "  16bpp RGB 555...: $conv_16_rgb_555"
 echo "  16bpp RGB 444...: $conv_16_rgb_444"
 echo "  16bpp RGB 565 (444 ipaq): $conv_16_rgb_ipq"
Index: src/lib/engines/common/evas_convert_main.c
===
RCS file: /var/cvs/e/e17/libs/evas/src/lib/engines/common/evas_convert_main.c,v
retrieving revision 1.6
diff -p -u -r1.6 evas_convert_main.c
--- src/lib/engines/common/evas_convert_main.c	6 Sep 2006 07:33:39 -	1.6
+++ src/lib/engines/common/evas_convert_main.c	4 Feb 2007 20:09:31 -
@@ -228,6 +228,38 @@ evas_common_convert_func_get(DATA8 *dest
 #endif
 	   }
 #endif
+#ifdef BUILD_CONVERT_16_BGR_565
+	 if ((rmask == 0x001f) && (gmask == 0x07e0) && (bmask == 0xf800))
+	   {
+#ifdef BUILD_CONVERT_16_RGB_ROT0
+		  if (rotation == 0)
+		{
+		   if ((!(w & 0x1)) && (!((int)dest & 0x3)))
+			 return evas_common_convert_rgba2_to_16bpp_bgr_565_dith;
+		   else
+			 return evas_common_convert_rgba_to_16bpp_bgr_565_dith;
+		}
+#endif
+#ifdef BUILD_CONVERT_16_RGB_ROT270
+		  if (rotation == 270)
+		{
+		   if ((!(w & 0x1)) && (!((int)dest & 0x3)))
+			 return evas_common_convert_rgba2_to_16bpp_bgr_565_dith_rot_270;
+		   else
+			 return evas_common_convert_rgba_to_16bpp_bgr_565_dith_rot_270;
+		}
+#endif
+#ifdef BUILD_CONVERT_16_RGB_ROT90
+		  if (rotation == 90)
+		{
+		   if ((!(w & 0x1)) && (!((int)dest & 0x3)))
+			 return evas_common_convert_rgba2_to_16bpp_bgr_565_dith_rot_90;
+		   else
+			 return evas_common_convert_rgba_to_16bpp_bgr_565_dith_rot_90;
+		}
+#endif
+	   }
+#endif
 #ifdef BUILD_CONVERT_16_RGB_555
 	 if ((rmask == 0x7c00) && (gmask == 0x03e0) && (bmask == 0x001f))
 	   {
Index: src/lib/engines/common/evas_convert_rgb_16.c
===
RCS file: /var/cvs/e/e17/libs/evas/src/lib/engines/common/evas_convert_rgb_16.c,v
retrieving revision 1.4
diff -p -u -r1.4 evas_convert_rgb_16.c
--- src/lib/engines/common/evas_convert_rgb_16.c	22 May 2005 02:49:48 -	1.4
+++ src/lib/engines/common/evas_convert_rgb_16.c	4 Feb 2007 20:09:31 -
@@ -264,6 +264,263 @@ evas_common_convert_rgba_to_16bpp_rgb_56
 #endif
 #endif
 
+#ifdef BUILD_CONVERT_16_BGR_565
+#ifdef BUILD_CONVERT_16_RGB_ROT0
+void
+evas_common_convert_rgba2_to_16bpp_bgr_565_dith (DATA32 *src, DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y, DATA8 *pal)

Re: [E-devel] What are E_Manager/Container/Zone ?

2007-02-04 Thread Sebastian Dransfeld
Simon TRENY wrote:
> Thanks, things are a lot clearer now :)
> 
> There is just one thing that I still don't understand. Why the E_Desks
> are contained by a E_Zone and not by a E_Manager directly? I thought
> that when you "join" two physical screens with xinerama, they both
> share the same virtual desktops no? (I never used Xinerama so I may be
> wrong...)
> Or maybe the E_Desks from 2 E_Zones that belong to the same E_Container
> are the same?

The virtual desks are for each zone. So when changing virtual desk with 
a pager when having xinerama only one physical screen will change it's view.

Sebastian

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Can't undertand engrave api

2007-02-04 Thread DaveMDS
Brian Mattern ha scritto:
> On Sun, Feb 04, 2007 at 04:54:44AM +0100, DaveMDS wrote:
>   
>> Hi all,
>> Have two problem with engrave:
>>
>> 1. What is the "state2" and "value2" param in:
>> engrave_program_action_set(ep, action,state,state2,value,value2)??
>> State/Value is the state to set in the target(s) in a STATE_SET action.
>> But what state2/value2 refer to?
>> 
>
> value2 is used as the y component of the various drag actions
>   action: DRAG_VAL_SET value value2
>
> state2 is used by SIGNAL_EMIT actions as the second param ('source')
>   action: SIGNAL_EMIT state state2
>   
>> 2. Where is the "name" and "source" params of the SIGNAL_EMIT action?
>> I cant find those value in engrave.
>> 
>
> state and state2 respectively
>
> maybe these should all be renamed as string_val, string_val2, double_val and
> double_val2?
>
> see engrave_out.c for more info on how internal fields map to edc fields
>
> rephorm
>
>
>   
Thanks!!
Dave
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
>
>   

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] edje_decc patch

2007-02-04 Thread DaveMDS

Hallo,
here's a patch for edje_decc that create a file called default.edc in 
the decompiled source dir.

The file contents is only a line that include the main edc file.
If the default.edc file exist none is created
With this patch I can open edj file from edje_editor (engrave run 
edje_decc and always open default.edc).


Thanks
Dave


Index: edje_decc.c
===
RCS file: /cvs/e/e17/libs/edje/src/bin/edje_decc.c,v
retrieving revision 1.18
diff -u -r1.18 edje_decc.c
--- edje_decc.c	23 May 2006 03:23:31 -	1.18
+++ edje_decc.c	5 Feb 2007 10:00:37 -
@@ -290,6 +290,15 @@
 	chmod(out, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IWGRP | S_IXGRP);
 #endif
 
+   if (strcmp(sf->name,"default.edc"))
+ {
+  snprintf(out, sizeof(out), "%s/default.edc", outdir);
+  printf("Output empty default.edc: %s\n", out);
+  f = fopen(out, "w");
+  fprintf(f, "#include \"%s\"\n", sf->name);
+  fclose(f);
+ }  
+ 
 	printf("\n*** CAUTION ***\n"
 	  "Please check the build script for anything malicious "
 	  "before running it!\n\n");
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel