Re: [E-devel] ecore_evas_geometry_get()

2007-01-21 Thread Ed Presutti
On Sun, 2007-01-14 at 20:03 -0600, Ed Presutti wrote:
> How do you correctly get the window position and size when using
> Ecore_Evas?
> 
> Here's a quick code snippet to demonstrate what i'm trying to do. I've
> correctly gotten the size of the object, but can't seem to get the
> window position right. This could just be a coding error on my part. :-)
> 

After further research, it appears that the width/height part always
break when using XRender, but work when using the Software engine. The
X/Y part always breaks on either engine.

Any ideas here?

> -
> Ecore_Evas * ee;
> Evas * evas;
> Evas_Object * widget;
> Evas_Coord x1, y1, w1, h1;
> Evas_Coord x2, y2, w2, h2;
> 
>  Set up and display here 
> 
> ecore_evas_geometry_get(ee, &x1, &y1, &w1, &h1);
> /* Returns x1 = 0, y1 = 0, w1 = 1, h1 = 1 */
> 
> evas_object_geometry_get(widget, &x2, &y2, &w2, &h2);
> /* Returns x2 = 0, y2 = 0, w2 = 280, h2 = 375 */
> 
> -
> 
> The ecore_evas_geometry_get() used to work for me and return the size
> and position of the window. It doesn't seem to do that any more. That's
> why I tried the evas_object_geometry_get() call.
> 
> I'm running CVS on Gentoo, built yesterday.
> 
> Thanks in advance,
> Ed Presutti (ekrunch on freenode)
> 
> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] xrender over ssh?

2007-01-21 Thread Andreas Volz
Hello,

I created an edje app with xrender engine. Works great on my local pc.
But of I open it with ssh from a remote pc I get only a empty window.
Only the polygon and lines I draw in C code is drawn. Could someone
explain why it doesn't work with ssh? I need to choose software_x11
engine to see the ejde file with ssh.

regards
Andreas

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Development of EFL without "make install"

2007-01-21 Thread Michael Jennings
On Sunday, 21 January 2007, at 19:12:33 (+0100),
Andreas Volz wrote:

> Could you explain such situation where is fails. Perhaps this is
> also usefull for my other projects.

I don't remember all the details of the many times it has failed on
me.  I do remember that in most cases the solution was to disable the
pkgconfig checks in configure.in, after which it worked perfectly.

Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <[EMAIL PROTECTED]>
n + 1, Inc., http://www.nplus1.net/   Author, Eterm (www.eterm.org)
---
 "USA Today has come out with a new survey:  Apparently three out of
  four people make up 75 percent of the population."
-- David Letterman

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Pager's defaut e_desk_show button

2007-01-21 Thread Massimo Maiurana
lok, il 21/01/2007 14:55, scrisse:
> Hello, 
> I use the pager with btn_drag (the drag and select button) set on button 2 and
> btn_noplace on button 1. And that commit : 
> http://e.kevb.net/cgi-bin/viewvc.cgi/e17/apps/e/src/modules/pager/e_mod_main.c?r1=1.202&r2=1.203
> Force me to use button 2 to select the active desktop when I click on the 
> pager.
> I dont' think someone would likely use another button than the button 1 for
> that action. Plus if he set the btn_drag on 0, he lost the ability to switch
> desktop by clicking on the pager. 

I've had the same problem, but deleting
~/.e/e/config/default/module.pager.cfg and restarting e17 solved it.

-- 
   Massimo Maiurana massimoragusa.linux.it
   http://massimo.solira.org   GPG keyID #7044D601

Articolo 11 - L'Italia ripudia la guerra come strumento di offesa
alla libertà degli altri popoli e come mezzo di risoluzione delle
controversie internazionali



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Development of EFL without "make install"

2007-01-21 Thread Tilman Sauerbeck
Andreas Volz [2007-01-21 16:24]:
> > Andreas Volz [2007-01-21 14:32]:
> > > [snip]
> > > And could someone explain why not use pkg-config. It's perfect for
> > > this work.
> > 
> > I tried to do that 3 years ago or so. IIRC raster claimed libpng.pc
> > wasn't available everywhere which would make it impossible for the EFL
> > to use it. However, libpng's pkg-config file has been shipped with
> > libpng for ages, so we should just switch over :/
> > 
> > Details might be found in the mailing list logs.
> 
> Evas uses yet pkg-config's macro PKG_CHECK_MODULES for various libs
> (XCB, DirectFB, GLITZ, librsvg, cairo, valgrind, fontconfig). So
> you need pgk-config in each case to install evas and so also E17. I see
> no reason why we shouldn't switch to pkg-config.

Ditto. Just wanted to mention that there was some opposition in the past
:D

Regards,
Tilman

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?


pgpNQiR74w2HW.pgp
Description: PGP signature
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Development of EFL without "make install"

2007-01-21 Thread Andreas Volz
Am Sun, 21 Jan 2007 12:39:36 -0500 schrieb Michael Jennings:

> On Sunday, 21 January 2007, at 14:32:14 (+0100),
> Andreas Volz wrote:
> 
> > And could someone explain why not use pkg-config. It's perfect for
> > this work.
> 
> pkgconfig is like nuclear power.  When it works, it's nice and clean
> and happy.  But when it doesn't, it's a freaking catastrophe.

Could you explain such situation where is fails. Perhaps this is also
usefull for my other projects.

regards
Andreas

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Development of EFL without "make install"

2007-01-21 Thread Michael Jennings
On Sunday, 21 January 2007, at 14:32:14 (+0100),
Andreas Volz wrote:

> And could someone explain why not use pkg-config. It's perfect for
> this work.

pkgconfig is like nuclear power.  When it works, it's nice and clean
and happy.  But when it doesn't, it's a freaking catastrophe.

Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <[EMAIL PROTECTED]>
n + 1, Inc., http://www.nplus1.net/   Author, Eterm (www.eterm.org)
---
 "No weapon formed against us shall prosper.  All those who rise
  against us shall fall.  I will not fear what the devil may bring
  me; I am a servant of God." -- Petra

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Development of EFL without "make install"

2007-01-21 Thread Andreas Volz
Am Sun, 21 Jan 2007 15:49:09 +0100 schrieb Tilman Sauerbeck:

> Andreas Volz [2007-01-21 14:32]:
> > [snip]
> > And could someone explain why not use pkg-config. It's perfect for
> > this work.
> 
> I tried to do that 3 years ago or so. IIRC raster claimed libpng.pc
> wasn't available everywhere which would make it impossible for the EFL
> to use it. However, libpng's pkg-config file has been shipped with
> libpng for ages, so we should just switch over :/
> 
> Details might be found in the mailing list logs.

Evas uses yet pkg-config's macro PKG_CHECK_MODULES for various libs
(XCB, DirectFB, GLITZ, librsvg, cairo, valgrind, fontconfig). So
you need pgk-config in each case to install evas and so also E17. I see
no reason why we shouldn't switch to pkg-config.

regards
Andreas

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Development of EFL without "make install"

2007-01-21 Thread Tilman Sauerbeck
Andreas Volz [2007-01-21 14:32]:
> [snip]
> And could someone explain why not use pkg-config. It's perfect for this
> work.

I tried to do that 3 years ago or so. IIRC raster claimed libpng.pc
wasn't available everywhere which would make it impossible for the EFL
to use it. However, libpng's pkg-config file has been shipped with libpng
for ages, so we should just switch over :/

Details might be found in the mailing list logs.

Regards,
Tilman

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?


pgp8s1eABQylz.pgp
Description: PGP signature
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Pager's defaut e_desk_show button

2007-01-21 Thread lok
Hello, 
I use the pager with btn_drag (the drag and select button) set on button 2 and
btn_noplace on button 1. And that commit : 
http://e.kevb.net/cgi-bin/viewvc.cgi/e17/apps/e/src/modules/pager/e_mod_main.c?r1=1.202&r2=1.203
Force me to use button 2 to select the active desktop when I click on the pager.
I dont' think someone would likely use another button than the button 1 for
that action. Plus if he set the btn_drag on 0, he lost the ability to switch
desktop by clicking on the pager. 

Can't we just re-set the test on ev->button == 1 ?

lok

(And there is an empty if on the function _pager_desk_cb_mouse_down
that should be cleaned imho)

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Development of EFL without "make install"

2007-01-21 Thread Andreas Volz
Hello,

While hacking around in EFL it's taking much time to do a "make
install" after changes to see the result in my app. Because of this I
like the --uninstalled option from pkg-config. I noticed that EFL uses
its own little helper scripts to get includes and libs. I modified the
evas script for a --uninstalled option. This is only a raw sketch of my
idea, but it seems to work. But the best solution is, in my eyes, to
use pkg-config.

Here is what I've changed:

Index: configure.in
===
RCS file: /var/cvs/e/e17/libs/evas/configure.in,v
retrieving revision 1.199
diff -u -u -r1.199 configure.in
--- configure.in4 Dec 2006 20:34:29 -   1.199
+++ configure.in21 Jan 2007 14:49:53 -
@@ -50,6 +50,14 @@
 fi
 AC_SUBST(PACKAGE_DATA_DIR)
 
+dnl Set PACKAGE SOURCE DIR in config.h.
+packagesrcdir=`cd $srcdir && pwd`
+
+dnl Subst PACKAGE_SOURCE_DIR
+PACKAGE_SOURCE_DIR="${packagesrcdir}"
+AC_SUBST(PACKAGE_SOURCE_DIR)
+AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}","")
+
 x_dir=""
 x_cflags=""
 x_libs=""

### next file 

Index: evas-config.in
===
RCS file: /var/cvs/e/e17/libs/evas/evas-config.in,v
retrieving revision 1.12
diff -u -u -r1.12 evas-config.in
--- evas-config.in  18 Nov 2006 02:54:34 -  1.12
+++ evas-config.in  21 Jan 2007 14:50:31 -
@@ -3,9 +3,11 @@
 [EMAIL PROTECTED]@
 [EMAIL PROTECTED]@
 exec_prefix_set=no
+uninstalled=no
+srcdir="@PACKAGE_SOURCE_DIR@/src"
 
 usage="\
-Usage: evas-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version]
[--libs] [--cflags]" +Usage: evas-config [--prefix[=DIR]]
[--exec-prefix[=DIR]] [--version] [--libs] [--cflags] [--uninstalled]" 
 if test $# -eq 0; then
   echo "${usage}" 1>&2
@@ -25,6 +27,9 @@
 exec_prefix=$optarg
   fi
   ;;
+--uninstalled)
+  uninstalled=yes
+  ;;
 --prefix)
   echo $prefix
   ;;
@@ -39,14 +44,30 @@
   echo @VERSION@
   ;;
 --cflags)
-  if test @prefix@/include != /usr/include ; then
-includes="[EMAIL PROTECTED]@/include"
+  if test $uninstalled = no; then
+if test -e "$srcdir/lib/Evas.h"; then
+  includes="-I$srcdir/lib"
+else
+  if test @prefix@/include != /usr/include ; then
+includes="[EMAIL PROTECTED]@/include"
+  fi
+fi
+  else
+includes="-I$srcdir/lib"
   fi
   echo $includes
   ;;
 --libs)
-  [EMAIL PROTECTED]@
-  echo $libdirs -levas @pthread_libs@ @dlopen_libs@ @eet_libs@
@FREETYPE_LIBS@ @FONTCONFIG_LIBS@
+  if test $uninstalled = no; then
+if test -e "$srcdir/lib/libevas.la"; then
+  libdirs="[EMAIL PROTECTED]@ $srcdir/lib/libevas.la"
+else
+  libdirs="[EMAIL PROTECTED]@ -levas"
+fi
+  else
+libdirs="[EMAIL PROTECTED]@ $srcdir/lib/libevas.la"
+  fi
+  echo $libdirs @pthread_libs@ @dlopen_libs@ @eet_libs@
@FREETYPE_LIBS@ @FONTCONFIG_LIBS@ ;;
 *)
   echo "${usage}" 1>&2

Then you simply need to symlink evas-config to a $PATH and compiling
against evas works wihout make install.

What do you think? For sure all *-config scripts needs to be modified
to get it working.

And could someone explain why not use pkg-config. It's perfect for this
work.

regards
Andreas

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] evas polygon patch

2007-01-21 Thread Andreas Volz
Hello,

attached is a patch to fix the polygon moving in evas. Thanks rephorm.

regards
Andreas? evas_polygon.patch
? src/lib/canvas/.evas_object_line.c.swp
Index: src/lib/canvas/evas_object_polygon.c
===
RCS file: /var/cvs/e/e17/libs/evas/src/lib/canvas/evas_object_polygon.c,v
retrieving revision 1.18
diff -u -u -r1.18 evas_object_polygon.c
--- src/lib/canvas/evas_object_polygon.c	16 Nov 2006 03:20:24 -	1.18
+++ src/lib/canvas/evas_object_polygon.c	21 Jan 2007 02:40:47 -
@@ -294,15 +294,17 @@
for (l = o->points; l; l = l->next)
  {
 	Evas_Polygon_Point *p;
-	int px, py;
+	//int px, py;
 
-	p = l->data;
-	px = evas_coord_world_x_to_screen(obj->layer->evas, p->x);
-	py = evas_coord_world_y_to_screen(obj->layer->evas, p->y);
+p = l->data;
+
+//px = evas_coord_world_x_to_screen(obj->layer->evas, p->x);
+	//py = evas_coord_world_y_to_screen(obj->layer->evas, p->y);
 	o->engine_data = obj->layer->evas->engine.func->polygon_point_add(obj->layer->evas->engine.data.output,
 	  obj->layer->evas->engine.data.context,
 	  o->engine_data,
-	  p->x + x, p->y + y);
+	  p->x + obj->cur.geometry.x + x, 
+  p->y + obj->cur.geometry.y + y);
  }
if (o->engine_data)
  obj->layer->evas->engine.func->polygon_draw(output,
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E CVS: proto urandom

2007-01-21 Thread [EMAIL PROTECTED]

> > > ...
> > > ...
> > 
> > The file "edje_etk.c" has several lines where there is
> > code like:   evas_object_color_set(o, 255, 255, 255, 0);
> > 
> > Are you *certain* that you want things like that?
> > (as opposed to perhaps evas_object_color_set(o, 0, 0, 0, 0))
> > 
> >jose.
> > 
> both of these have an alpha of 0, so what's the difference?
> 

They are different quadruples of numbers.. unless you
really know what may happen when you pass the former, it's not
good practice to do this (asuming that in this particular case
he really meant to set the alpha to 0).

   Evas will only guarantee to give the standard compositing
   results when premul colors are passed to it.

Even in this particular case where the alpha is 0 (and
when you do this kind of thing, it's very easy to also do it
for an alpha that isn't 0), you may still find that it makes a
'difference' -- eg. there are some tests that evas might do to
determine if a 'color' is zero, and do whatever is aproppiate
then.. but internally, the color may no longer exist as a
quadruple of ints, but rather as a single unsigned int, and then
it will simply test wether this is zero, rather than split the
color apart again, etc. This could merely slow things down.. or
possibly other stuff.

In other words: unless you relly know that you want
to use non-premul colors (for some special reason, and there are
some) --- use premul colors!

Ye has been warned.

jose.



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel