Re: [E-devel] [patch] Exhibit supporting URLs....

2008-05-31 Thread Chady Kassouf
I think the options parsing for Exhibit should be revamped.

argv[1 + fullscreen + slideshow] is because you want to be able to call
exhibit with:

$ exhibit -f -s /path/to/some/folder

which is a hack and would probably be better fixed by correctly parsing the
parameters.



On Sat, May 31, 2008 at 7:47 AM, Ravenlock [EMAIL PROTECTED] wrote:

 Hello,

 I wonder if the following isn't what was intended:

 Index: exhibit_main.c
 ===
 RCS file: /cvs/e/e17/apps/exhibit/src/bin/exhibit_main.c,v
 retrieving revision 1.136
 diff -u -r1.136 exhibit_main.c
 --- exhibit_main.c  20 Feb 2008 08:52:15 -  1.136
 +++ exhibit_main.c  31 May 2008 04:45:34 -
 @@ -1241,7 +1241,7 @@
 ecore_event_handler_add(EPSILON_EVENT_DONE, _ex_thumb_complete,
 NULL));

if(argc  1 + fullscreen + slideshow)
 - _ex_main_window_show(argv[1 + fullscreen + slideshow], fullscreen,
 slideshow);
 + _ex_main_window_show(argv[1], fullscreen, slideshow);
else
  _ex_main_window_show(NULL, fullscreen, slideshow);


 --
 Regards,
 Ravenlock



 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel




-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [Gsoc] the presentation tools

2008-05-23 Thread Chady Kassouf
On Fri, May 23, 2008 at 10:13 AM, Michael Stapelberg 
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Hi Atton,

 Thanks for your mail and thanks for working on the project. I'm very
 interested in it because it may be an easier solution than powerdot for
 LaTeX
 to create graphically beautiful presentations.

 I just wanted to ensure that one can write the presentation input file in
 any
 editor and compile it with a simple commandline-utility, like LaTeX. Is
 this
 the case? I'm not really interested in a GUI except for creating schemes.



Thinking of the target audience, who is really interested in creating
presentations?
With that in mind, would that person be really interested in creating their
presentation in a text file or are they more interested in concentrating on
the presentation itself?


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [PATCH] more works and fixes for wallpaper fetcher

2008-04-20 Thread Chady Kassouf
On Sat, Apr 12, 2008 at 7:58 PM, Gustavo Sverzut Barbieri
[EMAIL PROTECTED] wrote:


 at first we could write a C app that php would execute to generate it,
 just generate and output it to STDOUT and it would do for web, but
 really, if someone take some time to write php bindings for eet basic,
 we'd start to rock!


I have no idea about PHP bindings, but I can do Perl ;)
Here are the Perl bindings for basic Eet:

http://chady.net/projects/eet-perl

For now it can only encode and read basic datatypes: strings and numbers.
Maybe later more work can be done to support more functionality.

If someone wants to give it a spin and offer your suggestions/improvements
it would be appreciated.

Regards,
-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E CVS: libs/edje raster

2008-01-21 Thread Chady Kassouf
On Jan 21, 2008 3:03 AM, Enlightenment CVS [EMAIL PROTECTED]
wrote:

 Enlightenment CVS committal

 Author  : raster
 Project : e17
 Module  : libs/edje

 Dir : e17/libs/edje/src/bin


 Modified Files:
edje_cc_handlers.c edje_main.h


 Log Message:


 edje data file patches in - not fill though.



Hi,
I'm trying to patch this into engrave, does file only appear in the main
data block? or can it appear in the group's data as well?







 ===
 RCS file: /cvs/e/e17/libs/edje/src/bin/edje_cc_handlers.c,v
 retrieving revision 1.79
 retrieving revision 1.80
 diff -u -3 -r1.79 -r1.80
 --- edje_cc_handlers.c  23 Nov 2007 16:43:03 -  1.79
 +++ edje_cc_handlers.c  21 Jan 2008 01:03:04 -  1.80
 @@ -48,6 +48,7 @@
  static void st_fonts_font(void);

  static void st_data_item(void);
 +static void st_data_file(void);

  static void ob_styles_style(void);
  static void st_styles_style_name(void);
 @@ -167,6 +168,7 @@
  {images.image, st_images_image},
  {fonts.font, st_fonts_font},
  {data.item, st_data_item},
 + {data.file, st_data_file},
  {styles.style.name, st_styles_style_name},
  {styles.style.base, st_styles_style_base},
  {styles.style.tag, st_styles_style_tag},
 @@ -699,6 +701,92 @@
di-key = parse_str(0);
di-value = parse_str(1);
edje_file-data = evas_list_append(edje_file-data, di);
 +}
 +
 +/**
 +@page edcref
 +@block
 +data
 +@context
 +data {
 +file: arbitraryname filename;
 +file: othername otherfilename;
 +..
 +}
 +@description
 +The data block is used to pass arbitrary parameters from the
 theme to
 +the application. Unlike the images and fonts blocks,
 additional
 +data blocks can only be included inside the group block.
 +@endblock
 +
 +@property
 +file
 +@parameters
 +[parameter name] [parameter filename]
 +@effect
 +Defines each additional parameter.
 +@endproperty
 + */
 +static void
 +st_data_file(void)
 +{
 +   const char *data;
 +   const char *over;
 +   Edje_Data *di;
 +   char *filename;
 +   char *value;
 +   int fd;
 +   int i;
 +   struct stat buf;
 +
 +   check_arg_count(2);
 +
 +   di = mem_alloc(SZ(Edje_Data));
 +   di-key = parse_str(0);
 +   filename = parse_str(1);
 +
 +   fd = open(filename, O_RDONLY);
 +   if (fd  0)
 + {
 +fprintf(stderr, %s: Error. %s:%i when opening file \%s\:
 \%s\\n,
 +progname, file_in, line, filename, strerror(errno));
 +exit(-1);
 + }
 +
 +   if (fstat(fd, buf))
 + {
 +fprintf(stderr, %s: Error. %s:%i when stating file \%s\:
 \%s\\n,
 +progname, file_in, line, filename, strerror(errno));
 +exit(-1);
 + }
 +
 +   data = mmap(NULL, buf.st_size, PROT_READ, MAP_SHARED, fd, 0);
 +   if (!data)
 + {
 +fprintf(stderr, %s: Error. %s:%i when mapping file \%s\:
 \%s\\n,
 +progname, file_in, line, filename, strerror(errno));
 +exit(-1);
 + }
 +
 +   over = data;
 +   for (i = 0; i  buf.st_size; ++i, ++over)
 + if (*over == '\0')
 +   {
 +  fprintf(stderr, %s: Error. %s:%i file \%s\ is a binary
 file.\n,
 +  progname, file_in, line, filename);
 +  exit(-1);
 +   }
 +
 +   value = malloc(sizeof (char) * buf.st_size + 1);
 +   snprintf(value, buf.st_size + 1, %s, data);
 +
 +   munmap((void*)data, buf.st_size);
 +   close(fd);
 +
 +   di-value = value;
 +   edje_file-data = evas_list_append(edje_file-data, di);
 +
 +   free(filename);
  }

  /**
 ===
 RCS file: /cvs/e/e17/libs/edje/src/bin/edje_main.h,v
 retrieving revision 1.8
 retrieving revision 1.9
 diff -u -3 -r1.8 -r1.9
 --- edje_main.h 27 Aug 2007 11:52:04 -  1.8
 +++ edje_main.h 21 Jan 2008 01:03:04 -  1.9
 @@ -5,6 +5,7 @@
  #include config.h
  #endif

 +#include sys/mman.h
  #include Evas.h
  #include Ecore.h
  #include Ecore_Evas.h



 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 enlightenment-cvs mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs




-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] {Spam?} Re: E CVS: apps/e jeffdameth

2008-01-08 Thread Chady Kassouf
On Jan 8, 2008 10:17 AM, Ethan Grammatikidis [EMAIL PROTECTED] wrote:

 [snip]

 I find 80 columns essential for reading docs while working on code, and
 for working on one file while referencing one or more others. I keep my ttys
 and editors next to my browser window, or roll up the browser window for
 multiple files. I can't work any other way. ;)

 As for tabs v spaces - ugh, don't get me started, lol!



I don't think it's a matter of tabs vs spaces as much as it is about
consistency within the source.
You like spaces, someone else likes tabs, but as long as they're consistent
in the source, there's no big problem, it's when you mix them together that
it starts to become messy.


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Evas_Event propagation

2007-12-19 Thread Chady Kassouf
On Dec 17, 2007 9:05 PM, Dave [EMAIL PROTECTED] wrote:

 Hi all,
 I'm in trouble with the evas event system :(
 Working on esmart_container to make an iphone-like scrolling list (with
 friction)
 this is the situation:
 I have a trasparent evas_object (big as all the container) used to grab
 mouse events. When you click  drag the  mouse I make the container
 scroll. The objects of the list also need mouse events so I used
 evas_object_repeat_events_set(cont-grabber, TRUE);
 to pass the mouse events.

 The problem is that I want to 'repeat' the events only when is not a
 dragging operation.
 In the grabber mouse,down callback I need to stop the propagation of the
 event to the object below...

 Some idea?
 In other toolkits this is done by returning a NULL value from the
 callback...
 Thanks
 Dave


I have never looked into how evas handles events internally, but are events
guaranteed to fire off?
if they are guaranteed, then you probably can do this manually.

when dragging on the grabber, you set some sort of flag, and when you
release, you clear the flag. then in the click operations of the objects
below you check the flag and return if it's true.


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Nightly build log for E17 on 2007-11-30 18:22:26 -0800

2007-12-01 Thread Chady Kassouf
On Dec 1, 2007 4:05 PM, Andreas Volz [EMAIL PROTECTED] wrote:

 Am Sat, 1 Dec 2007 10:41:53 +0100 (CET) schrieb Vincent Torri:

 
 
  On Sat, 1 Dec 2007, Andreas Volz wrote:
 
   Am Fri, 30 Nov 2007 18:22:26 -0800 (PST) schrieb Nightly build
   system:
  
   Hello,
  
   Build log for Enlightenment DR 0.17 on 2007-11-30 18:22:26 -0800
   Build logs are available at
   http://download.enlightenment.org/tests/logs
  
   Packages that failed to build:
   edvi  http://download.enlightenment.org/tests/logs/edvi.log
   eflpp  http://download.enlightenment.org/tests/logs/eflpp.log
   elitaire  http://download.enlightenment.org/tests/logs/elitaire.log
   embrace  http://download.enlightenment.org/tests/logs/embrace.log
   empower  http://download.enlightenment.org/tests/logs/empower.log
   engage  http://download.enlightenment.org/tests/logs/engage.log
   epdf  http://download.enlightenment.org/tests/logs/epdf.log
   ephoto  http://download.enlightenment.org/tests/logs/ephoto.log
   equate  http://download.enlightenment.org/tests/logs/equate.log
   evolve  http://download.enlightenment.org/tests/logs/evolve.log
   ewl  http://download.enlightenment.org/tests/logs/ewl.log
  
   The EWL nightly build is now broken for about two weeks. Since then
   I didn't try to compile EFL because of this. Any ideas why this
   happens and when it will be fixed?
 
  change the number of threads (for make) in that script to 1 instead
  of 2. It works.

 Ok, I could do it on my local system here. But I think someone should
 change the nightly build script.


No, the bug should be tracked and fixed, not hidden by changing the build
script.


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] What is the elipsis properties of text in edje / engrave?

2007-11-27 Thread Chady Kassouf
On Nov 27, 2007 4:22 PM, Dave [EMAIL PROTECTED] wrote:

 I found this function I didn't know about:

 EAPI void   engrave_part_state_text_elipsis_set
 
 http://docs.enlightenment.org/api/engrave/html/group__Engrave__Part__State.html#g612f85f7247f6995df88c1f7b42ed359
 
 (Engrave_Part_State
 
 http://docs.enlightenment.org/api/engrave/html/struct__Engrave__Part__State.html
 
 *eps, double val)
engrave_part_state_text_elipsis_set - Set the text elipsis of the
 state.



 Someone know what elipsis is?


check:
http://docs.enlightenment.org/api/edje/html/edcref.html
and go to the end of the page :)


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] edje_editor / engrave problem

2007-11-26 Thread Chady Kassouf
On Nov 26, 2007 10:09 AM, [EMAIL PROTECTED] wrote:

  Dave ha scritto:
  The same problem appear also in the loading of the edc files.
  Here's the second patch (not including the first)
 
  None seems contrary so I will commit the change to cvs. we can always
  keep back ;)

 And a stupid question, why isn't parsing a problem with edje_cc?


Which is a very good point indeed.
There are lots of problems that arise from the way edje_cc parses the edc
file.
but I'm not sure if this particular issue is edje_cc's problem, cause you
need your edc files to be portable at least.


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] ETK ( or EWL ), GladeXML, Perl

2007-11-23 Thread Chady Kassouf
On Nov 15, 2007 2:18 AM, Daniel Kasak [EMAIL PROTECTED] wrote:

 On Wed, 2007-11-14 at 11:03 +0200, Chady Kassouf wrote:

  I haven't used Enhance before, but a quick look at the source shows
  that bindings for it are simple to do, I'll have something ready for
  it soon.

 Great.



Just a quick update regarding this.
It turns out it's not as trivial as I first thought it was.
I did write the bindings, and it all works, but I hit a speed bump: signal
handling is done in Enhance through dlsym which won't work in a perl
script context.

What probably needs to be done is provide a generic signal handling function
in the XS code, and then use some other way to handle events inside perl...
but that still needs some thinking to become a reality.


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] ETK ( or EWL ), GladeXML, Perl

2007-11-14 Thread Chady Kassouf
On Nov 14, 2007 6:10 AM, Daniel Kasak [EMAIL PROTECTED] wrote:

 On Tue, 2007-11-13 at 21:33 -0500, Hisham Mardam Bey wrote:

  On Nov 13, 2007 9:19 PM, Daniel Kasak [EMAIL PROTECTED] wrote:
   Quite a while back, I remember reading about etk-server, that would
   create an ETK layout from a GladeXML file. What's the status of this?
 
  Enhance - allows you to use a GladeXML file to create an Etk gui.
  Works great an is already in use.

 Ah. Excellent :)

   Next, if this is working, is it also inside the realms of possibility
   that Perl bindings for this will materialise.
 
  Is very simple to add to etk-perl, or to bind in a similar fashion.
  Chady, care to comment?

 I'll await this comment ...

 I'm building all my e stuff now. If I can get the bindings built ( had
 some difficulties last time ), I'll check out the treeview stuff first,
 since it doesn't require enhance.


I haven't used Enhance before, but a quick look at the source shows that
bindings for it are simple to do, I'll have something ready for it soon.

Etk-Perl is quite usable now, but besides lack of proper documentation, it
also still has some pending TODO items.

There is an example of most of the widgets in the folder etk_test/ ,
I'm still trying to get some documentation going, I started a wiki at
http://etk-perl.chady.net/wiki/pmwiki.php but never gotten around to
actually adding contents to it, but it's still on my TODO list. So
meanwhile, if you have any specific question regarding how to get started,
you can email me directly.

Regards,

-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Exhibit Patches

2007-10-16 Thread Chady Kassouf
On 10/16/07, Brett Nash [EMAIL PROTECTED] wrote:

 Hello All,
 More random patches...

 The first is to update exhibit to use the current etk API.
 exhibit-etk-init-fix.patches
 I find it crashes a little be less frequently at startup now ;-)

 The second is to make the exhibit header files use C89 prototypes,
 rather than KR declarations for functions with no arguments.
 exhibit-welcome-to-c89.patches

 This includes quite a few places where functions were called with
 arguments, when they took none and other fun things.

 There are still a lot of warnings when I compile, but most are coming
 from ETK now.



Your patch is against an old copy of exhibit.
Have you updated before making your changes?
the etk_init issue was fixed by Moom seconds after he did the change in etk.
and your c89 patch contains functions that are no longer there, ex
(_ex_tab_imagelist_rebuild)

Update your tree from cvs (you're gonna have conflicts though), then send in
another patch.


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Exhibit Patches - Round #2

2007-10-16 Thread Chady Kassouf
On 10/16/07, nash [EMAIL PROTECTED] wrote:

 Hello Again,
 New version of the exhibit patches - against the latest anon-cvs
 source.  This code compiles, but I haven't really tested it properly.
 However most should be innocuous.

 Changes:
 exhibit_image.c:
 - Don't call (void) function with parameter
 exhibit_thumb.c:
 - Initialise Epsilon pointer before assigning it
 exhibit_image.[ch], exhibit_main.[ch], exhibit_options.[ch],
 exhibit_slideshow.[ch], exhibit_tab.[ch], exhibit_thumb.[ch]
 - Update to c89 for function parameters.



committed, thanx.
Though still had some issues and missing functions, I fixed those.



-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Pin to desktop not working correct

2007-10-07 Thread Chady Kassouf
On 10/7/07, Andreas Volz [EMAIL PROTECTED] wrote:



 Another solution would be to implement a smart logic that displays only
 the items that are used 'often' and hides the advanced menus behind a
 '...' entry that unfolds if you press it. Like you know it from
 'popular' windows products. But I'm not sure about the usability of
 such a solution.



Oh please not that.
That's a horrible solution (if it even can be called a solution)



-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E CVS: libs/etk cmarcelo

2007-10-04 Thread Chady Kassouf
On 10/4/07, Gustavo Sverzut Barbieri [EMAIL PROTECTED] wrote:

 [...snip...]
   As I said before, it would be great to have
 connect() as a method of object, not signal.


That's actually what I have done in etk-perl
the SignalConnect is a method of Etk::Object from a user's point of view,
and it will do the necessary translation work internally.

-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E CVS: libs/etk cmarcelo

2007-10-04 Thread Chady Kassouf
On 10/4/07, Gustavo Sverzut Barbieri [EMAIL PROTECTED] wrote:

 On 10/4/07, Chady Kassouf [EMAIL PROTECTED] wrote:
 
 
  On 10/4/07, Gustavo Sverzut Barbieri [EMAIL PROTECTED] wrote:
   [...snip...]
 As I said before, it would be great to have
   connect() as a method of object, not signal.
  
  
 
  That's actually what I have done in etk-perl
  the SignalConnect is a method of Etk::Object from a user's point of
 view,
  and it will do the necessary translation work internally.

 this makes sense, but having users to use etk_signal_* is bad and
 confusing at least.

 My idea is to vanish with signal, type and properties from users
 headers, they should remain internal to etk machinery.


What is the proposed replacement then?

I was considering making on event handlers in etk-perl, so instead of
writing:

$button-SignalConnect(click, sub { blah; } );

you write:

$button-onClick( sub { blah; } );

or similar.

If signals are removed, how are the users going to handle events?

-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E CVS: libs/etk barbieri

2007-09-30 Thread Chady Kassouf
On 9/30/07, Enlightenment CVS [EMAIL PROTECTED] wrote:

 Enlightenment CVS committal

 Author  : barbieri
 Project : e17
 Module  : libs/etk

 Dir : e17/libs/etk/src/lib


 Modified Files:
 etk_signal.c etk_signal.h etk_type.c etk_type.h etk_types.h


 Log Message:
 Refinements to new ETK signal system.


 [...snip...]

* etk_signal_lookup() and etk_signal_lookup_code() are now internal
 (static).


Why did this happen?
now, unless I set them up all manually, if I have a signal's string name or
code I have no way of knowing which marshaller to use for it...
what's the proposed way for that?

-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E CVS: libs/etk-perl leviathan

2007-09-30 Thread Chady Kassouf
On 9/30/07, Gustavo Sverzut Barbieri [EMAIL PROTECTED] wrote:


 
   static void
  -callback_VOID__VOID(Etk_Object *object, void *data)
  +callback_VOID(Etk_Object *object, void *data)

 Every signal now should return Etk_Bool, these will have the same
 meaning as ecore_timer_add() callbacks: TRUE = keep running, FALSE =
 stop, but it actually doesn't disconnect, but stop the emission.

 This was done in order to remove etk_signal_stop(). Instead of using
 it we should return ETK_FALSE. etk_signal_stop() was flawed, using a
 linked list that would break when using threads.

 This may be the reason of random failures, since you're not returning,
 so depending on your platform you'll get 0 (ETK_FALSE) or even random
 garbage, stopping signal emission.


Ah, now I see why it was failing at random places.
Thanx for the pointers, fixed it now.



-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Nightly build log for E17 on 2007-09-29 07:03:24 -0700

2007-09-29 Thread Chady Kassouf
On 9/29/07, Gustavo Sverzut Barbieri [EMAIL PROTECTED] wrote:

  edvi  http://download.enlightenment.org/tests/logs/edvi.log
  etk-perl  http://download.enlightenment.org/tests/logs/etk-perl.log

 breaks introduced by Caio. He's traveling this weekend, but I'll try
 to fix later today.


 It's ok, I'll be working on that.
Though I'm not sure how sensible it is to commit such a huge batch of
changes all at once
it makes the lives of binding maintainers a living hell to follow up on all
the changes.



-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Compile fix for Evolve?

2007-09-16 Thread Chady Kassouf
On 9/16/07, Marijn van Vliet [EMAIL PROTECTED] wrote:

 I was just wondering what the status was on evolve. It looks to me like a
 nice lib to play with, but it won't compile (known issue). Is anyone
 working on it?


A change in the Etk lib introduced the need to be able to store unions in
eet for evolve to work, and currently eet does not support unions, so that's
what is holding off evolve.
I tried looking into eet, but I need some time to work on a patch for it and
I'm currently without a linux computer so I'm holding that off for later.

So if you want to see evolve evolve (bad pun, I know :) - union support in
eet is the place to start.


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Etk_Tree sorting issue

2007-09-11 Thread Chady Kassouf
Hi,

Investigating some sorting weirdness in Exhibit revealed an issue in the way
Etk handles the sorting of trees.

We have:
- etk_tree_col_sort_set: which sets a comparing function inside the tree
structure
- etk_tree_col_sort: which calls etk_tree_col_sort_full with the inner
comparing function as a callback
- etk_tree_col_sort_full: which can be passed a callback function for
comparison.

Further, etk_tree_col_sort_full does a check at the beginning to test if the
column to be sorted is already sorted and returns without sorting.

So if we sort with etk_tree_col_sort_full on a column, then we sort with
etk_tree_col_sort_full on that same column but with a different callback
function, the second sort will not happen.

Proposed solutions:

patch1.diff - we can either set tree-sorted_col to NULL whenever we set
etk_tree_col_sort_set to something, so one doesn't use sort_full and always
uses sort_set and then sort.

OR

patch2.diff - we add some kind of reference to the last sorting function and
compare that too inside sort_full.. so if the sorted column is the same as
the one we are sorting AND the callback function is the same, then return.


Which one do you people prefer?



-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Etk_Tree sorting issue

2007-09-11 Thread Chady Kassouf
Attachements didn't go through, so bug filed in bugzilla with the
attachements..



On 9/11/07, Chady Kassouf [EMAIL PROTECTED] wrote:

 Hi,

 Investigating some sorting weirdness in Exhibit revealed an issue in the
 way Etk handles the sorting of trees.

 We have:
 - etk_tree_col_sort_set: which sets a comparing function inside the tree
 structure
 - etk_tree_col_sort: which calls etk_tree_col_sort_full with the inner
 comparing function as a callback
 - etk_tree_col_sort_full: which can be passed a callback function for
 comparison.

 Further, etk_tree_col_sort_full does a check at the beginning to test if
 the column to be sorted is already sorted and returns without sorting.

 So if we sort with etk_tree_col_sort_full on a column, then we sort with
 etk_tree_col_sort_full on that same column but with a different callback
 function, the second sort will not happen.

 Proposed solutions:

 patch1.diff - we can either set tree-sorted_col to NULL whenever we set
 etk_tree_col_sort_set to something, so one doesn't use sort_full and always
 uses sort_set and then sort.

 OR

 patch2.diff - we add some kind of reference to the last sorting function
 and compare that too inside sort_full.. so if the sorted column is the same
 as the one we are sorting AND the callback function is the same, then
 return.


 Which one do you people prefer?



 --
 Chady 'Leviathan' Kassouf
 http://chady.net/




-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Evas smart-objects future plans?

2007-08-21 Thread Chady Kassouf
On 8/21/07, Peter Wehrfritz [EMAIL PROTECTED] wrote:

 Simon TRENY schrieb:
  Hi,
 
  I've seen in Evas.h that most of the methods of Evas_Smart_Class are
  marked as to-be-deleted in the future (FIXME: DELETE ME). This
  concerns show(), hide(), color_set(), clip_set() and clip_unset().
 
  I think it will be indeed a really great thing to do since when we
  implement these methods for a new smart-object, we basically always do
  the same thing (i.e clipping member-objects against the parent's
  clipper in clip_set(), hiding the member-objects in hide_set()...). It
  will also simplify a lot the code of Etk_Widget as I tried to make
  these things done automatically but since Etk doesn't have access to
  Evas internals, it is quite a mess.
 
 I'm totally against the idea to clip all smart members to the smart
 object geometry. I can understand that this is the common case in the
 view of a toolkit author. But in fact there are many exception I can
 think of. For example an animation that overlaps the geometry of the
 smart object, a shadow that overhangs the area of an swallow part, etc..
 In elitaire I use this for the cards. The logical card has always the
 same size, but when you switch on shadows, the card image has an offset
 outside of this area and only the shadow has the same geometry (position
 and size) like the smart object. That make it very handy to handle
 movements of the card and animations like lifting the card at the same
 time.
 I don't think we should sacrifice the power of evas smart objects
 because of a common case that 90% of the smart object use. Think of the
 remaining 10% percent. This cases need to be handled, too. You could
 write an convenience object, maybe called evas_object_group, where you
 only have to set the resize callback and the rest is done internally.
 But please let the the smart objects as they are. There are many cases
 where you need the versatility of them.


The proposal is NOT for clipping to the parent object's geometry, but to the
parent object's clipper.
Yes, your case if very valid, but if you're going that route, you probably
will have your parent clipper account for the shadows by making it that much
bigger to not clip the shadows.


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Nightly build log for E17 on 2007-08-17 07:04:42 -0700

2007-08-17 Thread Chady Kassouf
On 8/17/07, Toma [EMAIL PROTECTED] wrote:

 /usr/bin/install: cannot create regular file
 `/usr/local/lib/libgevas.so.1.0.0': Permission denied

 Whats up with that?


gevas is not honoring the --prefix and trying to install where it doesn't
have permission.


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] [PATCH] etk_combobox and etk_combobox_entry field set

2007-08-06 Thread Chady Kassouf
Hello,

This patch adds the ability to set an individual column's field for
comboboxes.
This will make it easier for language bindings to be implemented.

-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] proto/?

2007-08-06 Thread Chady Kassouf
On 8/6/07, Andreas Volz [EMAIL PROTECTED] wrote:

 Hello,

 is it possible to write which package in proto is modified into the
 email subject? It's hard to follow CVS changes currently. e.g.

 Subject: E CVS: apps/e raster

 Enlightenment CVS committal

 Author  : raster
 Project : e17
 Module  : apps/e

 Dir : e17/apps/e/src/bin

 == OK

 Subject: E CVS: proto andreas

 Enlightenment CVS committal

 Author  : andreas
 Project : e17
 Module  : proto

 Dir : e17/proto/eflpp/src/edje

 == why not:

 Subject: E CVS: proto/eflpp andreas

 as email subject? Would be much easier to identify CVS changes.


I agree with that too, and I committed a fix for it.


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Worldmap with Devs - GPS Coords in info.txt

2007-07-31 Thread Chady Kassouf
On 7/31/07, Dave [EMAIL PROTECTED] wrote:

 João Vale ha scritto:
  Two suggestions:
  - make the password field type=password
 

 Fixed


But now you're gonna have to add a Confirm Password field so that the user
doesn't type in a wrong password without knowing.



-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Nightly build log for E17 on 2007-07-30 07:02:03 -0700

2007-07-30 Thread Chady Kassouf
On 7/30/07, Nightly build system [EMAIL PROTECTED] wrote:

 Build log for Enlightenment DR 0.17 on 2007-07-30 07:02:03 -0700
 Build logs are available at http://download.enlightenment.org/tests/logs

 Packages that failed to build:
 evolve  http://download.enlightenment.org/tests/logs/evolve.log


Are you sure that bison is installed correctly?

From the log:

checking for bison... (cached) byacc

I uninstalled bison here and installed byacc so I got the same error you're
getting.



-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Nightly build log for E17 on 2007-07-28 21:49:45 -0700

2007-07-29 Thread Chady Kassouf
On 7/29/07, David Seikel [EMAIL PROTECTED] wrote:



  Evas_Perl  http://download.enlightenment.org/tests/logs/Evas_Perl.log

 I'm not a perl coder, so I have no clue what is wrong.  Does not look
 like a dependency issue though.


This library seems very old, Evas has changed a lot ever since and Evas_Perl
does not seem to be maintained anymore, maybe it should get skipped?


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Nightly build log for E17

2007-07-27 Thread Chady Kassouf
One request,

Dunno if others agree too, but isn't it good to have the date in the subject
of the email?
gmail for one merges all these emails into one conversation, which makes it
hard later on to find a certain build log.


On 7/27/07, Nightly build system [EMAIL PROTECTED] wrote:

 Build log for Enlightenment DR 0.17 on 2007-07-27 07:55:55 -0700
 Build logs are available at http://download.enlightenment.org/tests/logs

 Packages that failed to build:
 bling  http://download.enlightenment.org/tests/logs/bling.log
 edvi  http://download.enlightenment.org/tests/logs/edvi.log
 eflpp  http://download.enlightenment.org/tests/logs/eflpp.log
 elapse  http://download.enlightenment.org/tests/logs/elapse.log
 elation  http://download.enlightenment.org/tests/logs/elation.log
 envision  http://download.enlightenment.org/tests/logs/envision.log
 epdf  http://download.enlightenment.org/tests/logs/epdf.log
 Evas_Perl  http://download.enlightenment.org/tests/logs/Evas_Perl.log
 evolve  http://download.enlightenment.org/tests/logs/evolve.log
 express  http://download.enlightenment.org/tests/logs/express.log
 feh  http://download.enlightenment.org/tests/logs/feh.log
 iconbar  http://download.enlightenment.org/tests/logs/iconbar.log
 imlib2_tools
 http://download.enlightenment.org/tests/logs/imlib2_tools.log
 language  http://download.enlightenment.org/tests/logs/language.log

 Packages with no supported build system:
 eflame, enthrall, esmart_rsvg, euphoria, exorcist, nexus, ruby-efl,

 Packages skipped:
 camE, embrace, enotes, enscribe, epbb, eplay, erss, etk_server, etox,
 evoak,
 gfx_routines, lvs-gui, med, notgame, webcam,

 Packages that build OK:
 alarm, cpu, deskshow, eclair, ecore, edb, e_dbus, edje_editor, edje,
 edje_viewer,
 eet, efreet, elicit, elitaire, e, embryo, emotion, emphasis, empower, emu,
 engage, engrave, engycad, enhance, enity, enterminus, entice,
 entrance_edit_gui,
 entrance, entropy, epeg, ephoto, e_phys, epsilon, equate, esmart,
 estickies,
 etk_extra, etk, etk-perl, e_utils, evas, evfs, ewl, examine, exhibit,
 exml,
 expedite, extrackt, flame, forecasts, imlib2_loaders, imlib2, Imlib2_Perl,
 mail, mem, mixer, moon, net, news, pesh, photo, rage, rain, screenshot,
 scrot, slideshow, snow, taskbar, tclock, uptime, weather, winselector,
 wlan,


 Debian GNU/Linux 4.0 \n \l

 Linux enlightenment2 2.6.18-4-686 #1 SMP Wed May 9 23:03:12 UTC 2007 i686
 GNU/Linux

 Autoconf version 2.13
 automake (GNU automake) 1.10
 ltmain.sh (GNU libtool) 1.5.22 Debian 1.5.22-4 (1.1220.2.365 2005/12/18
 22:14:06)
 gettext (GNU gettext-runtime) 0.16.1

 See http://download.enlightenment.org/tests/ for details.


 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now   http://get.splunk.com/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel




-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Nightly build log for E17

2007-07-25 Thread Chady Kassouf
On 7/25/07, David Seikel [EMAIL PROTECTED] wrote:

 Once again I had to cut and paste it, still haven't cracked the email
 to sf.net list problem.  Formatting screwed up a bit as a result.

 A lot of these new failures are due to lack of dependencies on the build
 box.

 On Wed, 25 Jul 2007 12:07:32 +1000 David Seikel [EMAIL PROTECTED]
 wrote:

  FAILED PACKAGE: bling
  COMMAND:  make -j 2
  BUILD LOG: http://download.enlightenment.org/tests/logs/bling.log

 I think maybe I should cut this down to the bare minimum, just the
 link.  The name of the failed package is obvious from the link.  The
 failure point is available in the log.


 Yes, and I also think that the COMMAND is irrelevant in the email log..
maybe it should be something link this for the failed packages:

FAILED PACKAGES:

bling  http://download.enlightenment.org/tests/logs/bling.log
edvi http://download.enlightenment.org/tests/logs/edvi.log
eflpp http://download.enlightenment.org/tests/logs/eflpp.log
elapse http://download.enlightenment.org/tests/logs/elapse.log

This way the summary makes it very easy to see what failed, and details are
one click away.



-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E CVS: libs/etk andrunko

2007-07-25 Thread Chady Kassouf
On 7/25/07, Vincent Torri [EMAIL PROTECTED] wrote:



 On Wed, 25 Jul 2007, Morten Nilsen wrote:

  imho, designing a gui with a mdi is useless. Better using several
 windows
  than one with several in it.
 
  Many users prefer photoshop over gimp, and I am sure some prefer
  photoshop due to the MDI design of PS..
 
  I don't see any reason to make it hard for developers to choose to use
  MDI, if they so choose.

 hmmm, make it hard to run such apps on desktops with 2 or more virtual
 desktops or monitors. There are other inconvenients with mdi



Sure it might have inconveniences, but etk is a toolkit, and it's not up to
the toolkit to decide how a GUI should be done... it's up to the interface
designer, and the toolkit should provide all the facilities...


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] website url rewrite

2007-07-23 Thread Chady Kassouf
On 7/23/07, The Rasterman Carsten Haitzler [EMAIL PROTECTED] wrote:

 On Mon, 23 Jul 2007 08:49:03 +0300 Chady Kassouf 
 [EMAIL PROTECTED]
 babbled:

  On 7/21/07, The Rasterman Carsten Haitzler [EMAIL PROTECTED] wrote:
  
   On Thu, 12 Jul 2007 11:16:05 +0300 Chady Kassouf 
   [EMAIL PROTECTED]
   babbled:
  
   you READ the urls? and even type them in? i'm not sure it really
 matters
   unless
   you want to hide the fact that its php with parameters?

 well there is more work than just setting up mod_rewrite - you need to
 modify
 the links the php spits out...



No one said there isn't :)
just as soon as the mod_rewrite is set up, I'll update the php to work with
that, I already have part of it done in my local copy.


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] website url rewrite

2007-07-23 Thread Chady Kassouf
On 7/23/07, The Rasterman Carsten Haitzler [EMAIL PROTECTED] wrote:

 On Mon, 23 Jul 2007 12:42:09 +0300 Chady Kassouf 
 [EMAIL PROTECTED]
 babbled:

  On 7/23/07, The Rasterman Carsten Haitzler [EMAIL PROTECTED] wrote:
  
   On Mon, 23 Jul 2007 08:49:03 +0300 Chady Kassouf 
   [EMAIL PROTECTED]
   babbled:
  
On 7/21/07, The Rasterman Carsten Haitzler [EMAIL PROTECTED]
 wrote:

 On Thu, 12 Jul 2007 11:16:05 +0300 Chady Kassouf 
 [EMAIL PROTECTED]
 babbled:

 you READ the urls? and even type them in? i'm not sure it really
   matters
 unless
 you want to hide the fact that its php with parameters?
  
   well there is more work than just setting up mod_rewrite - you need to
   modify
   the links the php spits out...
 
 
 
  No one said there isn't :)
  just as soon as the mod_rewrite is set up, I'll update the php to work
 with
  that, I already have part of it done in my local copy.

 ok. rewrite enabled. but it doesn't seem to work :/


dunno what you used, but my original post had the rewrite rules commented
out, so here's the thing just in case.

IfModule mod_rewrite.c
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(..)/(.*) /p.php?l=$1p=$2 [L]
/IfModule


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] website url rewrite

2007-07-22 Thread Chady Kassouf
On 7/21/07, The Rasterman Carsten Haitzler [EMAIL PROTECTED] wrote:

 On Thu, 12 Jul 2007 11:16:05 +0300 Chady Kassouf 
 [EMAIL PROTECTED]
 babbled:

 you READ the urls? and even type them in? i'm not sure it really matters
 unless
 you want to hide the fact that its php with parameters?



Yes it does matter. And yes I think most people READ the urls to try and
guess the contents before going:
a URL that ends with /projects/evas for example is a lot more informative
than /page.php?id=12

It doesn't only hide the fact that it's php (which is not such a big deal
anyway) what it does is abstract the url into something that can always
remain constant. Search engines or other websites had links to pages in the
enlightenment website, and when we changed the website all those links
became obsolete and everyone had to update them manually.
It is our responsibility to keep contents accessible at all times, so if we
use structured links, it's possible to always do that.. the pages are
already structured, so this can help hide all the cruft from the url and
make them easier to use.



-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Nightly builds - Was: Is this a community project?

2007-07-19 Thread Chady Kassouf
On 7/19/07, Eugen Minciu [EMAIL PROTECTED] wrote:

  Stashing it all on a web page means that people will not bother to look
  at it.  Sending a built/not built summary to this list means that
  people will actually read it.  Stashing the full build logs on the web
  is good, it doesn't fill the list with tons of shit no one needs to
  look at, and the one or two people that note that their project is not
  building know where to find the full build log to investigate further.
 
 Maybe the the full output could be sent to the CVS mailing list. That
 sounds a bit counterintuitive but if you think about it it's purpose is to
 alert developers of changes to the codebase. This is somewhat similar.


Well, not really...
when information get bigger, you will tend to start skipping it.
A summary like this is great, cause all you have to do is skim the list for
ERROR and then you'll know what broke and you go check it out, but trying to
wade through all the output of a build to find an error is painful.


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] website url rewrite

2007-07-12 Thread Chady Kassouf
Hi,

In order to make the new website's URLs easier to use, I'd like to propose
using mod_rewrite and having some rewrite rules to make the URIs more
readable.

Something along the lines of:

IfModule mod_rewrite.c
#RewriteEngine On
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(..)/(.*) /p.php?l=$1p=$2 [L]
/IfModule


which would make this URL:
http://enlightenment.org/p.php?p=about/libsl=en
be:
http://enlightenment.org/en/about/libs



-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] website url rewrite

2007-07-12 Thread Chady Kassouf
On 7/12/07, Stéphane Bauland [EMAIL PROTECTED] wrote:

 Chady Kassouf wrote:
  Hi,
 
  In order to make the new website's URLs easier to use, I'd like to
 propose
  using mod_rewrite and having some rewrite rules to make the URIs more
  readable.
 
  Something along the lines of:
 
  IfModule mod_rewrite.c
  #RewriteEngine On
  #RewriteCond %{REQUEST_FILENAME} !-f
  #RewriteCond %{REQUEST_FILENAME} !-d
  #RewriteRule ^(..)/(.*) /p.php?l=$1p=$2 [L]
  /IfModule
 
 
  which would make this URL:
  http://enlightenment.org/p.php?p=about/libsl=en
  be:
  http://enlightenment.org/en/about/libs
 
 
 
 
 Hi all,

 Yep for sure, but you need to remove commented lines :))
 and to rewrite all the site internal links. :)

 But i think it could be greatful..


Oops.. I was testing the conditions on my site and then removed them but
forgot to delete the comments before posting :D

anyway, if this gets added I'm willing to do all the required editing to get
the contents links working correctly.

Regards,
-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] {Spam?} Re: E CVS: libs/edje pfritz

2007-07-08 Thread Chady Kassouf
On 7/7/07, Gustavo Sverzut Barbieri [EMAIL PROTECTED] wrote:

 On 7/7/07, Vincent Torri [EMAIL PROTECTED] wrote:
  On Sat, 7 Jul 2007, Dr. Michael 'Mickey' Lauer wrote:
 
   Vincent Torri wrote:
  
   On Fri, 6 Jul 2007, Enlightenment CVS wrote:
style = EVAS_TEXT_STYLE_OUTLINE_SHADOW;
  else if (ep-part-effect ==
 EDJE_TEXT_EFFECT_OUTLINE_SOFT_SHADOW)
style = EVAS_TEXT_STYLE_OUTLINE_SOFT_SHADOW;
   +  else if (ep-part-effect == EDJE_TEXT_EFFECT_FAR_SHADOW)
   +style = EVAS_TEXT_STYLE_FAR_SHADOW;
   +  else if (ep-part-effect ==
 EDJE_TEXT_EFFECT_FAR_SOFT_SHADOW)
   +style = EVAS_TEXT_STYLE_FAR_SOFT_SHADOW;
   +  else if (ep-part-effect == EDJE_TEXT_EFFECT_GLOW)
   +style = EVAS_TEXT_STYLE_GLOW;
  
   #define EDJE_TEXT_EFFECT_SOFT_SHADOW 5
   #define EDJE_TEXT_EFFECT_OUTLINE_SHADOW  6
   #define EDJE_TEXT_EFFECT_OUTLINE_SOFT_SHADOW 7
   -#define EDJE_TEXT_EFFECT_LAST8
   +#define EDJE_TEXT_EFFECT_FAR_SHADOW  8
   +#define EDJE_TEXT_EFFECT_FAR_SOFT_SHADOW 9
   +#define EDJE_TEXT_EFFECT_GLOW   10
   +#define EDJE_TEXT_EFFECT_LAST   11
  
   Isn't it better to use an enum + a switch, instead of defines +
 if/else ?
  
   FWIW, I agree. What we lose in runtime performance we gain more than
   twice in clarity and maintenance.
 
  I'm not sure we loose in runtime speed. switch are handle with lookup
  tables with enums (iirc), and the compiler can do better optimizations
  than with a bunch of if/else

 yep, it will not loose, and even if it was the case it would be so
 minimum and not worth more than maintenance.


I actually did a small test and compiled to assembly, an if/else will
compile to exactly the same amount of `cmpl` statements as a switch, and
almost the same amount of jumps. The only difference is in the logic of
branching: the compiler will compile an if/else to branch on the else part,
while the switch statement will always jump, so they're both jumping and
affecting the pipeline, but any performance difference between the two is
relative, and probably not noticeable.

-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [E-Mail] Hi dev, i need your help!

2007-06-12 Thread Chady Kassouf
On 6/12/07, Massimiliano Calamelli [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi dev, i'm working hard on E-Mail, my email client app ETK-based, and
 now i need your help.
 Atm E-Mail works with a preexisting ~/Mail folder in MH format (one file
 for a message), it can show existing messages, but it can't send or
 receive anything. It's very hard to build a nice email client!!!
 I need your help in order to decide how to show an image attached to a
 message: you can look these images to have an idea of the aspect of
 E-Mail


 http://picasaweb.google.it/mcalamelli/Screenshots/photo#5075100731934743298
 (E-Mail handle a message with attachment)

 http://picasaweb.google.it/mcalamelli/Screenshots/photo#5075100736229710610
 (E-Mail handle a message without attachment)

 I use Etk_Text_View to show the body of the message, and it can't
 handle images. What can i do? Leaving the attachments as is, and allow
 to the user only the choose to save it, or implement a built-in image
 viewer, or i don't know?

 Any suggestions are appreciated!!!


Just a small note here,

I think that what you should really do is, set aside the code for now, and
just site down and design your app first. Note everything that you want the
application to do, regardless of implementation. Get that right first, and
THEN worry about the implementation, cause it now feels that you just
started coding without planning those things, and that can only get you so
far. You need to have a solid design at first, and then start coding.

just my 2 cents.


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E CVS: www mej

2007-05-31 Thread Chady Kassouf
On 5/31/07, Enlightenment CVS [EMAIL PROTECTED] wrote:

 Enlightenment CVS committal

 Author  : mej
 Project : web
 Module  : www

 Dir : web/www/p/news


 Modified Files:
 class.news.php latestnews.php


 Log Message:
 Wed May 30 20:03:24 2007Michael Jennings (mej)

 Clean up Inc's mess.
 --

 ===
 RCS file: /cvs/e/web/www/p/news/class.news.php,v
 retrieving revision 1.2
 retrieving revision 1.3
 diff -u -3 -r1.2 -r1.3
 --- class.news.php  27 May 2007 13:00:16 -  1.2
 +++ class.news.php  31 May 2007 00:03:25 -  1.3
 @@ -5,10 +5,14 @@
var $list = array();
var $dirnews;
var $limit = 0;
 +  var $lang = en;

function __construct() {
  $i = 0;
 -$this-dirnews = p/news/.$_GET['l'];
 +if (isset($_GET['l'])  (strlen($_GET['l']) == 2)) {
 +  $this-lang = $_GET['l'];
 +}
 +$this-dirnews = p/news/ . $this-lang;


This isn't a lot better either,
Sure it helps against people reading files off the server, but it doesn't
help against someone passing any random two character value for l

I think the correct way to do this is to have a language class that does
language checking and falls back to a default value on errors, and that can
be used across the whole code of the site

I will try to prepare a patch for that in the next 8 hours if I have some
free time at work.

-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] subsections in web/www/site

2007-04-24 Thread Chady Kassouf
Ah.. sorry about that
I didn't look enough to see that there are subsections of subsections.
I'll come up with a fix shortly.

On 4/24/07, The Rasterman Carsten Haitzler [EMAIL PROTECTED] wrote:

 On Mon, 23 Apr 2007 20:39:42 +0200 Andreas Volz [EMAIL PROTECTED]
 babbled:

  Hello,
 
  the last CVS commit in web/www/site didn't fix the problem. Now it's
  possible to see subdirs, but not subsubdirs. See:
 
  About-Libraries  (Evas,Eet,Edje,... are missing here)

 indeed - they are now broken. and what was wrong with the browser's own
 back
 button? it's there for a good reason :)

  regards
  Andreas
 
  --
 
  Enlightenment CVS committal
 
  Author  : leviathan
  Project : web
  Module  : www
 
  Dir : web/www/site
 
 
  Modified Files:
site.php
 
 
  Log Message:
  When a page has subsections, you can see the subsections links at the
  top, but if you go inside the subsection, the links aren't there
  anymore, and you have to use the browser's back button to find more
  subsections. This patch adds the subsections links to the page when you
  are inside one of the subsections. I added a .selected class in the
  stylesheet to know which page you are on, now it puts and underline, so
  whoever is working on the design can change it for something more
  suitable
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  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]
 裸好多
 Tokyo, Japan (東京 日本)

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel




-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E CVS: www devilhorns

2007-03-26 Thread Chady Kassouf
On 3/27/07, Nathan Ingersoll [EMAIL PROTECTED] wrote:

 The minimum size I've found that has a legible font across platforms
 is setting the main div to 0.9em. Anything below that causes severe
 shape loss on OS X with the Vera font.


Actually, I think that the normal thing to do is to use 1em for body text,
that way, if blind me sets the preferences to 14 points, I'll get those 14
points in the body text just as I selected.



-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
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.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [PATCH] Etk combobox

2007-03-11 Thread Chady Kassouf
Hi Simon,

yes, these functions make sense only for etk-perl, and the reasson for these
is that I cannot use va_lists in perl xs, so I will have to manually count
the arguments and do proper casting, so with 5 possible columns per item,
and 2 possible types per column, it's a combinatorial explosion of functions
that I wasn't willing to write.
It worked for the etk_tree_row_fields_set because that function takes the
column too, so I can tell what is the type of the column instead of guessing
it from the variable types.
I'll see if I can keep some internal metadata in perl associated with the
combobox items, and from that build up the function calls accordingly.


On 3/9/07, Simon TRENY [EMAIL PROTECTED] wrote:

 Hi Chady!

 Why exactly do you need these two functions? To insert new items in
 a combobox? If that's so, couldn't you just do what you did with
 row insertion in an Etk_Tree? iirc you fixed row insertion by using
 directly etk_tree_row_fields_set(). Since there is no
 etk_tree_row_fields_nth_set() in the Etk_Tree API, couldn't it be
 possible to do something similar for the combobox?

 The problem with these two functions is that they don't really make
 sense except for Etk-Perl. I don't see any use for them since we already
 have etk_combobox_item_fields_set/get().

 Regards,
 Simon


 On Fri, 9 Mar 2007 10:27:20 +0200,
 Chady Kassouf [EMAIL PROTECTED] wrote :

  Since there is work going on the combobox now, I thought this might
  go in (or something like it)
 
  This patch introduces two functions:
  etk_combobox_item_fields_nth_set and etk_combobox_item_fields_nth_get
  to get/set a specific column's widget of the combobox.
  This is needed for perl bindings.
 
  Regards,
 




-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
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.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] edje_decc patch

2007-02-28 Thread Chady Kassouf
On 2/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 You think I have to open the edje file directy instead of decompile and
 parse? if so, where can I found info on edje files structure?



Check out how edje does it in edje_cc_sources.c in edje/src/bin/


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
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.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E17 cvs updater needs updates?

2007-01-29 Thread Chady Kassouf
Hi,

Etk was moved from e17/proto/etk to e17/libs/etk
and enhance was moved from e17/proto/enhance to e17/libs/enhance

And here's a webcvs:
http://e.kevb.net/cgi-bin/viewvc.cgi/

Regards,

On 1/29/07, Alexander Griesser [EMAIL PROTECTED] wrote:

 Hi folks!

 I just wanted to ask if there areany updates available to the E17 cvs
 updater as it currently fails on some items (maybe they have been
 relocated inside the CVS tree?):

 Updating etk...
 cvs server: cannot find module `e17/proto/etk' - ignored
 cvs [checkout aborted]: cannot expand modules

 Updating enhance...
 cvs server: cannot find module `e17/proto/enhance' - ignored
 cvs [checkout aborted]: cannot expand modules

 As a result of not finding etk, entropy doesn't compile:

 layout_etk_simple.c:794: error: too few arguments to function
 'etk_tree_model_image_new'
 layout_etk_simple.c:795: error: too few arguments to function
 'etk_tree_model_text_new'

 If someone would like to provide me with the detailed path informations,
 resp. with a list of all available items (or point me to a WebCVS
 interface), I'd like to update the E17 CVS updater so that it is
 up-to-date again.

 best regards,
 --
 |   .-.  |Alexander Griesser -- [EMAIL PROTECTED] | .''`. |
 |   /v\   \  http://www.tuxx-home.at/ / : :' : |
 | /(   )\  |  GPG-KeyID: 0xA2949B5A  |  `. `'  |
 |  ^^ ^^   `-'`-   |

 -
 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.phpp=sourceforgeCID=DEVDEV
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel




-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
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.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Edje editor updates + engrave big patch

2007-01-14 Thread Chady Kassouf
On 1/14/07, DaveMDS [EMAIL PROTECTED] wrote:

 Hi all, some update for my work on the edje_editor:

 Tonight I have committed a new editor release.
 This version need the attached engrave patch that implement the following:
 * There is no more one evas object per part_state, but one per part.
 Because we never had to display more than one state at the same
 time, and so we
 really don't  need more than one evas_object per part.
 In this way I have cut  down the number of object to display and
 reposition,
 making the libraries more clean an fast.
 * Removed engrave_canvas_part_state_redraw to make place at
 engrave_canvas_part_redraw.
 * Changed the evas object creation and manipulation routines in this way:
  engrave_canvas_part_state_image|rect|text_setup now doesn't create
 the various
  object (that is simply an evas_object_image|rect|text_add) but
 redraw and reposition
  the parts.
 * The current part_state is draw instead of draw only the default 0.0

 This are just a first patch, in a 'short' time I will make engrave
 capable of manipulate (not
 only display) all the stuff in the edje.

 Hope that engrave authors like this various things and want to commit
 the patch.



Hi Dave,

I have committed your patch, and I agree with dan, since you're the only one
using engrave_canvas right now go ahead and commit your changes to the
canvas directly, but if the changes require radical changes in engrave,
discuss them on the list or IRC first.

P.S: you probably want to just draw a rectangle for the SWALLOW parts.

-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
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.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


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

2007-01-02 Thread Chady Kassouf
-- Forwarded message --
From: Enlightenment CVS [EMAIL PROTECTED]
snip

Log Message:
* Some parser mod
* Make the parser support ':' style EDC (instead of ',')
* Make the preprocessor work better (not finish yet)

Hi Dave,

Instead of having to do your own parser, consider looking at engrave. It
gives you the ability to load .edc or .edj files and provides an API to
access and manipulate the structure.



-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
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.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E CVS: libs/engrave leviathan

2007-01-02 Thread Chady Kassouf
On 1/2/07, dan sinclair [EMAIL PROTECTED] wrote:


 Thanks for picking this up. We've been kind of ignoring it as nothing
 has been using it. As an aside, engrave currently has problems with the
 e17.edj theme from EWL. It isn't able to find the main theme file.



Okay I looked at the EWL e17 theme, and there are two problems with engrave
regarding that:

1 - the e17 theme uses a feature from edje that allows you to use
single-word unquoted strings, which the parser didn't recognize. I
implemented a fix, it seems to be working, but I need to test it more before
I commit it.

2 - the theme also uses un-named parts, for which engrave_out will output a
name: (null); and thus edje_cc won't compile it. This is easily solved by
checking if the name exist before writing that line out, but I'm wondering
if there are other edc statements that can be omitted too.

So anyway, I will commit the changes tonight when I'm back home.

Not sure if you noticed but Engrave had the start of a 'canvas' widget
 to allow people to edit .edc files. It was started, and could do
 text/rects/images I believe at one point but is probably terribly out of
 date with respect to the edje calc code. Feel free to rip the _canvas
 stuff out if you don't think it's worth it but might be handy to have
 editing code all in one library.


I haven't looked at the canvas code cause my main concern was updating the
parser to add the missing edje stuff, I'll have a look at it next.


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
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.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Engrave will not compile .... patched.

2007-01-01 Thread Chady Kassouf
Fixed, thanx.

It appears that bison BSD is less forgiving about missing semicolons, cause
mine didn't complain about it, that's why I never spotted it.


On 12/31/06, Ravenlock [EMAIL PROTECTED] wrote:

 Patch attached to allow engrave to compile on my system.  No idea if
 this is a FreeBSD issue or not.  Someone hinted it might be.

 --
 Regards,
Ravenlock


 Index: e17/libs/engrave/src/lib/engrave.y
 ===
 RCS file: /var/cvs/e/e17/libs/engrave/src/lib/engrave.y,v
 retrieving revision 1.20
 diff -u -r1.20 engrave.y
 --- e17/libs/engrave/src/lib/engrave.y  30 Dec 2006 08:49:27 -
 1.20
 +++ e17/libs/engrave/src/lib/engrave.y  31 Dec 2006 22:05:21 -
 @@ -657,7 +657,8 @@
 ;

 gradient: GRAD OPEN_BRACE {section = GRAD;} grad_statement CLOSE_BRACE
 semicolon_maybe { section = STATE;}
 -
 +;
 +
 grad_statement: /* empty */
 | grad_spectrum grad_statement
 | grad_type grad_statement
 @@ -997,5 +998,3 @@
  engrave_cur_file, engrave_lnum, engrave_col);
 exit(-1);
 }
 -
 -


 -
 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.phpp=sourceforgeCID=DEVDEV

 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel





-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
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.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Engrave patch

2006-12-25 Thread Chady Kassouf

Hi,

here's the first of a series of patches for engrave to once again update it
with edje.
This adds the spectrum parts.

I intend to continue updating all aspects of engrave, so I ask for
permission to commit the changes directly (I already have dev access under
the username leviathan)

Regards and Merry Christmas to all,

--
Chady 'Leviathan' Kassouf
http://chady.net/
Index: src/lib/Engrave.h
===
RCS file: /cvs/e/e17/libs/engrave/src/lib/Engrave.h,v
retrieving revision 1.14
diff -u -r1.14 Engrave.h
--- src/lib/Engrave.h   6 Sep 2006 07:31:31 -   1.14
+++ src/lib/Engrave.h   25 Dec 2006 17:19:42 -
@@ -101,6 +101,7 @@
 #include engrave_data.h
 #include engrave_image.h
 #include engrave_font.h
+#include engrave_spectrum.h
 #include engrave_program.h
 #include engrave_part_state.h
 #include engrave_part.h
Index: src/lib/Makefile.am
===
RCS file: /cvs/e/e17/libs/engrave/src/lib/Makefile.am,v
retrieving revision 1.12
diff -u -r1.12 Makefile.am
--- src/lib/Makefile.am 8 Feb 2006 04:38:47 -   1.12
+++ src/lib/Makefile.am 25 Dec 2006 17:19:42 -
@@ -23,6 +23,7 @@
engrave_enums.h \
engrave_file.h \
engrave_font.h \
+   engrave_spectrum.h \
engrave_style.h \
engrave_group.h \
engrave_image.h \
@@ -42,6 +43,7 @@
engrave_data.c \
engrave_file.c \
engrave_font.c \
+   engrave_spectrum.c \
engrave_style.c \
engrave_group.c \
engrave_image.c \
Index: src/lib/engrave.l
===
RCS file: /cvs/e/e17/libs/engrave/src/lib/engrave.l,v
retrieving revision 1.9
diff -u -r1.9 engrave.l
--- src/lib/engrave.l   8 Feb 2006 04:38:47 -   1.9
+++ src/lib/engrave.l   25 Dec 2006 17:20:16 -
@@ -116,6 +116,8 @@
 fit{ KEYWORD_RETURN(FIT); }
 font   { KEYWORD_RETURN(FONT); }
 fonts  { KEYWORD_RETURN(FONTS); }
+spectra{ KEYWORD_RETURN(SPECTRA); }
+spectrum   { KEYWORD_RETURN(SPECTRUM); }
 styles { KEYWORD_RETURN(STYLES); }
 style  { KEYWORD_RETURN(STYLE); }
 base   { KEYWORD_RETURN(SBASE); }
Index: src/lib/engrave.y
===
RCS file: /cvs/e/e17/libs/engrave/src/lib/engrave.y,v
retrieving revision 1.15
diff -u -r1.15 engrave.y
--- src/lib/engrave.y   8 Feb 2006 04:38:47 -   1.15
+++ src/lib/engrave.y   25 Dec 2006 17:20:34 -
@@ -46,6 +46,7 @@
 %token SINUSOIDAL ACCELERATE DECELERATE IMAGE RECT SWALLOW
 %token NONE PLAIN OUTLINE SOFT_OUTLINE SHADOW SOFT_SHADOW 
 %token OUTLINE_SHADOW OUTLINE_SOFT_SHADOW VERTICAL HORIZONTAL BOTH
+%token SPECTRA SPECTRUM
 %left MINUS PLUS
 %left TIMES DIVIDE
 %left NEG /* negation--unary minus */
@@ -70,6 +71,7 @@
 edjes: /* blank */
| images edjes 
| fonts edjes
+   | spectra edjes
| collections edjes
| data edjes
| error {
@@ -81,6 +83,30 @@
 
 collections:  COLLECTIONS OPEN_BRACE {section = GROUPS; } collection_statement 
CLOSE_BRACE semicolon_maybe { section = BASE; }
;
+
+spectra: SPECTRA OPEN_BRACE { section = SPECTRA; } spectra_statement 
CLOSE_BRACE semicolon_maybe { section = BASE; }
+   ;
+
+spectra_statement: /* empty */
+   | spectra_statement spectrum
+   ;
+
+spectrum: SPECTRUM OPEN_BRACE { section = SPECTRUM; } spectrum_statement 
CLOSE_BRACE semicolon_maybe { section = SPECTRA; }
+   ;
+
+spectrum_statement: /* blank */
+   | spectrum_name spectrum_statement 
+   | spectrum_color spectrum_statement
+   ;
+
+spectrum_name: NAME COLON STRING SEMICOLON {
+   engrave_parse_spectrum_name($3);
+   }
+   ;
+
+spectrum_color: COLOR COLON exp exp exp exp exp SEMICOLON {
+engrave_parse_spectrum_color((int)$3, (int)$4, (int)$5, 
(int)$6, (int)$7);
+   }
 
 fonts:  FONTS OPEN_BRACE { section = FONTS; } font_statement CLOSE_BRACE 
semicolon_maybe { section = BASE; }
;
Index: src/lib/engrave_file.c
===
RCS file: /cvs/e/e17/libs/engrave/src/lib/engrave_file.c,v
retrieving revision 1.20
diff -u -r1.20 engrave_file.c
--- src/lib/engrave_file.c  6 Sep 2006 07:31:31 -   1.20
+++ src/lib/engrave_file.c  25 Dec 2006 17:23:01 -
@@ -128,6 +128,22 @@
 }
 
 /**
+ * engrave_file_spectrum_add - add the spectrum to the engrave file.
+ * @param e: The Engrave_File to add the font too.
+ * @param es: The Engrave_Spectrum to add to the file.
+ *
+ * @return Returns no value.
+ */
+EAPI void
+engrave_file_spectrum_add(Engrave_File *e, Engrave_Spectrum *es)
+{
+  if (!e || !es) return;
+  e-spectra = 

Re: [E-devel] exhibit fullscreen patch

2006-12-14 Thread Chady Kassouf
On 12/14/06, phriedrich [EMAIL PROTECTED] wrote:

 Hi,

 as I'm using gqview, I really like the exhibit image viewer.
 The attached patch allows you to toggle to fullscreen mode.

 A further improvement would be to have a black background in fullscreen
 instead of the one colored with the etk's background color.

 In fullscreen mode the next image can be selected with SPACE and the
 previous with 'b'.


Thank you

Codewarrior, quick, if this patch is good apply it please. :D

Now all we need is the ability to say from the command line: exhibit -f bleh
and run the fullscreen mode and I can stop using gqview.



-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
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.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Some TODO enlightenment please

2006-11-26 Thread Chady Kassouf
On 11/27/06, Alberto [EMAIL PROTECTED] wrote:

 8--snip-
 Perhaps you are right, that it was silly to suggest it, but this is why
 I wanted to emphasize, making it an option within the theme's source
 code, but since we are dealing with E's internal windows its probably
 for the best that they are as flexible as possible. Thus i retract the
 idea.


Well, unless it's also an option for the user to select, you're still giving
control to the themer, not the user, and a lot of users do not like someone
else deciding for them what they can and cannot do.


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
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.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


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

2006-10-17 Thread Chady Kassouf
On 10/17/06, Hisham Mardam Bey [EMAIL PROTECTED] wrote:



 Nice work Chady!

 Could you show us some examples of how this works?



Thanx,

I modified etk_test.pl to use this method throughout. You can see in the
diff the changes.


-- 
Chady 'Leviathan' Kassouf
http://chady.net/
-
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=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Website Heated Discussions

2006-09-12 Thread Chady Kassouf
On 9/12/06, Andrew Williams [EMAIL PROTECTED] wrote:
On Mon, 2006-09-11 at 16:45 -0500, [EMAIL PROTECTED] wrote:[snip] How does XSM store the page content internally? It seems like many people dislike editing files in a text box. Is there any way it could
 use files on the fs? Then just have a cmd line script to compile the site?It is stored in XML files, so it can be edited but you need to rememberthe encoding issues for HTML content.
Can't these XML files be in CVS?so people can use whatever tool they like to edit them, and then check them in, and a script similar to the commits email script can recompile the site on commits.
This is one way to keep most people happy, since it lets them use whatever they like to edit contents. ( I don't know about adding contents though )-- Chady 'Leviathan' Kassouf
http://chady.net/
-
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=lnkkid=120709bid=263057dat=121642___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] e17 hanging

2006-08-20 Thread Chady Kassouf
I'm not being able to reproduce this consistently, but sometimes E hangs on me, at first I thought this was the same issue I've been having with the nvidia driver causing a system lockdown, but I changed to the nv driver, and a different sort of hang started happening; I can still use the mouse, the keyboard, I can switch to a virtual console, but E is just not responding.
It just happened now, and I got this backtrace, not sure if that's helpful enough to determine what's the problem.This usually happens when I start firefox without internet connection, and the session saver kicks in, and there's some tab with POST data, I think the border_free is related to dismissing the firefox message box, but I can't be sure of that.
-- Chady 'Leviathan' Kassoufhttp://chady.net/
(gdb) bt
#0  0xb79da189 in pthread_setcanceltype () from /lib/tls/libc.so.6
#1  0xb7926db2 in putenv () from /lib/tls/libc.so.6
#2  0xb7927151 in setenv () from /lib/tls/libc.so.6
#3  0x080a12e5 in e_util_env_set (var=0x2 Address 0x2 out of bounds, 
val=0xfffc Address 0xfffc out of bounds) at e_utils.c:79
#4  0x080aae9d in e_sigabrt_act (x=6, info=0xbfe5ca0c, data=0xbfe5ca8c) at 
e_signals.c:160
#5  signal handler called
#6  0xb79247c7 in raise () from /lib/tls/libc.so.6
#7  0xb792606b in abort () from /lib/tls/libc.so.6
#8  0xb795b545 in __fsetlocking () from /lib/tls/libc.so.6
#9  0xb7961b97 in malloc_usable_size () from /lib/tls/libc.so.6
#10 0xb7962032 in free () from /lib/tls/libc.so.6
#11 0x0807e160 in _e_border_free (bd=0x2408) at e_border.c:3076
#12 0x08097a99 in e_object_free (obj=0x8376db0) at e_object.c:82
#13 0x08097ae8 in e_object_unref (obj=0x0) at e_object.c:103
#14 0x080853a6 in _e_border_event_border_focus_out_free (data=0x0, 
ev=0x81bbd10) at e_border.c:6650
#15 0xb7cdd71d in _ecore_event_del (event=0x83be490) at ecore_events.c:356
#16 0xb7cdd8c8 in _ecore_event_call () at ecore_events.c:444
#17 0xb7ce383e in _ecore_main_loop_iterate_internal (once_only=0) at 
ecore_main.c:639
#18 0xb7ce2e3c in ecore_main_loop_begin () at ecore_main.c:82
#19 0x08064b76 in main (argc=1, argv=0xbfe8b2f4) at e_main.c:713
-
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=lnkkid=120709bid=263057dat=121642___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] cvs, servers and stuff.

2006-08-17 Thread Chady Kassouf
On 8/17/06, The Rasterman Carsten Haitzler [EMAIL PROTECTED] wrote:
personally i would have no problem in a server-side auto-build of tarballs.what do people think? should we perhaps have the anoncvs server do daily (ormaybe several times per day) builds of packages? not rpm or deb but make
dist; ie something like the following run maybe every 4 or 8 hours? once a day?I think that while this option might be useful for load, it takes a lot more bandwidth, and is bad for users, as they would have to download hundreds of megabytes each time a 1 Kb patch is in.
I vote for the cvs mirrors as at least it's easier on the user's AND the server's bandwidth.-- Chady 'Leviathan' Kassoufhttp://chady.net/

-
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=lnkkid=120709bid=263057dat=121642___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] [PATCH] e_entry_dialog: remove space from entry

2006-08-07 Thread Chady Kassouf
This is minor, and is only used in ibarWhen you want to add a new bar source, the dialog has a space in the entry and you can't see that, so you end up creating a directory with a space as the first character.
I checked e_entry but the space seems there for a reason, removing it makes the entry field collapse, so this hopefully fixes that particular issue with the ibar config.-- Chady 'Leviathan' Kassouf
http://chady.net/
Index: e_entry_dialog.c
===
RCS file: /cvs/e/e17/apps/e/src/bin/e_entry_dialog.c,v
retrieving revision 1.1
diff -u -r1.1 e_entry_dialog.c
--- e_entry_dialog.c2 Jun 2006 19:07:50 -   1.1
+++ e_entry_dialog.c7 Aug 2006 22:42:46 -
@@ -40,6 +40,7 @@
ed-ok.data = data;
ed-cancel.func = func2;
ed-cancel.data = data;
+   ed-text = strdup();

dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
if (!dia) 
-
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=lnkkid=120709bid=263057dat=121642___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] [PATCH] add data set/get of specific columns of an Etk_Combobox_Item

2006-08-04 Thread Chady Kassouf
Hi,This is to allow people to get/set the widgets on specific columns of the combobox item.-- Chady 'Leviathan' Kassoufhttp://chady.net/
Index: etk_combobox.c
===
RCS file: /cvs/e/e17/proto/etk/src/lib/etk_combobox.c,v
retrieving revision 1.18
diff -u -r1.18 etk_combobox.c
--- etk_combobox.c  30 Jul 2006 21:09:32 -  1.18
+++ etk_combobox.c  4 Aug 2006 18:54:47 -
@@ -552,6 +552,61 @@
 }
 
 /**
+ * @brief Set the contents of a column in the combobox item
+ * @param item a combobox item
+ * @param col the column number
+ * @param data the data to set
+ * See etk_combobox_item_prepend()'s ... argument for more information
+ */
+void etk_combobox_item_col_set(Etk_Combobox_Item *item, int col, void *data)
+{
+   Etk_Combobox * combobox;
+   int cols;
+   
+   if (!item)
+  return;
+   
+   combobox = item-combobox;
+   cols = combobox-num_cols;
+   if (col = cols)
+  return;
+
+   if (item-widgets[col])
+  etk_object_destroy(ETK_OBJECT(item-widgets[col]));
+
+   switch(combobox-cols[col]-type)
+   {
+  case ETK_COMBOBOX_LABEL:
+ item-widgets[col] = etk_label_new((char *) data);
+ break;
+  case ETK_COMBOBOX_IMAGE:
+  case ETK_COMBOBOX_OTHER:
+ item-widgets[col] = (Etk_Widget *)data;
+  default:
+ break;
+   }
+
+   etk_widget_parent_set(item-widgets[col], ETK_WIDGET(item));
+   etk_widget_pass_mouse_events_set(item-widgets[col], ETK_TRUE);
+   etk_widget_show(item-widgets[col]);
+}
+
+/**
+ * @brief Gets the contents of a column in the combobox item
+ * @param item a combobox item
+ * @param col the column number
+ * @return the data of the column
+ * See etk_combobox_item_prepend()'s ... argument for more information
+ */
+void *etk_combobox_item_col_get(Etk_Combobox_Item *item, int col)
+{
+   if (!item || col = item-combobox-num_cols)
+  return NULL;
+
+   return item-widgets[col];
+}
+
+/**
  * @brief Removes an item from the combobox
  * @param combobox a combobox
  * @param item the item to remove
Index: etk_combobox.h
===
RCS file: /cvs/e/e17/proto/etk/src/lib/etk_combobox.h,v
retrieving revision 1.10
diff -u -r1.10 etk_combobox.h
--- etk_combobox.h  16 May 2006 22:03:00 -  1.10
+++ etk_combobox.h  4 Aug 2006 18:54:47 -
@@ -127,6 +127,9 @@
 Etk_Combobox_Item *etk_combobox_item_append_relative(Etk_Combobox *combobox, 
Etk_Combobox_Item *relative, ...);
 Etk_Combobox_Item *etk_combobox_item_append_relative_valist(Etk_Combobox 
*combobox, Etk_Combobox_Item *relative, va_list args);
 
+void etk_combobox_item_col_set(Etk_Combobox_Item *item, int col, void *data);
+void *etk_combobox_item_col_get(Etk_Combobox_Item *item, int col);
+
 void etk_combobox_item_remove(Etk_Combobox *combobox, Etk_Combobox_Item *item);
 void etk_combobox_clear(Etk_Combobox *combobox);
 
-
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.phpp=sourceforgeCID=DEVDEV___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E17 'todo'

2006-07-31 Thread Chady Kassouf
On 7/31/06, The Rasterman Carsten Haitzler [EMAIL PROTECTED] wrote:
for tweening transitions. this is tough. if start and end gradients dont havethe same control points (number, position) what do you do? do you try and mergecontrol points? or do you do a merged overlay of all control points so the
intermediat grad is a superset of all control points (exact duplicates removed)and then just linear interp the colors of these control points (and calculatetheir rgba from their appropriate positions in the start and end grdients). i
would say that is what you want... :)Well, I'm not really familiar with graphics programming concepts, but I do wonder what is it about gradients that makes them so important to calculate (as opposed to just using an image)
Yes, I know that calculated gradients will scale better than an image ever will, but I don't see a really compelling reason to use gradients instead of images from a user perspective.It's far easier to just open a graphics editor, select the gradient tool and create an image, as opposed to worrying about control points and directions and whatnot.
Can someone please explain to me what is so good about having evas create the gradients?-- Chady 'Leviathan' Kassoufhttp://chady.net/
-
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.phpp=sourceforgeCID=DEVDEV___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] [PATCH] hide border menu if borders are locked

2006-07-20 Thread Chady Kassouf
This simple patch hides the borders menu if the borders are locked.

-- Chady 'Leviathan' Kassoufhttp://chady.net/
Index: e_int_border_menu.c
===
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_border_menu.c,v
retrieving revision 1.35
diff -u -r1.35 e_int_border_menu.c
--- e_int_border_menu.c 20 Jul 2006 11:41:12 -  1.35
+++ e_int_border_menu.c 20 Jul 2006 14:06:53 -
@@ -140,13 +140,16 @@
 (char *)e_theme_edje_file_get(base/theme/borders,
   
widgets/border/default/remember),
 widgets/border/default/remember);
-   mi = e_menu_item_new(m);
-   e_menu_item_label_set(mi, _(Borders));
-   e_menu_item_callback_set(mi, _e_border_menu_cb_border, bd);
-   e_menu_item_icon_edje_set(mi,
+   if (!bd-lock_border)
+ {
+mi = e_menu_item_new(m);
+e_menu_item_label_set(mi, _(Borders));
+e_menu_item_callback_set(mi, _e_border_menu_cb_border, bd);
+e_menu_item_icon_edje_set(mi,
 (char *)e_theme_edje_file_get(base/theme/borders,
   
widgets/border/default/borders),
 widgets/border/default/borders);
+ }
 
if (!bd-sticky)
  {
-
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.phpp=sourceforgeCID=DEVDEV___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] [BUG] ghost windows

2006-07-16 Thread Chady Kassouf
Hi, 

I'm not sure if this is the same problem that was talked about earlier, but I got accross a strange bug.
Steps to reproduce:

1- open a window
2- make the window sticky
3- Send the window to another desktop.

Now there will be a ghost window sticking around.
-- Chady 'Leviathan' Kassoufhttp://chady.net/

-
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=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [BUG] ghost windows

2006-07-16 Thread Chady Kassouf
On 7/16/06, The Rasterman Carsten Haitzler [EMAIL PROTECTED] wrote:
On Sun, 16 Jul 2006 09:43:03 -0200 Chady Kassouf [EMAIL PROTECTED]babbled: Hi, I'm not sure if this is the same problem that was talked about earlier, but
 I got accross a strange bug. Steps to reproduce: 1- open a window 2- make the window sticky 3- Send the window to another desktop. Now there will be a ghost window sticking around.
interesting - send to desktop should actually be entirely useless if stickyanyway... shoudl remove the menu in that case - will note down.

sorry about that, I probably had some stale object files somewhere,
because I just recompiled and I cannot reproduce the error anymore.

In any case, here's a patch to remove the menu if the border is sticky.

Also, a patch to fix one TODO item, make the pager honor the window lock.

-- Chady 'Leviathan' Kassoufhttp://chady.net/
Index: e_int_border_menu.c
===
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_border_menu.c,v
retrieving revision 1.28
diff -u -r1.28 e_int_border_menu.c
--- e_int_border_menu.c 2 Jul 2006 16:19:51 -   1.28
+++ e_int_border_menu.c 16 Jul 2006 18:25:14 -
@@ -147,17 +147,20 @@
 (char *)e_theme_edje_file_get(base/theme/borders,
   
widgets/border/default/borders),
 widgets/border/default/borders);
-   mi = e_menu_item_new(m);
-   e_menu_item_separator_set(mi, 1);
 
-   mi = e_menu_item_new(m);
-   e_menu_item_label_set(mi, _(Send to Desktop));
-   e_menu_item_submenu_pre_callback_set(mi, _e_border_menu_cb_sendto_pre, bd);
-   e_menu_item_icon_edje_set(mi,
+   if (!bd-sticky) 
+ {
+   mi = e_menu_item_new(m);
+   e_menu_item_separator_set(mi, 1);
+
+   mi = e_menu_item_new(m);
+   e_menu_item_label_set(mi, _(Send to Desktop));
+   e_menu_item_submenu_pre_callback_set(mi, _e_border_menu_cb_sendto_pre, 
bd);
+   e_menu_item_icon_edje_set(mi,
 (char *)e_theme_edje_file_get(base/theme/borders,
   
widgets/border/default/sendto),
 widgets/border/default/sendto);
-   
+ }
mi = e_menu_item_new(m);
e_menu_item_separator_set(mi, 1);

Index: TODO
===
RCS file: /cvs/e/e17/apps/e/TODO,v
retrieving revision 1.365
diff -u -r1.365 TODO
--- TODO14 Jul 2006 20:01:47 -  1.365
+++ TODO16 Jul 2006 18:19:34 -
@@ -30,8 +30,6 @@
   a big xev (xev -g 1280x1024) that won't fit it gets placed offscreen to the
   right of zone 2
 * BUG: Hiding the label of e_widget_slider causes the slider line to disappear
-* BUG: Window locks should be honored by the pager (e.g. Lock me from
-  changing position)
 * BUG: in screen resolution change dialog the flip config is a pair of raidio
   buttons. it should be a pair of checkboxes to turn that flip bit on or
   off etc. etc. this means adding check icon widgets too liek radio icons too
Index: src/modules/pager/e_mod_main.c
===
RCS file: /cvs/e/e17/apps/e/src/modules/pager/e_mod_main.c,v
retrieving revision 1.179
diff -u -r1.179 e_mod_main.c
--- src/modules/pager/e_mod_main.c  2 Jul 2006 18:55:32 -   1.179
+++ src/modules/pager/e_mod_main.c  16 Jul 2006 18:19:52 -
@@ -1286,6 +1286,7 @@
ev = event_info;
pw = data;
if (!pw) return;
+   if (pw-border-lock_user_location) return;
/* FIXME: make this configurable */
if ((ev-button == 1) || (ev-button == 2))
  {

-
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=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Maximize loses border type bug

2006-07-16 Thread Chady Kassouf
Hi,

I was tracking down the bug for maximize loses border type and found the following:

The border name is being nulled at: e_border.c in the eval function
around the line 5100 or so, and later down that function it's being
reset to default.
But I'm not familiar with X stuff, so I'm not sure why is it being
nulled there (and in several other places for that matter), so if
anyone has any idea, I think that's where it needs fixing.-- Chady 'Leviathan' Kassoufhttp://chady.net/

-
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=lnkkid=120709bid=263057dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] [PATCH] a fix to engrave parsing of images

2006-02-08 Thread Chady Kassouf
Hello,

Here's a patch that adds a list of temporary image structures that get
created if the image they reference hasn't been parsed yet.

If the .edc file is correct, at the end of parsing the temp list should be empty, if not, we free it and report errors.-- Chady 'Leviathan' Kassoufhttp://chady.net/

? lib/libengrave_la-engrave_style.lo
Index: bin/engrave_canvas_test_main.c
===
RCS file: 
/cvsroot/enlightenment/e17/libs/engrave/src/bin/engrave_canvas_test_main.c,v
retrieving revision 1.4
diff -u -r1.4 engrave_canvas_test_main.c
--- bin/engrave_canvas_test_main.c  4 Nov 2005 23:49:11 -   1.4
+++ bin/engrave_canvas_test_main.c  9 Feb 2006 07:32:51 -
@@ -56,6 +56,12 @@
 return 1;
 }
 
+if (!ecore_evas_init()) {
+printf(Unable to setup ecore_evas\n);
+return 1;
+}
+
+
 ee = ecore_evas_software_x11_new(NULL, 0, 0, 0, 640, 480);
 ecore_evas_title_set(ee, Engrave Canvas Test App);
 ecore_evas_callback_resize_set(ee, resize_cb);
Index: lib/engrave_file.c
===
RCS file: /cvsroot/enlightenment/e17/libs/engrave/src/lib/engrave_file.c,v
retrieving revision 1.19
diff -u -r1.19 engrave_file.c
--- lib/engrave_file.c  8 Feb 2006 04:38:47 -   1.19
+++ lib/engrave_file.c  9 Feb 2006 07:32:57 -
@@ -37,6 +37,12 @@
   }
   ef-images = evas_list_free(ef-images);
 
+  for (l = ef-temp; l; l = l-next) {
+Engrave_Image *ei = l-data;
+engrave_image_free(ei);
+  }
+  ef-temp = evas_list_free(ef-temp);
+
   for (l = ef-fonts; l; l = l-next) {
 Engrave_Font *font = l-data;
 engrave_font_free(font);
@@ -143,6 +149,35 @@
 }
 
 /**
+ * engrave_file_temp_image_add - add the image to the engrave file.
+ * @param ef: The Engrave_File to add the image to.
+ * @param ei: The Engrave_Image to add to the file.
+ *
+ * @return Returns no value.
+ */
+void
+engrave_file_temp_image_add(Engrave_File *ef, Engrave_Image *ei)
+{
+  if (!ef || !ei) return;
+  ef-temp = evas_list_append(ef-temp, ei);
+  engrave_image_parent_set(ei, ef);
+}
+
+/**
+ * engrave_file_temp_image_del - remove the image to the engrave file.
+ * @param ef: The Engrave_File to add the image to.
+ * @param ei: The Engrave_Image to add to the file.
+ *
+ * @return Returns no value.
+ */
+void
+engrave_file_temp_image_del(Engrave_File *ef, Engrave_Image *ei)
+{
+  if (!ef || !ei) return;
+  ef-temp = evas_list_remove(ef-temp, ei);
+}
+
+/**
  * engrave_file_image_add - add the image to the engrave file.
  * @param ef: The Engrave_File to add the image too.
  * @param ei: The Engrave_Image to add to the file.
@@ -258,6 +293,27 @@
 }
 
 /**
+ * engrave_file_temp_image_by_name_find - returns the Engrave_Image with the 
given name.
+ * @param ef: The Engrave_File to search for the image in.
+ * @param name: The name of the image to search for.
+ *
+ * @return Returns the Engrave_Image with the given @a name or NULL if no
+ * corresponding image can be found.
+ */
+Engrave_Image *
+engrave_file_temp_image_by_name_find(Engrave_File *ef, const char *name)
+{
+  Evas_List *l;
+  for (l = ef-temp; l; l = l-next)
+  {
+Engrave_Image *im = l-data;
+if (im  !strcmp(engrave_image_name_get(im), name))
+  return im;
+  }
+  return NULL;
+}
+
+/**
  * engrave_file_images_count - get the number of images
  * @param ef: The Engrave_File to check for images
  * 
Index: lib/engrave_file.h
===
RCS file: /cvsroot/enlightenment/e17/libs/engrave/src/lib/engrave_file.h,v
retrieving revision 1.12
diff -u -r1.12 engrave_file.h
--- lib/engrave_file.h  8 Feb 2006 04:38:47 -   1.12
+++ lib/engrave_file.h  9 Feb 2006 07:32:57 -
@@ -26,6 +26,7 @@
   char *im_dir;  /** The image directory */
 
   Evas_List *images; /** The list of images in the file */
+  Evas_List *temp; /** The list of temporary images while parsing */
   Evas_List *fonts;  /** The list of fonts in the file  */
   Evas_List *styles;  /** The list of styles in the file  */
   Evas_List *data;   /** The list of data items in the file */
@@ -44,6 +45,8 @@
 void engrave_file_font_add(Engrave_File *e, Engrave_Font *ef);
 void engrave_file_style_add(Engrave_File *e, Engrave_Style *es);
 void engrave_file_image_add(Engrave_File *ef, Engrave_Image *ei);
+void engrave_file_temp_image_add(Engrave_File *ef, Engrave_Image *ei);
+void engrave_file_temp_image_del(Engrave_File *ef, Engrave_Image *ei);
 void engrave_file_data_add(Engrave_File *ef, Engrave_Data *ed);
 void engrave_file_group_add(Engrave_File *ef, Engrave_Group *eg);
 
@@ -57,6 +60,8 @@
 
 Engrave_Image *engrave_file_image_by_name_find(Engrave_File *ef,
   const char *name);
+Engrave_Image *engrave_file_temp_image_by_name_find(Engrave_File *ef,
+  const char *name);
 
 int 

Re: [E-devel] [PATCH] engrave better patch

2006-02-07 Thread Chady Kassouf
On 2/7/06, dan sinclair [EMAIL PROTECTED] wrote:
I noticed there was some semicolon_maybe stuff in there. Is this validedc? (Or, should edje be made stricter to not allow semicolons afterblocks?)It looks like it is looking for things likeimages {
};is that correct?Yes, that's what it is there for.I'm using as test case the e17 default theme, because it basically has almost everything from edje.I don't know if this is valid edc, but edje_cc compiles it.
Thanks,danChady Kassouf wrote: Hi, please disregard my first patch, here's a more complete one.
 There is one problem though: engrave_parse will check if the image exists before creating an Engrave_Image, but this will fail if the image { } group has not been read yet. examples of when this happens: the e17 default theme, the images for
 the default_icons are inside the default_fileman.edc file which is included after the icons, so when engrave is parsing the icons file it will not create the image structures. --
 Chady 'Leviathan' Kassouf http://chady.net/-- Chady 'Leviathan' Kassoufhttp://chady.net/



Re: [E-devel] CTRL+ALT+D keybinding

2006-01-24 Thread Chady Kassouf
On 1/23/06, CGA [EMAIL PROTECTED] wrote:
the action of this keybinding is to show/clean the desktop when you
have many applications' windows open if pressed once and to brign the
apps' windows back where they were if pressed again. I don't know about others, but I find that this operation is not very useful.In my daytime job, I work on windows, and since there are icons on the desktop I use Window+D a lot to show the desktop in order to open an app or move a file or something. But with enlightenment, since there is no icons on the desktop yet, I don't see a use for it. But that's just me.
On a slightly related note, the behavior for this is slightly weird. The action is to hide windows, and then show them back where they were. But what if the user hides the windows, then tries to manually bring back one of them only (try it with Ms Windows) what should happen now? and what do you do with the windows you did hide?
What I'm getting at is, it's better to have a Minimize all action instead of Hide/Show all-- Chady 'Leviathan' Kassoufhttp://chady.net/



Re: [E-devel] [RFC] Edje GUI Editor

2006-01-18 Thread Chady Kassouf
On 1/17/06, Brian Mattern [EMAIL PROTECTED] wrote:
I'll take the blame for the latest mention. I brought it up, because 1) peoplehave been asking, 2) CodeWarrior kept saying you were working on somethingand 3) over a year ago, I myself started playing around with ideas for a new
GUI Edje Editor.not blaming anyone here :)It's a good start. Having handles with modifiers to switch between absolute,
relative, and 'relative to' modes are what I had originally done in myattempt. I think one of the more flexible aspects of Edje is the ability tocombine relative and offset positioning. E.g. 'I want part A's top left
corner to be 10 px up and left from the center (0.5, 0.5) of part B'.This functionality seems to be missing from the RFC (you lock 'relative' tobe either 0 or 1).This is something that I'm thinking about a lot actually, there should be an easy way to do this, and it will probably be a tough one because there is a huge flexibility in the relative/offset concept and it will be a challenge to create an interface for them without it being cumbersome to use.
What I'm thinking about is probably some tool called bind or something, you bind two objects together, and a dialog pops up where you can specify various settings. It should mirror the I want part A's top left
corner to be 10 px up and left from the center (0.5, 0.5) of part B in a simple way. Lots of options here for how the GUI might do it, and I think they have to be explored to find what's best to use.
On of the largest issues that needs to be discussed first though is the actual
implementation of any edje editing utility. In my original attempt, I hadhooked directly into edje, allowing one to change the values of the partdescriptions 'behind the scenes', then simply let edje recalc on the next
render. This worked to some extent, but had a few issues.In order to continue, we needed a library that mimicked edje, providing an APIfor creating parts, groups, programs, etc, and modifying their values. Hence
Engrave was written. Engrave reads and writes .edc (it can read the .edcembedded in an .edj file, and write .edj files by outputting edc andcompiling, so effectively it can read/write .edj files also).
Engrave, however, is a bit out of date, and doesn't handle everything that hasbeen added to edje since (textblocks, color classes, etc). So, its a bittough to maintain, as it has its own parser, and needs to be constantly kept
up to date with edje.So, to cut short for now, the major issues that need discussion before evenworrying about exact gui details:Should edje loading / saving / editing be in a separate library as currently,
or should this be added to the edje tree? (It would be nice to only have asingle edc parser to maintain).Do we need to duplicate _edje_calc()[which does all the layout calculationfor edje] to work with our chosen representation of parts / states / etc. Or
can we somehow make the current function usable in both an editingenvironment, and a display environment? (most likely we'll need our ownstripped down version of it)I did some prototypes using engrave to load edcs and then doing my own layout calculations.
What I was thinking about is something like how the Flash editor works; you edit on a stage, and you Export to test the movie.The layouting in the editor is done by a stripped down version of _edje_calc() and when you export it compiles the .edc and lets you preview the final .edj
The problem I encountered though was that engrave is only loading the very simple edcs, add a few macros and it fails. I didn't know it was out of date.I think it's best to update engrave to the current edje, and use it in the editor because it already handles a lot of the stuff that is needed, and don't forget we need to create .edcs and not only edit them, so engrave is really the best choice I can see here.
-- Chady 'Leviathan' Kassoufhttp://chady.net/


Re: [E-devel] [RFC] Edje GUI Editor

2006-01-18 Thread Chady Kassouf
On 1/18/06, dan sinclair [EMAIL PROTECTED] wrote:
Engrave should _not_ be failing on macros. It should be runningeverything through cpp before starting the parse, and if it isn't it's abug. It will fail on redact files as it just won't understand them and
it will fail on things like textblock or smooth I think. Things thathave been added in the last while.it's not exactly failing on macros, but when they are around and the file starts to get complicated, it fails in weird places:
$ engrave_test e17/apps/e/data/themes/default.edc \ e17/apps/e/data/themes/images/ e17/apps/e/data/fonts/yyerror: syntax errorfile: e17/apps/e/data/themes/default_background.edc, line: 1, column: 6 
-- Chady 'Leviathan' Kassoufhttp://chady.net/


Re: [E-devel] [RFC] Edje GUI Editor

2006-01-18 Thread Chady Kassouf
On 1/18/06, Morten Nilsen [EMAIL PROTECTED] wrote:
well, one thing that immediately pops to mind for me, is creating agraphical anchor..just grab one part, select new anchor - click where to anchor the part..let me make a little mockup of that..
the anchor graphic should then have some options to auto-center in anobject, be absolute/relative, etc...That's the basic idea, but there's still a lot more to cover; there's offsets, on both axis, and there's the possibility to have relative to_x and to_y seperately, so we might end up with a web of lines and anchors that are not usable.
maybe the border should have three handles on each of the upper/left and lower/right corners and links visible when you click on the modify links tool or something.Here's a modified mockup to show what I'm talking about.
http://chady.net/links.pngit shows two types of linking the red object: the upper corner is linked on x to to_x of the blue object with offset 86, and the y to to_y of the yellow object with offset 40. The lower corner is linked relative to the blue object with offsets 30 70.
This is one of the many ways that this can be done.-- Chady 'Leviathan' Kassoufhttp://chady.net/


Re: [E-devel] e17 cvs - e_utils - build error

2005-12-28 Thread Chady Kassouf
Oops..I dunno why I was using evas_object_free, and now with symbol hiding it's breaking.Attached is the patch for the powers that be to apply it.On 12/29/05, 
Laurence Vanek [EMAIL PROTECTED] wrote:
not sure if e_utils is even needed for anything anymore but if so gotthis error after attempt to build from latest cvs update:=...main.o(.text+0xac9): In function `main':/root/e17/apps/e_utils/src/bin/ethemes/main.c:339: undefined ref
erence to `evas_object_free'main.o(.text+0xad5):/root/e17/apps/e_utils/src/bin/ethemes/main.c:340: undefined reference to `evas_object_free'main.o(.text+0xae1):/root/e17/apps/e_utils/src/bin/ethemes/main.
c:341: undefined reference to `evas_object_free'main.o(.text+0xaed):/root/e17/apps/e_utils/src/bin/ethemes/main.c:342: undefined reference to `evas_object_free'main.o(.text+0xaf9):/root/e17/apps/e_utils/src/bin/ethemes/main.
c:343: undefined reference to `evas_object_free'main.o(.text+0xb05):/root/e17/apps/e_utils/src/bin/ethemes/main.c:344: more undefined references to `evas_object_free' followcollect2: ld returned 1 exit status
make[4]: *** [ethemes] Error 1make[4]: Leaving directory `/root/e17/apps/e_utils/src/bin/ethemes'make[3]: *** [all-recursive] Error 1make[3]: Leaving directory `/root/e17/apps/e_utils/src/bin'make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/e17/apps/e_utils/src'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/root/e17/apps/e_utils'make: *** [all] Error 2---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click___enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/enlightenment-devel
-- Chady 'Leviathan' Kassoufhttp://chady.net/


ethemes.diff
Description: Binary data


[E-devel] various patches and theme selector

2005-12-19 Thread Chady Kassouf
Again,The patch fixes various issues:* in e_thumb check if the object exists before trying to update it: this happens when dialogs are closed before their thumbnails have been generated. Also fixed the start button location in the thumbs.
* in e_icon the smart data is never checked before being used, so I added simple checks for nulls: also happens with dialogs being closed.* in e_int_config_background: added saving the background in the config after applying it (sorry, the diff contains the old stuff also because anoncvs isn't up to date yet) 
Additions:the e_int_config_theme, is a duplication of the background selector but for the themes, it uses a slightly different approach, but the bulk of the code is the same.Regards, 
-- Chady 'Leviathan' Kassoufhttp://chady.net/


e.diff
Description: Binary data


e_int_config_theme.tar.gz
Description: GNU Zip compressed data


[E-devel] background selector patch

2005-12-18 Thread Chady Kassouf
Yo,

found the issue with the background selector segfaulting. also, found a couple of nulls too.-- Chady 'Leviathan' Kassoufhttp://chady.net/
Index: e_configure.c
===
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_configure.c,v
retrieving revision 1.15
diff -u -r1.15 e_configure.c
--- e_configure.c   17 Dec 2005 02:14:19 -  1.15
+++ e_configure.c   18 Dec 2005 10:20:15 -
@@ -63,7 +63,7 @@
e_configure_standard_item_add(eco, enlightenment/e, _(Menu Settings), 
e_int_config_menus);
e_configure_standard_item_add(eco, enlightenment/e, _(Window 
Manipulation), e_int_config_window_manipulation);
e_configure_standard_item_add(eco, enlightenment/e, _(Window Display), 
e_int_config_window_display);
-   //e_configure_standard_item_add(eco, enlightenment/desktops, 
_(Background Settings), e_int_config_background);
+   e_configure_standard_item_add(eco, enlightenment/desktops, _(Background 
Settings), e_int_config_background);

/* FIXME: we should have a way for modules to hook in here and add their
 * own entries
Index: e_int_config_background.c
===
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_int_config_background.c,v
retrieving revision 1.2
diff -u -r1.2 e_int_config_background.c
--- e_int_config_background.c   4 Dec 2005 12:03:58 -   1.2
+++ e_int_config_background.c   18 Dec 2005 10:20:57 -
@@ -108,11 +108,9 @@
 _e_config_bg_cb_standard(void *data)
 {
E_Cfg_Bg_Data *d;
-   char *thumb;

d = data;
e_widget_image_object_set(d-cfd-data, e_thumb_evas_object_get(d-file, 
d-cfd-dia-win-evas, 160, 120, 1));
-   free(thumb);
 }
 
 
@@ -195,7 +193,7 @@
   cb_data-file = strdup(fullbg);
   e_widget_ilist_append(il, o, noext, 
_e_config_bg_cb_standard, cb_data, fullbg);
   
-  if (!strcmp(e_config-desktop_default_background, 
fullbg))
+  if ((e_config-desktop_default_background)  
!(strcmp(e_config-desktop_default_background, fullbg)))
 {
e_widget_ilist_select_set(il, i);
bg = edje_object_add(evas);
@@ -213,7 +211,6 @@
 ecore_list_destroy(bgs);
  }
  }
-   cfd-data = im;
e_widget_ilist_go(il);   
e_widget_min_size_set(il, 240, 320);
e_widget_table_object_append(o, il, 0, 0, 1, 2, 1, 1, 1, 1);
@@ -224,6 +221,7 @@
e_theme_edje_object_set(bg, base/theme/background, 
desktop/background);
im = e_widget_image_add_from_object(evas, bg, 160, 120);
  }
+   cfd-data = im;
e_widget_min_size_set(fr, 180, 150);
e_widget_table_object_append(o, fr, 1, 0, 1, 1, 1, 1, 1, 1);   
e_widget_framelist_object_append(fr, im);   


Re: [E-devel] module configuration

2005-12-18 Thread Chady Kassouf
On 12/19/05, Morten Nilsen [EMAIL PROTECTED] wrote:
I don't think the ok button should be disabled together with apply..apply should be if there are noe changes to commit, but clickingcancel when you don't want to undo anything (even though nothing gets
undone) is contrary to instinct for most people :)Maybe if Cancel gets renamed to Close it might remove the ambiguity-- Chady 'Leviathan' Kassouf
http://chady.net/


[E-devel] Re: eThemes thumbnails patch

2005-11-10 Thread Chady Kassouf
Please discard that patch. this is a much cleaner one.

On 11/9/05, Chady Kassouf [EMAIL PROTECTED] wrote:
Hello,

Following the new changes for the scrollbars, here's an updated eThemes that uses the new scrollframe.
plus, the theme buttons are now thumbnails that are cached in the fileman cache (I had to borrow some of the code)

enjoy.-- Chady 'Leviathan' Kassoufhttp://chady.net/

-- Chady 'Leviathan' Kassoufhttp://chady.net/
Index: E_Preview.h
===
RCS file: /cvsroot/enlightenment/e17/apps/e_utils/src/bin/ethemes/E_Preview.h,v
retrieving revision 1.1
diff -u -r1.1 E_Preview.h
--- E_Preview.h	12 Oct 2005 14:56:41 -	1.1
+++ E_Preview.h	10 Nov 2005 12:06:48 -
@@ -23,5 +23,36 @@
 void e_preview_theme_set(Evas_Object *object, const char * theme);
 
 
+int e_preview_is_theme(Evas * evas, const char * theme);
+
+/**
+ * initialize thumb generation.
+ */
+int e_preview_thumb_init(void);
+
+/**
+ * Get the full path of the thumbnail
+ */
+char * e_preview_thumb_file_get(const char * theme);
+
+/**
+ * Check the validity of the thumbnail
+ * @theme - the name of the theme file.
+ */
+int e_preview_thumb_check(const char * theme);
+
+/**
+ * Create a thumbnail for the current theme
+ * @theme - the name of the theme file.
+ */
+int e_preview_thumb_generate(const char * theme);
+
+/**
+ * Set an evas object's data to the thumbnail's image
+ * @theme - the name of the theme file
+ * @obj - the evas image object
+ */
+int e_preview_thumb_image(const char * theme, Evas_Object * obj);
+
 #endif
 
Index: Makefile.am
===
RCS file: /cvsroot/enlightenment/e17/apps/e_utils/src/bin/ethemes/Makefile.am,v
retrieving revision 1.3
diff -u -r1.3 Makefile.am
--- Makefile.am	23 Oct 2005 11:51:18 -	1.3
+++ Makefile.am	10 Nov 2005 12:06:48 -
@@ -9,6 +9,7 @@
 	@ECORE_CFLAGS@ \
 	@EVAS_CFLAGS@ \
 	@ESMART_CFLAGS@ \
+	@[EMAIL PROTECTED]
 	@EDJE_CFLAGS@ \
 	@ENLIGHTENMENT_CFLAGS@
 
@@ -26,6 +27,7 @@
 	@EDJE_LIBS@ \
 	@ESMART_LIBS@ \
 	-lesmart_container \
+	@EET_LIBS@ \
 	@ENLIGHTENMENT_LIBS@
 
 EXTRA_DIST = \
Index: e_preview.c
===
RCS file: /cvsroot/enlightenment/e17/apps/e_utils/src/bin/ethemes/e_preview.c,v
retrieving revision 1.2
diff -u -r1.2 e_preview.c
--- e_preview.c	24 Oct 2005 10:51:19 -	1.2
+++ e_preview.c	10 Nov 2005 12:06:51 -
@@ -4,12 +4,13 @@
 #include limits.h
 #include Edje.h
 #include Evas.h
+#include Ecore_Evas.h
+#include Eet.h
 #include E_Lib.h
 #include sys/stat.h
 
 #include E_Preview.h
 
-
 typedef struct _e_preview E_Preview; 
 struct _e_preview {
 
@@ -34,19 +35,13 @@
 static void _e_preview_redraw(Evas_Object *);
 static void _e_preview_add(Evas_Object *);
 static void _e_preview_del(Evas_Object *);
-static void _e_preview_layer_set(Evas_Object *, int);
-static void _e_preview_raise(Evas_Object *);
-static void _e_preview_lower(Evas_Object *);
-static void _e_preview_stack_above(Evas_Object *, Evas_Object *);
-static void _e_preview_stack_below(Evas_Object *, Evas_Object *);
 static void _e_preview_move(Evas_Object *, Evas_Coord, Evas_Coord);
 static void _e_preview_resize(Evas_Object *, Evas_Coord, Evas_Coord);
 static void _e_preview_show(Evas_Object *);
 static void _e_preview_hide(Evas_Object *);
-static void _e_preview_color_set(Evas_Object *, int, int, int, int);
 static void _e_preview_clip_set(Evas_Object *, Evas_Object *);
-static void _e_preview_clip_unset(Evas_Object *);
 
+static char * _e_thumb_file_id(char *file);
 
 
 Evas_Object * e_preview_new(Evas *evas) {
@@ -86,18 +81,14 @@
 			e_preview,
 			_e_preview_add,
 			_e_preview_del,
-			_e_preview_layer_set,
-			_e_preview_raise,
-			_e_preview_lower,
-			_e_preview_stack_above,
-			_e_preview_stack_below,
+			NULL, NULL, NULL, NULL, NULL,
 			_e_preview_move,
 			_e_preview_resize,
 			_e_preview_show,
 			_e_preview_hide,
-			_e_preview_color_set,
+			NULL, 
 			_e_preview_clip_set,
-			_e_preview_clip_unset,
+			NULL,
 			NULL
 			);
 	return smart;
@@ -151,77 +142,6 @@
 	}
 }
 
-static void _e_preview_layer_set(Evas_Object *o, int l) {
-	E_Preview * data;
-
-	if ((data = evas_object_smart_data_get(o))) {
-		evas_object_layer_set(data-wallpaper, l);
-		evas_object_layer_set(data-window, l);
-		evas_object_layer_set(data-clock, l);
-		evas_object_layer_set(data-start, l);
-		evas_object_layer_set(data-pager[0], l);
-		evas_object_layer_set(data-pager[1], l);
-		evas_object_layer_set(data-pager[2], l);
-	}
-}
-
-static void _e_preview_raise(Evas_Object *o) {
-	E_Preview * data;
-
-	if ((data = evas_object_smart_data_get(o))) {
-		evas_object_raise(data-wallpaper);
-		evas_object_raise(data-window);
-		evas_object_raise(data-clock);
-		evas_object_raise(data-start);
-		evas_object_raise(data-pager[0]);
-		evas_object_raise(data-pager[1]);
-		evas_object_raise(data-pager[2]);
-	}
-}
-
-static void _e_preview_lower(Evas_Object *o

[E-devel] eThemes thumbnails patch

2005-11-10 Thread Chady Kassouf
Hello,

Following the new changes for the scrollbars, here's an updated eThemes that uses the new scrollframe.
plus, the theme buttons are now thumbnails that are cached in the fileman cache (I had to borrow some of the code)

enjoy.-- Chady 'Leviathan' Kassoufhttp://chady.net/
Index: E_Preview.h
===
RCS file: /cvsroot/enlightenment/e17/apps/e_utils/src/bin/ethemes/E_Preview.h,v
retrieving revision 1.1
diff -u -r1.1 E_Preview.h
--- E_Preview.h	12 Oct 2005 14:56:41 -	1.1
+++ E_Preview.h	9 Nov 2005 16:34:54 -
@@ -23,5 +23,36 @@
 void e_preview_theme_set(Evas_Object *object, const char * theme);
 
 
+int e_preview_is_theme(Evas * evas, const char * theme);
+
+/**
+ * initialize thumb generation.
+ */
+int e_preview_thumb_init(void);
+
+/**
+ * Get the full path of the thumbnail
+ */
+char * e_preview_thumb_file_get(const char * theme);
+
+/**
+ * Check the validity of the thumbnail
+ * @theme - the name of the theme file.
+ */
+int e_preview_thumb_check(const char * theme);
+
+/**
+ * Create a thumbnail for the current theme
+ * @theme - the name of the theme file.
+ */
+int e_preview_thumb_generate(const char * theme);
+
+/**
+ * Set an evas object's data to the thumbnail's image
+ * @theme - the name of the theme file
+ * @obj - the evas image object
+ */
+int e_preview_thumb_image(const char * theme, Evas_Object * obj);
+
 #endif
 
Index: Makefile.am
===
RCS file: /cvsroot/enlightenment/e17/apps/e_utils/src/bin/ethemes/Makefile.am,v
retrieving revision 1.3
diff -u -r1.3 Makefile.am
--- Makefile.am	23 Oct 2005 11:51:18 -	1.3
+++ Makefile.am	9 Nov 2005 16:34:54 -
@@ -9,6 +9,7 @@
 	@ECORE_CFLAGS@ \
 	@EVAS_CFLAGS@ \
 	@ESMART_CFLAGS@ \
+	@[EMAIL PROTECTED]
 	@EDJE_CFLAGS@ \
 	@ENLIGHTENMENT_CFLAGS@
 
@@ -26,6 +27,7 @@
 	@EDJE_LIBS@ \
 	@ESMART_LIBS@ \
 	-lesmart_container \
+	@EET_LIBS@ \
 	@ENLIGHTENMENT_LIBS@
 
 EXTRA_DIST = \
Index: e_preview.c
===
RCS file: /cvsroot/enlightenment/e17/apps/e_utils/src/bin/ethemes/e_preview.c,v
retrieving revision 1.2
diff -u -r1.2 e_preview.c
--- e_preview.c	24 Oct 2005 10:51:19 -	1.2
+++ e_preview.c	9 Nov 2005 16:34:54 -
@@ -4,11 +4,14 @@
 #include limits.h
 #include Edje.h
 #include Evas.h
+#include Ecore_Evas.h
+#include Eet.h
 #include E_Lib.h
 #include sys/stat.h
 
 #include E_Preview.h
 
+  
 
 typedef struct _e_preview E_Preview; 
 struct _e_preview {
@@ -34,19 +37,13 @@
 static void _e_preview_redraw(Evas_Object *);
 static void _e_preview_add(Evas_Object *);
 static void _e_preview_del(Evas_Object *);
-static void _e_preview_layer_set(Evas_Object *, int);
-static void _e_preview_raise(Evas_Object *);
-static void _e_preview_lower(Evas_Object *);
-static void _e_preview_stack_above(Evas_Object *, Evas_Object *);
-static void _e_preview_stack_below(Evas_Object *, Evas_Object *);
 static void _e_preview_move(Evas_Object *, Evas_Coord, Evas_Coord);
 static void _e_preview_resize(Evas_Object *, Evas_Coord, Evas_Coord);
 static void _e_preview_show(Evas_Object *);
 static void _e_preview_hide(Evas_Object *);
-static void _e_preview_color_set(Evas_Object *, int, int, int, int);
 static void _e_preview_clip_set(Evas_Object *, Evas_Object *);
-static void _e_preview_clip_unset(Evas_Object *);
 
+static char * _e_thumb_file_id(char *file);
 
 
 Evas_Object * e_preview_new(Evas *evas) {
@@ -86,18 +83,14 @@
 			e_preview,
 			_e_preview_add,
 			_e_preview_del,
-			_e_preview_layer_set,
-			_e_preview_raise,
-			_e_preview_lower,
-			_e_preview_stack_above,
-			_e_preview_stack_below,
+			NULL, NULL, NULL, NULL, NULL,
 			_e_preview_move,
 			_e_preview_resize,
 			_e_preview_show,
 			_e_preview_hide,
-			_e_preview_color_set,
+			NULL, 
 			_e_preview_clip_set,
-			_e_preview_clip_unset,
+			NULL,
 			NULL
 			);
 	return smart;
@@ -151,77 +144,6 @@
 	}
 }
 
-static void _e_preview_layer_set(Evas_Object *o, int l) {
-	E_Preview * data;
-
-	if ((data = evas_object_smart_data_get(o))) {
-		evas_object_layer_set(data-wallpaper, l);
-		evas_object_layer_set(data-window, l);
-		evas_object_layer_set(data-clock, l);
-		evas_object_layer_set(data-start, l);
-		evas_object_layer_set(data-pager[0], l);
-		evas_object_layer_set(data-pager[1], l);
-		evas_object_layer_set(data-pager[2], l);
-	}
-}
-
-static void _e_preview_raise(Evas_Object *o) {
-	E_Preview * data;
-
-	if ((data = evas_object_smart_data_get(o))) {
-		evas_object_raise(data-wallpaper);
-		evas_object_raise(data-window);
-		evas_object_raise(data-clock);
-		evas_object_raise(data-start);
-		evas_object_raise(data-pager[0]);
-		evas_object_raise(data-pager[1]);
-		evas_object_raise(data-pager[2]);
-	}
-}
-
-static void _e_preview_lower(Evas_Object *o) {
-	E_Preview * data;
-
-	if ((data = evas_object_smart_data_get(o))) {
-		evas_object_lower(data-wallpaper);
-		evas_object_lower(data-window);
-		

[E-devel] [PATCH] show/hide scrollbar as needed for eThemes

2005-10-19 Thread Chady Kassouf
Hey,

here's a patch to show/hide the scrollbra as needed for ethemes.
(If there are no objections for me having access on cvs, I can commit these patches myself)
-- Chady 'Leviathan' Kassoufhttp://chady.net/



e_utils.diff
Description: Binary data


[E-devel] [PATCH] scrolling for theme list in eThemes

2005-10-18 Thread Chady Kassouf
Hi,

This change makes the theme list scrollable - for the time when themes start rushing in :)
It also now uses the widgets/button and scrollbars from the default theme.
If anyone can apply this it would be great :)
Thanx,
-- Chady 'Leviathan' Kassoufhttp://chady.net/


e_utils.diff
Description: Binary data


Re: [E-devel] eThemes

2005-08-06 Thread Chady Kassouf
(sorry I forgot to send to the list.)
On 8/1/05, Andrew Elcock [EMAIL PROTECTED] wrote:

nice, I like it - should be added to e_utils I think :) (which willinstall it into the Configuration menu too, but it needs a little tidying

After some talk with raster, it was suggested that the preview thing turned into a smart object.

This is a new version, with an E_Preview smart object, and a small app that makes use of it to display the themes.

download at:
http://chady.net/code/e/ethemes.tar.bz2

As usual, comments and suggestions are greatly appreciated.


thinking that the preview window border needs text to show that, and to
pad properly (try gant theme, colapses) and more padding on hte buttons


I'm not sure why gant is not displaying correctly, I'm still looking
into that.. any pointers are appreciated. do I need to mess around with
parts?

--
Chady Kassouf
http://chady.net/



[E-devel] [patch] e_lib_theme_set

2005-08-01 Thread Chady Kassouf
Hi,

this is the patch to add e_lib_theme_set(category, file) to E_Lib.h
since the files changed, this is diffed against the latest CVS-- Chady Kassoufhttp://chady.net/


e_lib.diff
Description: Binary data


[E-devel] eThemes

2005-08-01 Thread Chady Kassouf
Hi,

Here's a small app I was working on. 
This is a theme selector that lets you preview the themes before applying them.
It's a pre-release, and needs a lot of clean-ups, so any comments and pointers are much appreciated.
download from: 
http://chady.net/code/e/ethemes.tar.bz2

P.S: you need the very latest e17 dev CVS for this to work.
-- Chady Kassoufhttp://chady.net/


[E-devel] [patch] add e_lib_theme_set

2005-07-20 Thread Chady Kassouf
Hi,

Thanx for applying my previous patch, I should have included this with it, but here goes.
This completes the previous patch by adding e_lib_theme_set(category, file) 
-- Chady Kassoufhttp://chady.net/
cvs diff: Diffing .
Index: E_Lib.h
===
RCS file: /cvsroot/enlightenment/e17/apps/e/src/lib/E_Lib.h,v
retrieving revision 1.3
diff -u -r1.3 E_Lib.h
--- E_Lib.h 19 Jul 2005 07:07:23 -  1.3
+++ E_Lib.h 20 Jul 2005 13:33:35 -
@@ -96,6 +96,7 @@
EAPI void e_lib_background_get (void);
 
/* E current theme manipulation */
+   EAPI void e_lib_theme_set  (const char *category, const char *file);
EAPI void e_lib_theme_get  (const char *category);
 
/* languages */
Index: e_main.c
===
RCS file: /cvsroot/enlightenment/e17/apps/e/src/lib/e_main.c,v
retrieving revision 1.25
diff -u -r1.25 e_main.c
--- e_main.c19 Jul 2005 07:07:23 -  1.25
+++ e_main.c20 Jul 2005 13:33:36 -
@@ -255,6 +255,24 @@
 }
 
 void
+e_lib_theme_set(const char *category, const char *file)
+{
+   char **tmp;
+   if (!category  !file)
+ return; 
+
+   tmp = malloc(sizeof(char *) * 2);
+  
+   tmp[0] = strdup(category);
+   tmp[1] = strdup(file);
+
+   _e_ipc_call(E_IPC_OP_THEME_SET, tmp);
+   free(tmp[0]);
+   free(tmp[1]);
+   free(tmp);
+}
+
+void
 e_lib_language_set(const char *lang)
 {
char *tmp;


[E-devel] patch to add getting the current theme file with E_Lib.h

2005-07-18 Thread Chady Kassouf
Hi,

In an app I'm writing, I needed to get what is the current theme used in e17, but that functionality is not available in E_Lib.h
here's a patch that adds e_lib_theme_get() call.

this is diffed from the src/ folder, hope this is fine.-- Chady Kassoufhttp://chady.net/
Index: bin/e_ipc_handlers.h
===
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc_handlers.h,v
retrieving revision 1.56
diff -u -r1.56 e_ipc_handlers.h
--- bin/e_ipc_handlers.h	13 Jul 2005 04:46:33 -	1.56
+++ bin/e_ipc_handlers.h	18 Jul 2005 19:39:51 -
@@ -4190,6 +4190,13 @@
printf(REPLY: DEFAULT CATEGORY=\%s\ FILE=\%s\\n,
 category, file); 
END_STRING2(e_2str);
+#elif (TYPE == E_LIB_IN)
+   STRING2(category, file, e_2str, HDL);
+   RESPONSE(r, E_Response_Theme_Get, HDL);
+   r-file = strdup(file);
+   r-category = strdup(category);
+   END_RESPONSE(r, E_RESPONSE_THEME_GET);
+   END_STRING2(e_2str);
 #endif
 #undef HDL
 
Index: lib/E_Lib.h
===
RCS file: /cvsroot/enlightenment/e17/apps/e/src/lib/E_Lib.h,v
retrieving revision 1.2
diff -u -r1.2 E_Lib.h
--- lib/E_Lib.h	8 Jun 2005 20:43:46 -	1.2
+++ lib/E_Lib.h	18 Jul 2005 19:40:16 -
@@ -24,6 +24,7 @@
 typedef struct _E_Response_Dirs_List	E_Response_Dirs_List;
 typedef struct _E_Response_Background_Get E_Response_Background_Get;
 typedef struct _E_Response_Language_Get E_Response_Language_Get;
+typedef struct _E_Response_Theme_Get E_Response_Theme_Get;
 
 struct _E_Response_Module_List
 {
@@ -48,6 +49,12 @@
char   *file;
 };
 
+struct _E_Response_Theme_Get
+{
+   char   *file;
+   char   *category;
+};
+
 struct _E_Response_Language_Get
 {
char   *lang;
@@ -56,6 +63,7 @@
 extern EAPI int E_RESPONSE_MODULE_LIST;
 extern EAPI int E_RESPONSE_BACKGROUND_GET;
 extern EAPI int E_RESPONSE_LANGUAGE_GET;
+extern EAPI int E_RESPONSE_THEME_GET;
 
 extern EAPI int E_RESPONSE_DATA_DIRS_LIST;
 extern EAPI int E_RESPONSE_IMAGE_DIRS_LIST;
@@ -87,6 +95,9 @@
EAPI void e_lib_background_set (const char *bgfile);
EAPI void e_lib_background_get (void);
 
+   /* E current theme manipulation */
+   EAPI void e_lib_theme_get  (const char *category);
+
/* languages */
EAPI void e_lib_language_set   (const char *lang);
EAPI void e_lib_language_get   (void);
Index: lib/e_main.c
===
RCS file: /cvsroot/enlightenment/e17/apps/e/src/lib/e_main.c,v
retrieving revision 1.24
diff -u -r1.24 e_main.c
--- lib/e_main.c	8 Jun 2005 20:43:46 -	1.24
+++ lib/e_main.c	18 Jul 2005 19:40:17 -
@@ -56,6 +56,7 @@
 int E_RESPONSE_MODULE_LIST = 0;
 int E_RESPONSE_BACKGROUND_GET = 0;
 int E_RESPONSE_LANGUAGE_GET = 0;
+int E_RESPONSE_THEME_GET = 0;
 
 int E_RESPONSE_DATA_DIRS_LIST = 0;
 int E_RESPONSE_IMAGE_DIRS_LIST = 0;
@@ -140,6 +141,7 @@
  {
 	E_RESPONSE_MODULE_LIST = ecore_event_type_new();
 	E_RESPONSE_BACKGROUND_GET = ecore_event_type_new();
+	E_RESPONSE_THEME_GET = ecore_event_type_new();
 	E_RESPONSE_LANGUAGE_GET = ecore_event_type_new();
 
 	E_RESPONSE_DATA_DIRS_LIST = ecore_event_type_new();
@@ -241,6 +243,18 @@
 }
 
 void
+e_lib_theme_get(const char *category)
+{
+   char *tmp;
+   if (!category)
+ return;
+
+   tmp = strdup(category);
+   _e_ipc_call(E_IPC_OP_THEME_GET, tmp);
+   free(tmp);
+}
+
+void
 e_lib_language_set(const char *lang)
 {
char *tmp;


[E-devel] E17 possible shutdown bug?

2005-07-10 Thread Chady Kassouf
Hello,

sometimes when I kill X with Ctrl+Alt+Backspace, e17 fails to shutdown
properly and keeps writing errors into ~/.xsession-errors until the
disk is full.

Here's a part of the errors:

___
___
|:| Enlightenment Error |:|
~~~
~~~
Lost X connection.
E17: Begin shutdown procedure!

*** ECORE ERROR: Ecore Magic Check Failed!!!
*** IN FUNCTION: ecore_evas_free()
 Input handle has already been freed!
*** NAUGHTY PROGRAMMER!!!
*** SPANK SPANK SPANK!!!
*** Now go fix your code. Tut tut tut!

BUG: References 1 /home/chady/.e/e/applications/all/eterm.eap

*** ECORE ERROR: Ecore Magic Check Failed!!!
*** IN FUNCTION: ecore_evas_free()
 Input handle has already been freed!
*** NAUGHTY PROGRAMMER!!!
*** SPANK SPANK SPANK!!!
*** Now go fix your code. Tut tut tut!


*** ECORE ERROR: Ecore Magic Check Failed!!!
*** IN FUNCTION: ecore_evas_free()
 Input handle has already been freed!
*** NAUGHTY PROGRAMMER!!!
*** SPANK SPANK SPANK!!!
*** Now go fix your code. Tut tut tut!

and these keep repeating until disk is full...

I haven't been able to always reproduce the error though... it just happens sometimes-- Chady Kassoufhttp://chady.net/