Re: [E-devel] edb SEGV under sparc-solaris 2.8

2005-04-20 Thread Lionel ORRY
Here is the part that makes it bug :
(B
(B#define SHALLOC_FRAGMENT 32
(B/*
(B* If there are at least SHALLOC_FRAGMENT additional bytes of
(B* memory, divide the chunk into two chunks.
(B*/
(Bif ((u_int8_t *)rp =
(B(u_int8_t *)elp-links + SHALLOC_FRAGMENT) {
(Bsp = rp;
(B//--- This instruction crashes -
(B*--sp = elp-len -
(B((u_int8_t *)rp - (u_int8_t *)elp-links);
(B//--
(Belp-len -= *sp + sizeof(size_t);
(Breturn (0);
(B}
(B
(BSo what do we have :
(B
(Brp = 0xff281794 -- (u_int8_t *)rp = "Cannot access memory at 0xff281794"
(B
(Bsp = 0xff281790 ('--sp' is applied) -- (u_int8_t *)sp = "Cannot access
(Bmemory at 0xff281790"
(B
(B(u_int8_t *)elp-links = -1 : i think it's ok.
(B
(Belp-len = 51008
(B
(BSo i guess the problem is first evaluating (u_int8_t *)rp, this pointer
(Bis not correct.
(B
(B
(BI have already heard that etox is being deprecated and replaced by
(Bevas_text_block, and i totally agree with the fact that it's a really
(Bminor issue ; you have many other priorities before that, and i can live
(Bwithout it begin corrected (yes i can ! ;-)).
(B
(BIf i have some free time, i'll try to correct it by myself. Don't waste
(Byour precious time ! There are ever-growing TODO lists to deal with, i
(Bguess you're not bored. :-p
(B
(BThanx for your answer. And for the hard work.
(B
(BCarsten Haitzler (The Rasterman) wrote:
(B
(BOn Tue, 19 Apr 2005 17:03:10 +0200 ORRY Lionel [EMAIL PROTECTED] babbled:
(B
(B  
(B
(BHi everybody  ;
(B
(Bjust for fun, i tried to compile the EFL in userspace on a SunBlade150 
(Bwith Solaris 2.8.
(BI got everything compiled and installed ; but i get a segfault on 
(B__edb_shalloc when i try to use an etox-based application, such as 
(Betox_test or ewl_test.
(B
(B
(B
(Bto be honest - we are working on deprecating etox - and thus edb will become 
(Bused less and less. it's already almost unused. :) that means it's likely not 
(Bworth hunting this bug down as 1. we don't run solaris and don't see the bug - 
(Band if we don't see it, we can't easily hunt it down, and even if we do.. our 
(B"Fixes" wont be useful for long :( if you can get us more gdb info that'd be 
(Buseful (listings, printings of the variable values etc.) as we need those to 
(Bhave a better idea of whats going wrong (eg is sp NULL? or what?) :)
(B
(B  
(B
(BHere is a backtrace with etox_test :
(B
(B#0  0xfec759f4 in __edb_shalloc (p=0xfe9602e0, len=536, align=4, 
(Bretp=0x53de8) at edb_salloc.c:120
(B#1  0xfec32308 in __memp_ropen (edbmp=0x53d98, path=0x0, 
(Bcachesize=40960, mode=384, is_private=1, flags=1) at mp_region.c:301
(B#2  0xfec2a834 in memp_open (path=0x0, flags=257, mode=384, 
(Bedbenv=0x53d10, retp=0x53c5c) at mp_open.c:71
(B#3  0xfec66f48 in edb_open (fname=0xffbec0a0 
(B"/home/perso/orry/share/etox/colors.db", type=DB_HASH, flags=16384, 
(Bmode=436, edbenv=0x0, edbinfo=0xffbec4a8, edbpp=0xffbec4f4) at edb.c:544
(B#4  0xfec486dc in __edb_nedbm_open (file=0x52bb8 
(B"/home/perso/orry/share/etox/colors", oflags=0, mode=436) at edbm.c:210
(B#5  0xfec09fc4 in e_db_open_read (file=0xff3820c8 
(B"/home/perso/orry/share/etox/colors.db") at e_db.c:302
(B#6  0xff380544 in _etox_style_color_init () at etox_style_color.c:116
(B#7  0xff37be8c in etox_style_new (evas=0x28ba8, text=0x53ac8 "The Etox 
(BTest utility consists in a series of test suites designed to exercise 
(Ball of the etox functions.", style=0x52348 "shadow") at etox_style.c:45
(B#8  0xff376bb0 in _etox_break_text (et=0x53838, text=0x53ac8 "The Etox 
(BTest utility consists in a series of test suites designed to exercise 
(Ball of the etox functions.") at etox.c:1142
(B#9  0xff375308 in etox_set_text (obj=0x53880, text=0x53ac8 "The Etox 
(BTest utility consists in a series of test suites designed to exercise 
(Ball of the etox functions.") at etox.c:376
(B#10 0x12064 in setup () at etox_test.c:303
(B#11 0x127b0 in main (argc=1, argv=0xffbece4c) at etox_test.c:425
(B
(BI know i'm not in the optimal conditions for testing, but maybe it will 
(Bhelp to find a new bug.
(B
(BThanx in advance.
(B
(BLionel
(B
(B
(B
(B---
(BThis SF.Net email is sponsored by: New Crystal Reports XI.
(BVersion 11 adds new functionality designed to reduce time involved in
(Bcreating, integrating, and deploying reporting solutions. Free runtime info,
(Bnew features, or free trial, at: http://www.businessobjects.com/devxi/728
(B___
(Benlightenment-devel mailing list
(Benlightenment-devel@lists.sourceforge.net
(Bhttps://lists.sourceforge.net/lists/listinfo/enlightenment-devel
(B
(B
(B
(B
(B
(B
(B---
(BThis SF.Net email is sponsored by: New Crystal Reports XI.
(BVersion 11 adds new functionality designed 

Re: [E-devel] short/hot keys

2005-04-20 Thread [EMAIL PROTECTED]
also the keybindings need to work off configuration and generic
 actions - like the button bindings do now. also to do bindings right
Who will define the key generic actions?
look at the old ecore code in ecore/src/e_x.c and ecore/src/e_ev_x.c
will see
we cant go putting random x code in e17 (well we CAN but its not the 
right place)
ok

unfortunately as it stands we cant really use this patch :/
I known it is only a test, that what you say, what sould I do to make a 
right solution...

thats ok - its better than my hungarian! :)
:)
also can you attach patches - they cant be applied if inline because 
of linewrapping :(
next time :)

Bye
  Godzzo

---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


RE: [E-devel] spanish translation

2005-04-20 Thread Ribas, Joan
Title: [E-devel] spanish translation






Hello (hola for 
Spanish)
Maybe Spanish E-community 
should join our efforts and coordinate our translations and actions in order to 
avoid duplication of work.
Another (good) idea would be 
creating a web-page for Spanish users of Enlightenment, with translated 
documents, tutorials.. this would help to spread Enlightenment.
Currently I'm in touch 
with Danky, if anyone wants to join us just email 
:)Joan


De: 
[EMAIL PROTECTED] en nombre de Luis 
GraciaEnviado el: mar 19/04/2005 23:42Para: 
enlightenment-devel@lists.sourceforge.netAsunto: [E-devel] spanish 
translation

Hi everybody!I am new to the list, but I have been using 
e16 for some years now. Iwould like to help with the spanish translation in 
e17. I have seen thees.po file is there but the translations are 
empty.If you need a translator, please, let me know. I can manage myself 
withcvs at sf.net, but any additional instructions (if any) would be 
wellcome.Best,LuisPS: sorry for the duplicates of this 
message, I sent the first from thewrong 
account---This 
SF.Net email is sponsored by: New Crystal Reports XI.Version 11 adds new 
functionality designed to reduce time involved increating, integrating, and 
deploying reporting solutions. Free runtime info,new features, or free 
trial, at: http://www.businessobjects.com/devxi/728___enlightenment-devel 
mailing listenlightenment-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/enlightenment-devel




[E-devel] polish translation

2005-04-20 Thread Grzegorz Gaczyński
hello.
this is my polish translation, attached as pl.po

any polish users are free to comment or send me feedback


-- 
Grzegorz Gaczyski [EMAIL PROTECTED]
Linux user# 172707 Icq# 11422711 Gg# 1765546
./configure --enable-freedom --disable-softwarepatents=all


pl.po
Description: Binary data


Re: [E-devel] pt.po is on cvs but it seems to be pt_br.po

2005-04-20 Thread Paulo Jorge de Oliveira Cantante de Matos

Carsten Haitzler said:

 definitely. basically the way i am doing things right now is:
 the first translation for a language (es, pt etc.) becomes the
 default until someone provides more specific translations (eg
 pt_BR vs pt_PT). so that's why :) we are happy to accept
 multiple translations. it would be useful if all the speakers
 of that language could self-organise on this list or via other
 means to make check all the .po setups are right in e and that
 we have the correct translations under the correct locales etc.
 and make sure it's kept up to date - maybe every month or so :)


Ok, so I'll contact the pt.po translator to create pt_PT.po and
pt_BR.po and to update them. If he accepts doing this with me,
we'll soon send updated version of these 2 files.


 Cheers,

 --
 Paulo Jorge Matos - pocm at sat inesc-id pt
 Web: http://sat.inesc-id.pt/~pocm
 Computer and Software Engineering
 INESC-ID - SAT Group



 ---
 This SF.Net email is sponsored by: New Crystal Reports XI.
 Version 11 adds new functionality designed to reduce time
 involved in
 creating, integrating, and deploying reporting solutions.
 Free runtime info,
 new features, or free trial, at:
 http://www.businessobjects.com/devxi/728
 ___
 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)[EMAIL PROTECTED]
 $BMg9%B?(B
 [EMAIL PROTECTED]
 Tokyo, Japan ($BEl5~(B $BF|K\(B)


 ---
 This SF.Net email is sponsored by: New Crystal Reports XI.
 Version 11 adds new functionality designed to reduce time
 involved in
 creating, integrating, and deploying reporting solutions. Free
 runtime info,
 new features, or free trial, at:
 http://www.businessobjects.com/devxi/728
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel



-- 
Paulo Jorge Matos - pocm at sat inesc-id pt
Web: http://sat.inesc-id.pt/~pocm
Computer and Software Engineering
INESC-ID - SAT Group



---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Ecore LDFLAGS - handle them like Esmart?

2005-04-20 Thread Tilman Sauerbeck
Carsten Haitzler [EMAIL PROTECTED] [2005-04-20 11:56]:
  I suggest to handle this the same way we do it in Esmart:
  ecore-config --libs only includes -lecore, if you need the
  subsystems, you'll have to add the other linker switches yourself.
 
 hmm - i see not big problem with this - as long as everything updates to 
 match... i guess we can just say fuck it to any system that doesn't handle 
 shared lib linking :) (ecore_x, ecore_evas etc.)

Not sure I understood you correctly - do you agree with my suggestion?

-- 
Regards,
Tilman


---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] spanish translation

2005-04-20 Thread Luis Gracia
Ribas, Joan wrote:

 Hello (hola for Spanish)
 Maybe Spanish E-community should join our efforts and coordinate our
translations and actions in order to avoid duplication of work.
 Another (good) idea would be creating a web-page for Spanish users of
Enlightenment, with translated documents, tutorials.. this would help
to spread Enlightenment.

 Currently I'm in touch with Danky, if anyone wants to join us
just email :)

  Joan

I think it is a great idea. Count on me.

Luis



Luis Gracia, PhD
Dept. Physiology  Biophysics  Mt Sinai School of Medicine
One Gustave L. Levy Place New York NY 10029
  [EMAIL PROTECTED]
Tel: (212) 241-0858 Fax: (212) 860-3369

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Initial e17 spanish support

2005-04-20 Thread Luis Gracia
About the es_AR or just es issue. I think it should be just es, and all
(Bcountry variations should default to es, unless somebody from one of
(Bthose countries wants a special translation. I would like to stress out
(Bhere that spanish from spain is es_ES and not es (which is just spanish
(Bfor everybody). The list of country variations should include (I took it
(Bfrom firefox language selection, are we missing any?): AR BO CL CO CR DO
(BEC SV GT HN MX NI PA PY PE PR ES UY VE
(B
(BBest,
(B
(BLuis
(B
(BCarsten Haitzler (The Rasterman) wrote:
(B
(BOn Tue, 19 Apr 2005 17:50:15 +0100 "jacinto calvo sintes" [EMAIL PROTECTED] 
(Bbabbled:
(B
(B  
(B
(BHy, I did a general Spanish translation for e16 named es.po and still working
(Bon, i think that for just 'menus' or 'options' from a desktop environment
(B
(B
(B
(Byes. we can do with multiple translators helping out. it is an on-going job. 
(Bevery time we change, add, or delete a string in e17 that can be displayed, 
(Bthe translations need to update to match it. the more people following and 
(Bupdating, the better the quality of the translation will be (that means more 
(Bstrings will be covered instead of many falling back to the default english 
(Bstrings) :)
(B
(B  
(B
(Bdon't hav such as many different words in each spanish derivation to make more
(Bthan one translated file. anyway, if that's very important for some spanish
(Buser (not for me) we could discuss all spanish e-users for all this words that
(Banyone thought as funny translation. (we could do a quite good translation for
(Ball kinds ;) )
(B
(BI hope also to finish translating soon MAIN file from EDOX; if anyone wants to
(Btake a look at it just mail me ;)
(B
(Bthanks 
(B
(BOn Fri, 15 Apr 2005 12:26:29 +0900, Carsten Haitzler (The Rasterman) wrote
(B
(B
(BOn Thu, 14 Apr 2005 23:51:40 -0300 Bruno Deferrari 
(B[EMAIL PROTECTED] babbled:
(B
(B  
(B
(BOn 4/14/05, The Rasterman Carsten Haitzler [EMAIL PROTECTED] wrote:
(B
(B
(BOn Thu, 14 Apr 2005 21:13:39 -0300 Matias Aguirre [EMAIL PROTECTED]
(B  
(B
(Bbabbled:
(B
(B
(Bhmm - ok. i know south american spanish is different in pronunciation
(B  
(B
(Bto spanish in spain, but for written spanish - are they different? basically
(B  
(B
(Bshould this be es_AR or just es? (basically if we have es and es_AR what
(Babout es_MX es_CO es_VE es_PA es_CI es_PE es_UR, es_PG es_BO etc. etc.
(B
(B
(Braster, You forgot es_UY ;)
(B
(B
(Boh that was meant to be es_UR :0 i don't know the 2 letter country 
(Bcodes for them all. my point was that is there something to cover 
(Ball these countries? :)
(B
(B  
(B
(BMatias, si necesit__s una mano, avisame. Yo ten__a ganas de traducir el
(Bmanual que est__ en lude.net/edocs , pero no se si no lo est__ haciendo
(Bnadie ya, y aparte, est__ bastante largo
(B
(B
(Bsomeone is already working on translating it - i have a mail in my 
(Binbox about it. (i'm tyring to clean out my inbox... but failing 
(Bmiserably) :)
(B
(B  
(B
(BCualquier cosa, me avis__s,
(BSaludos.
(B
(B
(B
(B- Codito, ergo sum - "I code, therefore I am" --
(BThe Rasterman (Carsten Haitzler)[EMAIL PROTECTED]
(B$BMg9%B?(B  [EMAIL PROTECTED]
(BTokyo, Japan ($BEl5~(B $BF|K\(B)
(B
(B---
(BSF email is sponsored by - The IT Product Guide
(BRead honest  candid reviews on hundreds of IT Products from real users.
(BDiscover which products truly live up to the hype. Start reading now.
(Bhttp://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
(B___
(Benlightenment-devel mailing list
(Benlightenment-devel@lists.sourceforge.net
(Bhttps://lists.sourceforge.net/lists/listinfo/enlightenment-devel
(B  
(B
(BJacinto Calvo Sintes /// netman2_seriousman.org ///Linux User #142232 
(Bjacinto_seriousworks.net///
(Bwww.seriousworks.net /// SeriousWorks Solutions SCP
(B
(B
(B
(B---
(BThis SF.Net email is sponsored by: New Crystal Reports XI.
(BVersion 11 adds new functionality designed to reduce time involved in
(Bcreating, integrating, and deploying reporting solutions. Free runtime info,
(Bnew features, or free trial, at: http://www.businessobjects.com/devxi/728
(B___
(Benlightenment-devel mailing list
(Benlightenment-devel@lists.sourceforge.net
(Bhttps://lists.sourceforge.net/lists/listinfo/enlightenment-devel
(B
(B
(B
(B
(B
(B  
(B
(B
(B
(B
(B
(B
(B
(B---
(BThis SF.Net email is sponsored by: New Crystal Reports XI.
(BVersion 11 adds new functionality designed to reduce time involved in
(Bcreating, integrating, and deploying reporting solutions. Free 

[E-devel] e_ipc/e_font cleanup

2005-04-20 Thread Stafford Horne
Hello all, 

If anyone has tried to write some IPC code they know that it can be
tedious to pack and unpack data.  Well, a while back I merged some code
from raster's evoak library/test app into ecore_ipc for handling data
packing/unpacking. 

Now I guess some of you guys might not be so clear on how to use it so I
converted most of the e_ipc in e17 to use these macros.  Now everyone
should be able to see what it is useful for.  

Also, There were some problems with the e_font stuff I submitted a while
ago so I have a few fixes for that in the patch. 

Everything should be !ROCK SOLID! now fingers crossed

btw, the ecore_ipc patch I just sent is required for one of the IPC
calls in here to work correctly.

Stafford
Index: e_font.c
===
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_font.c,v
retrieving revision 1.3
diff -u -r1.3 e_font.c
--- e_font.c	13 Apr 2005 06:03:49 -	1.3
+++ e_font.c	20 Apr 2005 15:38:07 -
@@ -8,17 +8,12 @@
  * - use e_path to search for available fonts
  */
 
-static Evas_List *_e_font_defaults = NULL;	/* MRU E_Font_Default */
-static Evas_List *_e_font_fallbacks = NULL;	/* E_Font_Fallback */
-
 static Evas_List *_e_font_font_dir_available_get (Evas_List * available_fonts, const char *font_dir);
 
 int
 e_font_init(void)
 {
-   /* just get the pointers into the config */
-   _e_font_defaults = e_config-font_defaults;
-   _e_font_fallbacks = e_config-font_fallbacks;
+   /* all init stuff is in e_config */
return 1;
 }
 
@@ -38,7 +33,7 @@
E_Font_Default *efd;

/* setup edje fallback list */
-   next = _e_font_fallbacks;
+   next = e_config-font_fallbacks;
if (next)
  {
 	eff = evas_list_data(next);
@@ -62,12 +57,10 @@
  edje_fontset_append_set(buf);

/* setup edje text classes */
-   next = _e_font_defaults;
-   while (next)
+   for(next = e_config-font_defaults; next; next = evas_list_next(next))
  {
 	efd = evas_list_data(next);
 	edje_text_class_set(efd-text_class, efd-font, efd-size);
-	next = evas_list_next(next);
  }
 }
 
@@ -86,32 +79,30 @@
 void
 e_font_available_list_free(Evas_List * available)
 {
-   char *font_name;
-   Evas_List *l;
+   E_Font_Available *efa;

-   for (l = available; l; l = l-next)
+   while(available)
  {
-	font_name = evas_list_data(l);
-	available = evas_list_remove(available, l);
-	free(font_name);
+	efa = available-data;
+	available = evas_list_remove_list(available, available);
+	E_FREE(efa-name);
+	E_FREE(efa);	
  }
 }
 
 void
 e_font_fallback_clear(void)
 {
-   Evas_List *next;
+   E_Font_Fallback *eff;

-   next = _e_font_fallbacks;
-   while (next)
- {
-	E_Font_Fallback *eff;
-	
-	eff = evas_list_data(next);
-	_e_font_fallbacks = evas_list_remove_list(_e_font_fallbacks, next);
+   while(e_config-font_fallbacks)
+ {	
+	eff = e_config-font_fallbacks-data;
+	e_config-font_fallbacks = evas_list_remove_list(
+	e_config-font_fallbacks, 
+	e_config-font_fallbacks);
 	E_FREE(eff-name);
 	E_FREE(eff);
-	next = evas_list_next(next);
 }
 }
 
@@ -124,7 +115,7 @@

eff = E_NEW(E_Font_Fallback, 1);
eff-name = strdup(font);
-   _e_font_fallbacks = evas_list_append(_e_font_fallbacks, eff);
+   e_config-font_fallbacks = evas_list_append(e_config-font_fallbacks, eff);
 }
 
 void
@@ -136,35 +127,34 @@

eff = E_NEW(E_Font_Fallback, 1);
eff-name = strdup(font);
-   _e_font_fallbacks = evas_list_prepend(_e_font_fallbacks, eff);
+   e_config-font_fallbacks = evas_list_prepend(e_config-font_fallbacks, eff);
 }
 
 void
 e_font_fallback_remove(const char *font)
 {
Evas_List *next;
-   
-   next = _e_font_fallbacks;
-   while (next)
+
+   for(next = e_config-font_fallbacks; next; next = evas_list_next(next))
  {
 	E_Font_Fallback *eff;
 	
 	eff = evas_list_data(next);
 	if (!strcmp(eff-name, font))
 	  {
-	 _e_font_fallbacks = evas_list_remove_list(_e_font_fallbacks, next);
+	 e_config-font_fallbacks = evas_list_remove_list(
+	e_config-font_fallbacks, next);
 	 E_FREE(eff-name);
 	 E_FREE(eff);
 	 break;
 	  }
-	next = evas_list_next(next);
  }
 }
 
 Evas_List *
 e_font_fallback_list(void)
 {
-   return _e_font_fallbacks;
+   return e_config-font_fallbacks;
 }
 
 void
@@ -174,8 +164,7 @@
Evas_List *next;
 
/* search for the text class */
-   next = _e_font_defaults;
-   while (next)
+   for(next = e_config-font_defaults; next; next = evas_list_next(next))
  {
 	efd = evas_list_data(next);
 	if (!strcmp(efd-text_class, text_class))
@@ -184,11 +173,12 @@
 	 efd-font = strdup(font);
 	 efd-size = size;
 	 /* move to the front of the list */
-	 _e_font_defaults = evas_list_remove_list(_e_font_defaults, next);
-	 _e_font_defaults = evas_list_prepend(_e_font_defaults, efd);
+	 e_config-font_defaults = evas_list_remove_list(
+	e_config-font_defaults, next);
+	 e_config-font_defaults = evas_list_prepend(
+	

[E-devel] ecore_ipc macros formatting + fix

2005-04-20 Thread Stafford Horne
Hello, 

I made the formatting a little more consistent int the Ecore_Ipc.h. 

Also, 

for the STRUCT_ENC function, if the structure to encode is NULL we
should set the size to 0 and return NULL, So I made a change to
accommodate this.  

Stafford
Index: Ecore_Ipc.h
===
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_ipc/Ecore_Ipc.h,v
retrieving revision 1.7
diff -u -r1.7 Ecore_Ipc.h
--- Ecore_Ipc.h	9 Apr 2005 00:07:32 -	1.7
+++ Ecore_Ipc.h	20 Apr 2005 15:43:43 -
@@ -58,46 +58,46 @@
 /* 1, 2, 4 and 8 byte datatypes */
 /* unpacking */
 #define ECORE_IPC_GET64(v)\
-			{ \
-			p-v = ECORE_IPC_SWAP2CPU64(*(long long *)(ptr)); \
-			ptr += 8; \
-			}
+{ \
+	p-v = ECORE_IPC_SWAP2CPU64(*(long long *)(ptr)); \
+	ptr += 8; \
+}
 #define ECORE_IPC_GET32(v)\
-			{ \
-			p-v = ECORE_IPC_SWAP2CPU32(*(int *)(ptr)); \
-			ptr += 4; \
-			}
+{ \
+	p-v = ECORE_IPC_SWAP2CPU32(*(int *)(ptr)); \
+	ptr += 4; \
+}
 #define ECORE_IPC_GET16(v)\
-			{ \
-			p-v = ECORE_IPC_SWAP2CPU16(*(short *)(ptr)); \
-			ptr += 2; \
-			}
+{ \
+	p-v = ECORE_IPC_SWAP2CPU16(*(short *)(ptr)); \
+	ptr += 2; \
+}
 #define ECORE_IPC_GET8(v) \
-			{ \
-			p-v = ECORE_IPC_SWAP2CPU8(*(char *)(ptr)); \
-			ptr += 1; \
-			}
+{ \
+	p-v = ECORE_IPC_SWAP2CPU8(*(char *)(ptr)); \
+	ptr += 1; \
+}
 /* packing */
 #define ECORE_IPC_PUT64(v)\
-			{ \
-			*(long long *)(ptr) = ECORE_IPC_SWAP2NET64(p-v); \
-			ptr += 8; \
-			}
+{ \
+	*(long long *)(ptr) = ECORE_IPC_SWAP2NET64(p-v); \
+	ptr += 8; \
+}
 #define ECORE_IPC_PUT32(v)\
-			{ \
-			*(int *)(ptr) = ECORE_IPC_SWAP2NET32(p-v); \
-			ptr += 4; \
-			}
+{ \
+	*(int *)(ptr) = ECORE_IPC_SWAP2NET32(p-v); \
+	ptr += 4; \
+}
 #define ECORE_IPC_PUT16(v)\
-			{ \
-			*(short *)(ptr) = ECORE_IPC_SWAP2NET16(p-v); \
-			ptr += 2; \
-			}
+{ \
+	*(short *)(ptr) = ECORE_IPC_SWAP2NET16(p-v); \
+	ptr += 2; \
+}
 #define ECORE_IPC_PUT8(v) \
-			{ \
-			*(char *)(ptr) = ECORE_IPC_SWAP2NET8(p-v); \
-			ptr += 1; \
-			}
+{ \
+	*(char *)(ptr) = ECORE_IPC_SWAP2NET8(p-v); \
+	ptr += 1; \
+}
 /* padding data */
 #define ECORE_IPC_PAD8()   ptr += 1
 #define ECORE_IPC_PAD16()  ptr += 2
@@ -113,18 +113,18 @@
 /* strings */
 #define ECORE_IPC_CHEKS() if (*((unsigned char *)d + s - 1) != 0) return 0;
 #define ECORE_IPC_GETS(v) \
-			{ \
-			if (ptr  ((unsigned char *)d + s)) \
-{ \
-p-v = ptr; \
-ptr += strlen(p-v) + 1; \
-} \
-			} 
+{ \
+	if (ptr  ((unsigned char *)d + s)) \
+	{ \
+		p-v = ptr; \
+		ptr += strlen(p-v) + 1; \
+	} \
+} 
 #define ECORE_IPC_PUTS(v, l)\
-			{ \
-			strcpy(ptr, p-v); \
-			ptr += l + 1; \
-			}
+{ \
+	strcpy(ptr, p-v); \
+	ptr += l + 1; \
+}
 
 /* handy to calculate what sized block we need to alloc */
 #define ECORE_IPC_SLEN(l, v) ((l = strlen(p-v)) + 1)
@@ -136,36 +136,36 @@
 #define ECORE_IPC_DEC_EVAS_LIST_PROTO(x) static Evas_List *x(void *d, int s)
 #define ECORE_IPC_ENC_EVAS_LIST_PROTO(x) static void *x(Evas_List *lp, int *s)
 
+
 /* decoder setup - saves typing. requires data packet of exact size, or fail */
 #define ECORE_IPC_DEC_STRUCT_HEAD_EXACT(typ, x) \
-	 typ *p; \
-	 unsigned char *ptr; \
- p = (typ *)pp; \
- if (!d) return 0; \
- if (s != (x)) return 0; \
-	 ptr = d;
+typ *p; \
+unsigned char *ptr; \
+p = (typ *)pp; \
+if (!d) return 0; if (s != (x)) return 0; \
+ptr = d;
 /* decoder setup - saves typing. requires data packet of a minimum size */
 #define ECORE_IPC_DEC_STRUCT_HEAD_MIN(typ, x) \
-	 typ *p; \
-	 unsigned char *ptr; \
- p = (typ *)pp; \
- if (!d) return 0; \
- if (s  (x)) return 0; \
-	 ptr = d;
+typ *p; \
+unsigned char *ptr; \
+p = (typ *)pp; \
+if (!d) return 0; if (s  (x)) return 0; \
+ptr = d;
 /* footer for the hell of it */
 #define ECORE_IPC_DEC_STRUCT_FOOT() return 1
 /* header for encoder - gives native strct type and size of flattened packet */
 #define ECORE_IPC_ENC_STRUCT_HEAD(typ, sz) \
- typ *p; \
- unsigned char *d, *ptr; \
- int len; \
- p = (typ *)pp; \
- *s = 0; \
- len = sz; \
- d = malloc(len); \
- if (!d) return NULL; \
- *s = len; \
- ptr = d;
+typ *p; \
+unsigned char *d, *ptr; \
+int len; \
+*s = 0; \
+if(!pp) return NULL; \
+p = (typ *)pp; \
+len = sz; \
+d = malloc(len); \
+if (!d) return NULL; \
+*s = len; \
+ptr = d;
 /* footer for the hell of it */
 #define ECORE_IPC_ENC_STRUCT_FOOT() return d
 


RE: [E-devel] spanish translation

2005-04-20 Thread Brizuela Ezequiel Hector
Title: RE: [E-devel] spanish translation





Cuenten conmigo para el proyecto!.
Les cuento que estoy trabajando en un Editor de texto (eNotes) basado en EFL avanzado, con posibilidad de coloreo de sintaxis y otros chiches que quiero ponerle.

Pueden contactarse conmigo por privado.


Get another one for the proyect.
Also, I'm working in a text editor(eNotes) based on EFL, with syntax highlight and some others gadgets that i wanna put in.

Greetings/Saludos.


QliX=D![aka Ezequiel Brizuela]


-Mensaje original-
De: Luis Gracia [mailto:[EMAIL PROTECTED]]
Enviado el: Miércoles, 20 de Abril de 2005 12:29
Para: enlightenment-devel@lists.sourceforge.net
CC: Ribas, Joan
Asunto: Re: [E-devel] spanish translation



Ribas, Joan wrote:

 Hello (hola for Spanish)
 Maybe Spanish E-community should join our efforts and coordinate our
translations and actions in order to avoid duplication of work.
 Another (good) idea would be creating a web-page for Spanish users of
Enlightenment, with translated documents, tutorials.. this would help
to spread Enlightenment.

 Currently I'm in touch with Danky, if anyone wants to join us
just email :)

 Joan


I think it is a great idea. Count on me.


Luis




Luis Gracia, PhD
Dept. Physiology  Biophysics Mt Sinai School of Medicine
One Gustave L. Levy Place New York NY 10029
 [EMAIL PROTECTED]
Tel: (212) 241-0858 Fax: (212) 860-3369


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel





[E-devel] Re: E CVS: apps/e vapier

2005-04-20 Thread Michael Jennings
On Wednesday, 20 April 2005, at 08:09:08 (-0700),
E CVS List wrote:

 use an install hook to setuid freqset thus avoiding mkinstalldir issues with 
 diff versions of automake
 ===
 RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/cpufreq/Makefile.am,v
 retrieving revision 1.7
 retrieving revision 1.8
 diff -u -3 -r1.7 -r1.8
 --- Makefile.am   20 Apr 2005 14:51:37 -  1.7
 +++ Makefile.am   20 Apr 2005 15:09:08 -  1.8
 @@ -5,9 +5,6 @@
  filesdir = $(libdir)/enlightenment/modules/$(MODULE)
  files_DATA = \
  module_icon.png
 -freqsetdir = $(libdir)/enlightenment/modules/$(MODULE)
 -freqset_DATA = \
 -freqset$(EXEEXT)
  
  EXTRA_DIST = $(files_DATA)
  
 @@ -28,16 +25,13 @@
  module_la_LDFLAGS  = -module -avoid-version
  module_la_DEPENDENCIES = $(top_builddir)/config.h
  
 -all-local: freqset$(EXEEXT)
 +freqsetdir = $(pkgdir)
 +freqset_DATA = \
 +freqset$(EXEEXT)
  setuid_root_mode = a=rx,u+s
  
 -INSTALL_SU = \
 -  test -z $(pkgdir) || $(MKINSTALLDIRS) $(DESTDIR)$(pkgdir); \
 -  echo $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL) -m 
 $(setuid_root_mode) freqset$(EXEEXT) $(DESTDIR)$(pkgdir)/freqset$(EXEEXT); \
 -  $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL) -m 
 $(setuid_root_mode) freqset$(EXEEXT) $(DESTDIR)$(pkgdir)/freqset$(EXEEXT);
 -
 -install-freqsetDATA: freqset$(EXEEXT)
 - @$(INSTALL_SU)
 +install-data-hook:
 + @chmod $(setuid_root_mode) $(DESTDIR)$(freqsetdir)/freqset$(EXEEXT)

I think you want a - sign, not an @ sign, there.  @ sign only
suppresses output.  You need the - to make sure failure of that line
doesn't halt the build.

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)
---
 Temper is the one thing you can't get rid of by losing it.
 -- Jack Nicholson, Anger Management


---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] spanish translation

2005-04-20 Thread Enrique Ramirez
es:
Bueno yo no utilizo los locales en español, pero puedo ayudar si es necesario. 

en:
Even though I don't use spanish locales, I'm willing to help out any way I can.

  Also, I'm working in a text editor(eNotes) based on EFL, with syntax
  highlight and some others gadgets that i wanna put in.

:) awesome, I'm looking forward to testing it!

-- 
// --
Enrique Ramirez Irizarry
Lead Developer 
Indie Code Labs
[ http://www.indiecodelabs.com ]


---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Initial e17 spanish support

2005-04-20 Thread Luis Gracia
Hi, I quite don't agree on es_LA, LA is actually the country code for
(B"LAO PEOPLE'S DEMOCRATIC REPUBLIC". I would just leave it as es. Here
(Bare some definitions about this codes:
(Bhttp://www.openi18n.org/spec/ldml/1.0/ldml-spec.htm
(Bhttp://www.loc.gov/standards/iso639-2/englangn.html#st
(Bhttp://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html
(B
(B
(BLuis
(B
(BBrizuela Ezequiel Hector wrote:
(B
(B I agree.
(B Or maybe es_LA? for Latin America?
(B Just my 2 cents.
(B
(B -Mensaje original-
(B De: Luis Gracia [mailto:[EMAIL PROTECTED]
(B Enviado el: Miercoles, 20 de Abril de 2005 12:45
(B Para: enlightenment-devel@lists.sourceforge.net
(B CC: Carsten Haitzler (The Rasterman)
(B Asunto: Re: [E-devel] Initial e17 spanish support
(B
(B
(B About the es_AR or just es issue. I think it should be just es, and all
(B country variations should default to es, unless somebody from one of
(B those countries wants a special translation. I would like to stress out
(B here that spanish from spain is es_ES and not es (which is just spanish
(B for everybody). The list of country variations should include (I took it
(B from firefox language selection, are we missing any?): AR BO CL CO CR DO
(B EC SV GT HN MX NI PA PY PE PR ES UY VE
(B
(B Best,
(B
(B Luis
(B
(B Carsten Haitzler (The Rasterman) wrote:
(B
(B On Tue, 19 Apr 2005 17:50:15 +0100 "jacinto calvo sintes"
(B [EMAIL PROTECTED] babbled:
(B 
(B 
(B 
(B Hy, I did a general Spanish translation for e16 named es.po and
(B still working
(B on, i think that for just 'menus' or 'options' from a desktop
(B environment
(B 
(B 
(B 
(B yes. we can do with multiple translators helping out. it is an
(B on-going job. every time we change, add, or delete a string in e17
(B that can be displayed, the translations need to update to match it.
(B the more people following and updating, the better the quality of the
(B translation will be (that means more strings will be covered instead
(B of many falling back to the default english strings) :)
(B
(B 
(B 
(B 
(B don't hav such as many different words in each spanish derivation to
(B make more
(B than one translated file. anyway, if that's very important for some
(B spanish
(B user (not for me) we could discuss all spanish e-users for all this
(B words that
(B anyone thought as funny translation. (we could do a quite good
(B translation for
(B all kinds ;) )
(B 
(B I hope also to finish translating soon MAIN file from EDOX; if
(B anyone wants to
(B take a look at it just mail me ;)
(B 
(B thanks
(B 
(B On Fri, 15 Apr 2005 12:26:29 +0900, Carsten Haitzler (The Rasterman)
(B wrote
(B 
(B 
(B On Thu, 14 Apr 2005 23:51:40 -0300 Bruno Deferrari
(B [EMAIL PROTECTED] babbled:
(B 
(B 
(B 
(B On 4/14/05, The Rasterman Carsten Haitzler [EMAIL PROTECTED]
(B wrote:
(B 
(B 
(B On Thu, 14 Apr 2005 21:13:39 -0300 Matias Aguirre
(B [EMAIL PROTECTED]
(B 
(B 
(B babbled:
(B 
(B 
(B hmm - ok. i know south american spanish is different in
(B pronunciation
(B 
(B 
(B to spanish in spain, but for written spanish - are they different?
(B basically
(B 
(B 
(B should this be es_AR or just es? (basically if we have es and es_AR
(B what
(B about es_MX es_CO es_VE es_PA es_CI es_PE es_UR, es_PG es_BO etc. etc.
(B 
(B 
(B raster, You forgot es_UY ;)
(B 
(B 
(B oh that was meant to be es_UR :0 i don't know the 2 letter country
(B codes for them all. my point was that is there something to cover
(B all these countries? :)
(B 
(B 
(B 
(B Matias, si necesit__s una mano, avisame. Yo ten__a ganas de
(B traducir el
(B manual que est__ en lude.net/edocs , pero no se si no lo est__
(B haciendo
(B nadie ya, y aparte, est__ bastante largo
(B 
(B 
(B someone is already working on translating it - i have a mail in my
(B inbox about it. (i'm tyring to clean out my inbox... but failing
(B miserably) :)
(B 
(B 
(B 
(B Cualquier cosa, me avis__s,
(B Saludos.
(B 
(B 
(B 
(B - Codito, ergo sum - "I code, therefore I am"
(B --
(B The Rasterman (Carsten Haitzler) [EMAIL PROTECTED]
(B $BMg9%B?(B [EMAIL PROTECTED]
(B Tokyo, Japan ($BEl5~(B $BF|K\(B)
(B 
(B ---
(B SF email is sponsored by - The IT Product Guide
(B Read honest  candid reviews on hundreds of IT Products from real
(B users.
(B Discover which products truly live up to the hype. Start reading now.
(B http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
(B http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
(B ___
(B enlightenment-devel mailing list
(B enlightenment-devel@lists.sourceforge.net
(B https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
(B 
(B 
(B Jacinto Calvo Sintes /// netman2_seriousman.org ///Linux User #142232
(B jacinto_seriousworks.net///
(B www.seriousworks.net /// 

Re: [E-devel] Re: E CVS: apps/e vapier

2005-04-20 Thread ilLogict
Michael Jennings wrote:
On Wednesday, 20 April 2005, at 08:09:08 (-0700),
E CVS List wrote:

use an install hook to setuid freqset thus avoiding mkinstalldir issues with 
diff versions of automake
===
RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/cpufreq/Makefile.am,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- Makefile.am 20 Apr 2005 14:51:37 -  1.7
+++ Makefile.am 20 Apr 2005 15:09:08 -  1.8
@@ -5,9 +5,6 @@
filesdir = $(libdir)/enlightenment/modules/$(MODULE)
files_DATA = \
module_icon.png
-freqsetdir = $(libdir)/enlightenment/modules/$(MODULE)
-freqset_DATA = \
-freqset$(EXEEXT)
EXTRA_DIST = $(files_DATA)
@@ -28,16 +25,13 @@
module_la_LDFLAGS  = -module -avoid-version
module_la_DEPENDENCIES = $(top_builddir)/config.h
-all-local: freqset$(EXEEXT)
+freqsetdir = $(pkgdir)
+freqset_DATA = \
+freqset$(EXEEXT)
setuid_root_mode = a=rx,u+s
-INSTALL_SU = \
-  test -z $(pkgdir) || $(MKINSTALLDIRS) $(DESTDIR)$(pkgdir); \
-  echo $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL) -m 
$(setuid_root_mode) freqset$(EXEEXT) $(DESTDIR)$(pkgdir)/freqset$(EXEEXT); \
-  $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL) -m 
$(setuid_root_mode) freqset$(EXEEXT) $(DESTDIR)$(pkgdir)/freqset$(EXEEXT);
-
-install-freqsetDATA: freqset$(EXEEXT)
-   @$(INSTALL_SU)
+install-data-hook:
+   @chmod $(setuid_root_mode) $(DESTDIR)$(freqsetdir)/freqset$(EXEEXT)

I think you want a - sign, not an @ sign, there.  @ sign only
suppresses output.  You need the - to make sure failure of that line
doesn't halt the build.
Michael
 Hello !
 Another way to get that corrected is to modify MKINSTALLDIRS from 
$(top_builddir)/./mkinstalldirs to $(mkinstalldirs), which contains 
$(install_sh) -d, in makefiles.
 It works atleast for me ;)

 Cheers.
   ilLogict
---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Re: E CVS: apps/e vapier

2005-04-20 Thread Mike Frysinger
On Wednesday 20 April 2005 03:14 pm, ilLogict wrote:
   Another way to get that corrected is to modify MKINSTALLDIRS from
 $(top_builddir)/./mkinstalldirs to $(mkinstalldirs), which contains
 $(install_sh) -d, in makefiles.
   It works atleast for me ;)

yes, but the new code is more 'standard' in terms of hooking into the 
post-inst process
-mike


---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Eterm amd64 / 64 bit fix

2005-04-20 Thread Mike Frysinger
users were having issues turning off eterm borders on amd64:
http://bugs.gentoo.org/show_bug.cgi?id=76324

so a user proposed a patch which worked for him:
http://bugs.gentoo.org/attachment.cgi?id=56738

what do you think mej ?
-mike


---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Best way to create an OpenGL texture from an imlib2 image?

2005-04-20 Thread Michel Briand
Carsten Haitzler (The Rasterman) a écrit :
 On Tue, 19 Apr 2005 22:23:29 -0400 Jay Summet [EMAIL PROTECTED] babbled:
 
 
 imlib2 appears to store image data internally in ARGB format, which you can 
 get
 a pointer to with a call such as:
 unsigned int *pImageData = imlib_image_get_data();
 
 
 take a look at:
 evas/src/lib/engines/gl_common/evas_gl_texture.c
 
 evas uses the same pix format as imlib2 - and that converts the image to a 
 texture :) (handles nv_rect extensions, power of 2 padding etc.)
 
 ie without alpha:
 glTexImage2D(GL_TEXTURE_2D, 0,
   GL_RGB8, w, h, 0,
  GL_BGRA, GL_UNSIGNED_BYTE, pixels);
 
 with alpha:
 glTexImage2D(GL_TEXTURE_2D, 0,
   GL_RGBA8, w, h, 0,
  GL_BGRA, GL_UNSIGNED_BYTE, pixels);
 
 check that code to see it handling power of 2 problems properly (it doesnt 
 handle texture meshes when max text size  image size though). it requires 
 no copy/transform before copying the pixels to the texture.
 
 
 OpenGL glTexImage2D() function wants data in RGBA format.
 
 You can do a manual conversion of each and every pixel with a double for loop
 enclosing the following:
 
 ~GLdata[offset] = (pImageData[img_offset]  16)  0xff;
 ~GLdata[offset + 1] = (pImageData[img_offset]  8)  0xff;
 ~GLdata[offset + 2] =  pImageData[img_offset]  0xff;
 ~GLdata[offset + 3] = (pImageData[img_offset]  24)  0xff;
 
 But this is slow.
 
 Is there a better (faster) way to convert an imlib2 image to an OpenGL 
 texture?
 
 Thanks,
 Jay
 
 I'm basically looking to load lots of images in various formats and render 
 them
 as OpenGL textures, I don't think I'll need all of imlib2's image
 compositing/blending functionality, so perhaps another library would be a 
 better
 choice? Suggestions?

take a look at my tlib.c file

best regards

Michel

/*
 *	$Id: eana_tlib.c,v 1.4 2005/01/29 14:29:30 michel Exp $
 *
 *	description: Textures  images routines.
 *
 */

#include eana_tlib.h


static const GLenum t_quality_tab[] = {
GL_NEAREST,
GL_LINEAR,
GL_NEAREST_MIPMAP_NEAREST,
GL_LINEAR_MIPMAP_NEAREST,
GL_NEAREST_MIPMAP_LINEAR,
GL_LINEAR_MIPMAP_LINEAR
};

GLenum t_quality(e_quality_t quality)
{
ASSERTE(quality=0  quality=q_linear_mipmap_linear);
return t_quality_tab[quality];
}

s_image_t* t_image_load(const char *path, float gamma)
{
Imlib_Image imlib_image;
Imlib_Load_Error imlib_error;
s_image_t *image;
size_t sz_transfert;
DATA32 *transfert;

imlib_image = imlib_load_image_with_error_return(path, imlib_error);
if ((imlib_error != IMLIB_LOAD_ERROR_NONE) || !imlib_image) {
	TR(trError, Imlib2 Error: %d\n, imlib_error);
	return NULL;
}

image = xalloc(s_image_t);

image-name = strdup(path);
imlib_context_set_image(imlib_image);
image-width = imlib_image_get_width();
image-height = imlib_image_get_height();
image-alpha = imlib_image_has_alpha();

//imlib_image_flip_vertical();
	
sz_transfert = image-width * image-height * 4; // Imlib2 gives always 4 bytes / pixel
image-align = 4;

image-pixels = calloc(1, sz_transfert);
memset(image-pixels, 1, sz_transfert);
transfert = imlib_image_get_data_for_reading_only();
memcpy(image-pixels, transfert, sz_transfert);

t_image_gamma_adjust(image-align, image-width, image-height, image-pixels, gamma);

imlib_free_image();

return image;
}

void t_image_gamma_adjust(int align, int width, int height, void *pixels, float gamma)
{
float scale, temp;
float r, g, b;
uchar_t *pix;
uint_t i, npix;

npix = width * height;
pix = (uchar_t *) pixels;

for (i = 0; i  npix; i++, pix += align) {
	scale = 1.0f;
	temp = 0.0f;
	r = g = b = 0;

	r = (float) pix[0];
	g = (float) pix[1];
	b = (float) pix[2];

	r = r * gamma / 255.0f;
	g = g * gamma / 255.0f;
	b = b * gamma / 255.0f;

	if (r  1.0f  (temp = (1.0f/r))  scale) scale = temp;
	if (g  1.0f  (temp = (1.0f/g))  scale) scale = temp;
	if (b  1.0f  (temp = (1.0f/b))  scale) scale = temp;
	
	scale *= 255.0f;  
	r *= scale;   g *= scale;   b *= scale;
	
	pix[0] = (uchar_t) r;
	pix[1] = (uchar_t) g;
	pix[2] = (uchar_t) b;
}
}

bool_t t_image_write(s_image_t *image, const char *path)
{
Imlib_Image imlib_image;

imlib_image = imlib_create_image_using_data(image-width, image-height, (DATA32 *) image-pixels);
imlib_context_set_image(imlib_image);
imlib_save_image(path);
imlib_free_image();
return TRUE;
}

void t_image_destroy(s_image_t *image)
{
if (image-name)
	free(image-name);
if (image-pixels)
	free(image-pixels);
free(image);
}

int t_tex_create_mipmaps(int align, int width, int height, bool_t alpha, void *pixels, uint_t mipmaps, e_quality_t quality)
{
int tex;
GLenum gluError;
GLint internal_format;
GLenum format;

if (alpha) {
	internal_format = GL_RGBA;
} else {
	internal_format = GL_RGB;
}

if (align == 3) {
	

Re: [E-devel] Eterm amd64 / 64 bit fix

2005-04-20 Thread ilLogict
Michael Jennings wrote:
On Wednesday, 20 April 2005, at 15:45:28 (-0400),
Mike Frysinger wrote:

users were having issues turning off eterm borders on amd64:
http://bugs.gentoo.org/show_bug.cgi?id=76324
so a user proposed a patch which worked for him:
http://bugs.gentoo.org/attachment.cgi?id=56738
what do you think mej ?

I think you should commit it now that you've been given access. :-)
Michael
 Hello !
 This patch works great, but strangely, it works even without it under 
e17... :s (Gentoo amd64, e16 and e17)

 Cheers.
 ilLogict
---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Eterm amd64 / 64 bit fix

2005-04-20 Thread Mike Frysinger
On Wednesday 20 April 2005 04:24 pm, Michael Jennings wrote:
 On Wednesday, 20 April 2005, at 15:45:28 (-0400),

 Mike Frysinger wrote:
  users were having issues turning off eterm borders on amd64:
  http://bugs.gentoo.org/show_bug.cgi?id=76324
 
  so a user proposed a patch which worked for him:
  http://bugs.gentoo.org/attachment.cgi?id=56738
 
  what do you think mej ?

 I think you should commit it now that you've been given access. :-)

rather get permission first than have you yell at me later ;) ... committed

along the same lines, a quick grep for CARD32 shows:
src/pixmap.c
src/screen.c
src/windows.c

windows.c and screen.c look fine, but pixmap.c looks a little fishy:
XChangeProperty(Xdisplay, TermWin.parent,
props[PROP_EWMH_ICON], XA_CARDINAL, 32, PropModeReplace,
(unsigned char *) icon_data, sizeof(icon_data) / sizeof(CARD32));
i dont really know anything about X functions, so you guys would know whether 
this is fine too ...
-mike


---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Translations

2005-04-20 Thread Paulo Jorge de Oliveira Cantante de Matos
Insert Nike motto here

Paulo Matos

Nathan Ingersoll said:
 Any objection to setting up a translations mailing list? This
 is going
 to be a continuous maintenance task, and not completely related
 to
 code development.


 ---
 This SF.Net email is sponsored by: New Crystal Reports XI.
 Version 11 adds new functionality designed to reduce time
 involved in
 creating, integrating, and deploying reporting solutions. Free
 runtime info,
 new features, or free trial, at:
 http://www.businessobjects.com/devxi/728
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel



-- 
Paulo Jorge Matos - pocm at sat inesc-id pt
Web: http://sat.inesc-id.pt/~pocm
Computer and Software Engineering
INESC-ID - SAT Group



---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Perl Bindings

2005-04-20 Thread Artin Rebekale
Hello, 
  I put some initial work into perl + efl bindings at http://pefl.miracles.net 

I'd appreciate it if anyone could point me to various examples of code
in c (like  
http://www.everburning.com/docs/evas_textblock/evas_textblock_intro.html
but for handling mouse events, listboxes, buttons etc...) so that i
can flesh out what functions should be available or not (also to make
cool perl apps that look good )



Any help would be great.

Thanks

art


---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] amd64 mmx_cmod.S patch

2005-04-20 Thread Mike Frysinger
Roland Bär submitted this patch:
http://bugs.gentoo.org/attachment.cgi?id=52947action=view
via this bug:
http://bugs.gentoo.org/show_bug.cgi?id=84520

in an attempt to get the code working for amd64 ... patch is not ok as is, but 
if the x86-specific code is wrapped in #ifdef __i386__ and then amd64 code is 
wrapped in #ifdef __x86_64__, this shoud be ok to commit ?
-mike


---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel