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

2007-04-18 Thread Hisham Mardam Bey
On 4/19/07, Enlightenment CVS <[EMAIL PROTECTED]> wrote:
> Enlightenment CVS committal
>
> Author  : devilhorns
> Project : e17
> Module  : apps/e
>
> Dir : e17/apps/e/src/bin
>
>
> Modified Files:
> e_entry.c
>
>
> Log Message:
> Add right-click copy/paste popup menu to e_entry for Codewarrior :)
>

Pure pwnage! (=

Thanks Chris.

-- 
Hisham Mardam Bey
http://hisham.cc/
+9613609386
Codito Ergo Sum (I Code Therefore I Am)

-
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] Evas keydown segfault

2007-04-18 Thread Brian Mattern
On Sun, Apr 08, 2007 at 03:49:08PM -0400, Christopher Michael wrote:
> Hi all,
> 
> Mekius recently discovered a nasty segfault when trying to use the Enter 
> key to dismiss a dialog. As it turns out, this affects all dialogs. 
> After some digging into evas_callbacks.c I have come up with the 
> following patch. I didn't commit because I'm not entirely sure that it's 
> the proper solution, tho it does fix the segfault.
>

I'm not sure this is a proper fix. It looks like it would just hide a
bug that is somewhere else. It seems that one of the callbacks is
triggering something that is setting obj->callbacks to NULL. I think
that either the place that this happens needs to be modified to honor
the 'walking_list' flag on the object, or the list walking needs to be
modified to break if obj->callbacks is NULL after calling a cb func.

I only had a few minutes to look at this though, and I'm not very
familiar with the code.

Brian


-
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] Ideas for a new 'desklet'-module api

2007-04-18 Thread Michael Jennings
On Wednesday, 18 April 2007, at 21:29:05 (+0200),
Hannes Janetzek wrote:

> I would say engage, devian, calendar and all this desklet-stuff
> falls in this category for example.

Devian and calendar are both dead.  The module form of engage is also
outdated.

Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <[EMAIL PROTECTED]>
n + 1, Inc., http://www.nplus1.net/   Author, Eterm (www.eterm.org)
---
 "Persistence trumps talent and looks every time."  -- Aaron Brown

-
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] [PATCH] patch for 'mem' module

2007-04-18 Thread Richard Kolkovich

Michael Jennings wrote:

On Wednesday, 18 April 2007, at 15:26:01 (-0500),
Richard Kolkovich wrote:


This patch disables the display of the 'Swap' label if your machine
does not have any swap.


We need unified/context diffs please.  diff -u

Michael



d0h.  Attached.

--

Richard Kolkovich
[EMAIL PROTECTED]


Index: e_mod_main.c
===
RCS file: /var/cvs/e/e_modules/mem/e_mod_main.c,v
retrieving revision 1.43
diff -u -r1.43 e_mod_main.c
--- e_mod_main.c30 Mar 2007 20:30:34 -  1.43
+++ e_mod_main.c18 Apr 2007 23:33:57 -
@@ -437,8 +437,10 @@
 {
   snprintf (real_str, sizeof (real_str), "Real: %d/%d MB", (real / 1024),
(total_real / 1024));
-  snprintf (swap_str, sizeof (swap_str), "Swap: %d/%d MB", (swap / 1024),
-   (total_swap / 1024));
+  if ( total_swap ) { 
+  snprintf (swap_str, sizeof (swap_str), "Swap: %d/%d MB", (swap / 
1024),
+(total_swap / 1024));
+  }
 }
   else
 {
@@ -446,19 +448,27 @@
 
   tr = (((double) real / (double) total_real) * 100);
   snprintf (real_str, sizeof (real_str), "Real: %1.2f%%", tr);
-  tr = (((double) swap / (double) total_swap) * 100);
-  snprintf (swap_str, sizeof (swap_str), "Swap: %1.2f%%", tr);
+  if ( total_swap ) { 
+  tr = (((double) swap / (double) total_swap) * 100);
+  snprintf (swap_str, sizeof (swap_str), "Swap: %1.2f%%", tr);
+  }
 }
   edje_object_part_text_set (inst->mem_obj, "real_label", real_str);
-  edje_object_part_text_set (inst->mem_obj, "swap_label", swap_str);
+  if ( total_swap ) { 
+  edje_object_part_text_set (inst->mem_obj, "swap_label", swap_str);
+  } else {
+  edje_object_part_text_set (inst->mem_obj, "swap_label", "");
+  }
 
   double tr = ((double) real / (double) total_real);
   msg.val = tr;
   edje_object_message_send (inst->mem_obj, EDJE_MESSAGE_FLOAT, 1, &msg);
 
-  double ts = ((double) swap / (double) total_swap);
-  msg.val = ts;
-  edje_object_message_send (inst->mem_obj, EDJE_MESSAGE_FLOAT, 2, &msg);
+  if ( total_swap ) { 
+  double ts = ((double) swap / (double) total_swap);
+  msg.val = ts;
+  edje_object_message_send (inst->mem_obj, EDJE_MESSAGE_FLOAT, 2, &msg);
+  }
 
   return 1;
 }
-
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] [PATCH] patch for 'mem' module

2007-04-18 Thread Michael Jennings
On Wednesday, 18 April 2007, at 15:26:01 (-0500),
Richard Kolkovich wrote:

> This patch disables the display of the 'Swap' label if your machine
> does not have any swap.

We need unified/context diffs please.  diff -u

Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <[EMAIL PROTECTED]>
n + 1, Inc., http://www.nplus1.net/   Author, Eterm (www.eterm.org)
---
 "Normal is in the eye of the beholder."-- Whoopi Goldberg

-
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] [PATCH] patch for 'mem' module

2007-04-18 Thread Richard Kolkovich
This patch disables the display of the 'Swap' label if your machine does 
not have any swap.



--

Richard Kolkovich
[EMAIL PROTECTED]


Index: e_mod_main.c
===
RCS file: /var/cvs/e/e_modules/mem/e_mod_main.c,v
retrieving revision 1.43
diff -r1.43 e_mod_main.c
440,441c440,443
<   snprintf (swap_str, sizeof (swap_str), "Swap: %d/%d MB", (swap / 1024),
<   (total_swap / 1024));
---
>   if ( total_swap ) { 
>   snprintf (swap_str, sizeof (swap_str), "Swap: %d/%d MB", (swap / 
> 1024),
> (total_swap / 1024));
>   }
449,450c451,454
<   tr = (((double) swap / (double) total_swap) * 100);
<   snprintf (swap_str, sizeof (swap_str), "Swap: %1.2f%%", tr);
---
>   if ( total_swap ) { 
>   tr = (((double) swap / (double) total_swap) * 100);
>   snprintf (swap_str, sizeof (swap_str), "Swap: %1.2f%%", tr);
>   }
453c457,461
<   edje_object_part_text_set (inst->mem_obj, "swap_label", swap_str);
---
>   if ( total_swap ) { 
>   edje_object_part_text_set (inst->mem_obj, "swap_label", swap_str);
>   } else {
>   edje_object_part_text_set (inst->mem_obj, "swap_label", "");
>   }
459,461c467,471
<   double ts = ((double) swap / (double) total_swap);
<   msg.val = ts;
<   edje_object_message_send (inst->mem_obj, EDJE_MESSAGE_FLOAT, 2, &msg);
---
>   if ( total_swap ) { 
>   double ts = ((double) swap / (double) total_swap);
>   msg.val = ts;
>   edje_object_message_send (inst->mem_obj, EDJE_MESSAGE_FLOAT, 2, &msg);
>   }
-
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] Ideas for a new 'desklet'-module api

2007-04-18 Thread Hannes Janetzek
Hi,
I started to make a new taskbar-module based on engage. For now it
uses gadcon, but this has several disadvantages. The problem is that the
shelf is intended to hold more than one gadcon-client and therefore the
clients should be changed on changes to the shelf. In my case the
module should control the size, hiding and style of the shelf and
futhermore it doesn't make sense to have more than one client in its
shelf.   

In short: there are a bunch of other modules that need to control how
and where they appear on the desk; modules which might have multiple
instance configurations to store. 
I would say engage, devian, calendar and all this desklet-stuff falls in
this category for example.

So what interfaces could be needed by such a module and how should the
user configure these modules?

Ok, one could implement all the window- and
instance-handling-configuration for each module, but i think this
will cause a very incosistent configuration of such modules in the
end. So I would do it like this, as one example: 
'Module Settings' -> 'Engage' -> Configure -> 'add Instance' 

>From the user perspective I think it would make more sense if one adds
a module like this just like shelfs.
So the add Button from the shelf settings would show a select-window to
add a shelf or an engage bar, etc.
'Shelf Settings' -> add -> 'Engage'


On the interface side.
Just some ideas i had so far for this new kind of shelf.
Module provides information to the 'shelf':
- a name (to show in the select window) 
- which orientations are possible (float, edge,..)
- if size is set by the module 
Module can cause the 'shelf' 
- to resize 
- to show/hide 

'Shelf' provides funtionality 
- move window / setting the edge 
- hiding
- 'abstracts' if the module instance draws on the desk or a popup (as is
does now already)

I know there is the gadcon between the client and the shelf. Though for
this kind of shelf  gadcon could be much simplified, since it
has only to handle with one module.  


Are there any objections to add something like this to e?
I mean, it could simplify the work to create a desklet-like module a
lot. 
If there is a better way to achieve what i want, please let me know! 


Best Regards,
Hannes 'jeffdameth' Janetzek





-
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] [PATCH] add --enable-no-dither-mask to configure

2007-04-18 Thread Gustavo Sverzut Barbieri
On 4/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > > > Some embedded devices are so slow that --enable-small-dither-
> > > >mask is not enough, we have to completely remove dithering to
> > > > get some speedups. This is the case with Nokia 770 or N800,
> > > > where we have a [EMAIL PROTECTED] but not much CPU to handle all
> > > > these pixels :-)
> > >
> > >Some of that conversion and dithering related code could
> > > be sped up somewhat.. though it'd be a fair amount of work (just
> > > to go thru it all is quite a bit) and might not be worth it in
> > > all cases.
> >
> > Yep. Actually, I'm talking to raster about we start a 16bpp-only
> > software_x11 engine. Problem is: today we need to convert
> > 24->16[+dither] + alpha for each blit, I've removed the [+dither]
> > step, improving performance in about 20%... but from his tests,
> > having 16bpp packed in a special format, with alpha in another
> > plane and scaled down to 5 bits, we can multiply both r5g6b5 in
> > 1 32bit instruction, giving 2x speedup... that's a huge thing!
>
> That would be better yes. I don't think you need a separate
> x11 engine for this (and indeed this would be useful for the other
> software based engines), just add compositing functions to blend
> a8r8g8b8 to r5g6b5 16bpp dst images would be a great improvement
> there (and adding suitable changes to get the correct version).

We should convert images to 16bpp asap, already in the packed format
and alpha scaled down to 5bits... otherwise it won't be as fast as we
need.


> Sounds like you and raster have something going already
> here.. excellent!

:-)
There is no code yet. I'll wait raster, that knows the internals
better, to start initial implementation so I can go on... I'll keep
you informed.


> An interesting side question though would be to wonder how
> many display devices out there are planning to have 16bpp displays
> for very long...?

Sure... embedded devices are all 16bpp or worse: 18bpp (which makes no
sense IMHO). You'll hardly notice any difference between 32 and 16bpp,
so why use the former? The problem there is processing power, that we
usually lack.

-- 
Gustavo Sverzut Barbieri
--
Jabber: [EMAIL PROTECTED]
   MSN: [EMAIL PROTECTED]
  ICQ#: 17249123
 Skype: gsbarbieri
Mobile: +55 (81) 9927 0010

-
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] [PATCH] add --enable-no-dither-mask to configure

2007-04-18 Thread [EMAIL PROTECTED]

> > > Some embedded devices are so slow that --enable-small-dither-
> > >mask is not enough, we have to completely remove dithering to
> > > get some speedups. This is the case with Nokia 770 or N800,
> > > where we have a [EMAIL PROTECTED] but not much CPU to handle all
> > > these pixels :-)
> >
> >Some of that conversion and dithering related code could
> > be sped up somewhat.. though it'd be a fair amount of work (just
> > to go thru it all is quite a bit) and might not be worth it in
> > all cases.
> 
> Yep. Actually, I'm talking to raster about we start a 16bpp-only
> software_x11 engine. Problem is: today we need to convert
> 24->16[+dither] + alpha for each blit, I've removed the [+dither]
> step, improving performance in about 20%... but from his tests,
> having 16bpp packed in a special format, with alpha in another
> plane and scaled down to 5 bits, we can multiply both r5g6b5 in
> 1 32bit instruction, giving 2x speedup... that's a huge thing!

That would be better yes. I don't think you need a separate
x11 engine for this (and indeed this would be useful for the other
software based engines), just add compositing functions to blend
a8r8g8b8 to r5g6b5 16bpp dst images would be a great improvement
there (and adding suitable changes to get the correct version).
Sounds like you and raster have something going already
here.. excellent!

An interesting side question though would be to wonder how
many display devices out there are planning to have 16bpp displays
for very long...?



-
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] [PATCH] add --enable-no-dither-mask to configure

2007-04-18 Thread Gustavo Sverzut Barbieri
On 4/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Gustavo wrote:
>
> > Some embedded devices are so slow that --enable-small-dither-mask
> > is not enough, we have to completely remove dithering to get some
> > speedups. This is the case with Nokia 770 or N800, where we have a
> > [EMAIL PROTECTED] but not much CPU to handle all these pixels :-)
> >
> Some of that conversion and dithering related code could be
> sped up somewhat.. though it'd be a fair amount of work (just to go
> thru it all is quite a bit) and might not be worth it in all cases.

Yep. Actually, I'm talking to raster about we start a 16bpp-only
software_x11 engine. Problem is: today we need to convert
24->16[+dither] + alpha for each blit, I've removed the [+dither]
step, improving performance in about 20%... but from his tests, having
16bpp packed in a special format, with alpha in another plane and
scaled down to 5 bits, we can multiply both r5g6b5 in 1 32bit
instruction, giving 2x speedup... that's a huge thing!

-- 
Gustavo Sverzut Barbieri
--
Jabber: [EMAIL PROTECTED]
   MSN: [EMAIL PROTECTED]
  ICQ#: 17249123
 Skype: gsbarbieri
Mobile: +55 (81) 9927 0010

-
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