Re: [E-devel] Comp effects, hack and suggestion

2010-04-14 Thread Gustavo Sverzut Barbieri
On Mon, Apr 12, 2010 at 8:35 AM, Gustavo Sverzut Barbieri
barbi...@profusion.mobi wrote:
 Hi Raster and anyone interested in hacking the comp module effects,

 I don't have time to work much on it until next month, but I did a
 quick hack to replace the annoying focus in effect with a fade of
 unfocused. It show some deficiency/lacking in the message system, just
 try the attached patch.

 The problem comes that comp module lacks identification of window
 classes. The effect I'd like to apply is only for application windows,
 not for their menus, popups, tooltips. It is also the same for E
 internal windows that do not take focus, for instance try Alt-tab,
 the next window is focused, thus the dialog is darkened. Same for
 other modules, like System dialog (shutdown, power...) and menus.

 IMO these classes should be appended to the message, like the button
 number for mouse,button,1... those that want to match all can use a
 trailing * or we can emit a generic version without the specific
 class.

 Also, it would be good to have the visualization to be bit bigger and
 dynamically change the label based on the effect being demoed. This is
 all about edje, so anyone can step in and help. For instance the
 preview can show Window Show, pause, Focus In, pause, Focus Out,
 Window Hide... cycle.

new version that looks bit better, I just noticed that some utility
windows like popups, drop down boxes, shelves and menus do not get
none of focus,on/off, so I changed default to regular state and
unfocused instead of focused to be the alternative.


-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202
Index: data/themes/default.edc
===
--- data/themes/default.edc	(revision 47999)
+++ data/themes/default.edc	(working copy)
@@ -35191,9 +35191,21 @@
}
 }
  }
+ part { name: clipper-content;
+type: RECT;
+clip_to: clipper;
+mouse_events: 0;
+description { state: default 0.0;
+   color: 255 255 255 255;
+}
+description { state: unfocus 0.0;
+   inherit: default 0.0;
+   color: 180 180 180 255;
+}
+ }
  part { name: e.swallow.content;
 type: SWALLOW;
-clip_to: clipper;
+clip_to: clipper-content;
 mouse_events: 0;
 description { state: default 0.0;
rel1 {
@@ -35203,26 +35215,6 @@
   to: shower;
}
 }
-description { state: focus1 0.0;
-   inherit: default 0.0;
-   rel1.offset: -10 -10;
-   rel2.offset:   9   9;
-}
-description { state: focus2 0.0;
-   inherit: default 0.0;
-   rel1.offset:   4   4;
-   rel2.offset:  -5  -5;
-}
-description { state: focus3 0.0;
-   inherit: default 0.0;
-   rel1.offset:  -3  -3;
-   rel2.offset:   2   2;
-}
-description { state: focus4 0.0;
-   inherit: default 0.0;
-   rel1.offset:   1   1;
-   rel2.offset:  -2  -2;
-}
  }
  part { name: glow;
 mouse_events: 0;
@@ -35291,36 +35283,19 @@
  program { name: hide2;
 action: SIGNAL_EMIT e,action,hide,done e;
  }
- program { name: focus1;
-signal: e,state,focus,on;
+ program { name: unfocus;
+signal: e,state,focus,off;
 source: e;
-action: STATE_SET focus1 0.0;
-transition: SINUSOIDAL 0.1;
-target: e.swallow.content;
-after: focus2;
+action: STATE_SET unfocus 0.0;
+transition: ACCELERATE 0.2;
+target: clipper-content;
  }
- program { name: focus2;
-action: STATE_SET focus2 0.0;
-transition: SINUSOIDAL 0.1;
-target: e.swallow.content;
-after: focus3;
- }
- program { name: focus3;
-action: STATE_SET focus3 0.0;
-transition: SINUSOIDAL 0.1;
-target: e.swallow.content;
-after: focus4;
- }
- program { name: focus4;
-action: STATE_SET focus4 0.0;
-transition: SINUSOIDAL 0.1;
-target: e.swallow.content;
-after: focus5;
- }
- program { name: focus5;
+ program { name: focus;
+signal: e,state,focus,on;
+source: e;
 action: STATE_SET default 0.0;
-transition: SINUSOIDAL 0.1;
-target: e.swallow.content;
+transition: ACCELERATE 0.2;
+target: clipper-content;
   

[E-devel] efreet init patch

2010-04-14 Thread Christopher Michael
Here is a small patch for Efreet which fixes the warning(s) issued at E 
startup about eina_hash_del being called with Data == NULL. This patch 
does fix the problem, but there may be a better way to go about this, 
hence why I did not direct commit.


I've tested it here with no ill effects, but I know the formatting is 
off as efreet does not use the standard E formatting.


dh
Index: efreet_menu.c
===
--- efreet_menu.c   (revision 47995)
+++ efreet_menu.c   (working copy)
@@ -494,36 +494,56 @@
 
 for (i = 0; menu_cbs[i].key != NULL; i++)
 {
-eina_hash_del(efreet_menu_handle_cbs,
-menu_cbs[i].key,
-NULL);
+   struct menu_cbs *cb;
+
+   if ((cb = eina_hash_find(efreet_menu_handle_cbs, menu_cbs[i].key))) 
+ {
+eina_hash_del(efreet_menu_handle_cbs,
+  menu_cbs[i].key,
+  cb);
+ }
 eina_hash_add(efreet_menu_handle_cbs,
 menu_cbs[i].key,
 menu_cbs[i].cb);
 }
 for (i = 0; filter_cbs[i].key != NULL; i++)
 {
-eina_hash_del(efreet_menu_filter_cbs,
-filter_cbs[i].key,
-NULL);
+   struct filter_cbs *cb;
+
+   if ((cb = eina_hash_find(efreet_menu_filter_cbs, filter_cbs[i].key))) 
+ {
+eina_hash_del(efreet_menu_filter_cbs,
+  filter_cbs[i].key,
+  cb);
+ }
 eina_hash_add(efreet_menu_filter_cbs,
 filter_cbs[i].key,
 filter_cbs[i].cb);
 }
 for (i = 0; move_cbs[i].key != NULL; i++)
 {
-eina_hash_del(efreet_menu_move_cbs,
-move_cbs[i].key,
-NULL);
+   struct move_cbs *cb;
+
+   if ((cb = eina_hash_find(efreet_menu_move_cbs, move_cbs[i].key))) 
+ {
+eina_hash_del(efreet_menu_move_cbs,
+  move_cbs[i].key,
+  cb);
+ }
 eina_hash_add(efreet_menu_move_cbs,
 move_cbs[i].key,
 move_cbs[i].cb);
 }
 for (i = 0; layout_cbs[i].key != NULL; i++)
 {
-eina_hash_del(efreet_menu_layout_cbs,
-layout_cbs[i].key,
-NULL);
+   struct layout_cbs *cb;
+
+   if ((cb = eina_hash_find(efreet_menu_layout_cbs, layout_cbs[i].key))) 
+ {
+eina_hash_del(efreet_menu_layout_cbs,
+  layout_cbs[i].key,
+  cb);
+ }
 eina_hash_add(efreet_menu_layout_cbs,
 layout_cbs[i].key,
 layout_cbs[i].cb);
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] efreet init patch

2010-04-14 Thread Christopher Michael
Ok, ignore this patch ... seems there are some more places where data == 
NULL needs fixing :(

dh

On 04/14/2010 11:48 AM, Christopher Michael wrote:
 Here is a small patch for Efreet which fixes the warning(s) issued at E
 startup about eina_hash_del being called with Data == NULL. This patch
 does fix the problem, but there may be a better way to go about this,
 hence why I did not direct commit.

 I've tested it here with no ill effects, but I know the formatting is
 off as efreet does not use the standard E formatting.

 dh


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: glima IN trunk/TMP/st/elementary: data/edje_externals src/bin src/edje_externals src/lib

2010-04-14 Thread Dave Andreoli
2010/4/13 Gustavo Sverzut Barbieri barbi...@profusion.mobi:
 On Tue, Apr 13, 2010 at 3:56 AM, Dave Andreoli d...@gurumeditation.it wrote:
 2010/4/8 Enlightenment SVN no-re...@enlightenment.org:
 Log:
  Welcome a new Elementary widget: file selector button.

  This is an elm button extended to launch a file selector on click and to 
 callback_call registered funcs
  when selection is completed.

 Do we really need this kind of widgets? we will then need one for
 every widget that show a dialog? ex:  we will need  an
 elm_colorselector_button widget? (when we have a colorselector widget,
 of course)
 Can't you simply do this with an exteernal elm_button? (or just a
 custom edje button?).

 I don't know well the usage of EXTERNAL parts but sems to me that in
 this way we are going to have a new widget for every
 widget/combination... :/

 Well, the whole point of elementary is providing some common
 Evas_Object... you can always do buttons, checks and whatever in pure
 edje with minimal effort, but we provide them as a bundle as they are
 commonly used. that's the idea behind the file chooser button and yes,
 color picker as soon as we have one.

Just to be curious: why can't you just use an EXTERNAL elm_button and one
EXTERNAL elm_filechooser?
Can't you show the EXTERNAL filechooser part when the EXTERNAL button
is clicked?
Or that kind of interaction require c code?

Dave


 If we'll have all combinations for all possible dialogs, only time and
 demand will tell. Right now I have demand for file selector button,
 color picker and possibly some calendar thing. I don't miss anything
 else at this point.

 BR,

 --
 Gustavo Sverzut Barbieri
 http://profusion.mobi embedded systems
 --
 MSN: barbi...@gmail.com
 Skype: gsbarbieri
 Mobile: +55 (19) 9225-2202


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: glima IN trunk/TMP/st/elementary: data/edje_externals src/bin src/edje_externals src/lib

2010-04-14 Thread Cedric BAIL
On Wed, Apr 14, 2010 at 6:25 PM, Dave Andreoli d...@gurumeditation.it wrote:
 2010/4/13 Gustavo Sverzut Barbieri barbi...@profusion.mobi:
 On Tue, Apr 13, 2010 at 3:56 AM, Dave Andreoli d...@gurumeditation.it 
 wrote:
 2010/4/8 Enlightenment SVN no-re...@enlightenment.org:
 Log:
  Welcome a new Elementary widget: file selector button.

  This is an elm button extended to launch a file selector on click and to 
 callback_call registered funcs
  when selection is completed.

 Do we really need this kind of widgets? we will then need one for
 every widget that show a dialog? ex:  we will need  an
 elm_colorselector_button widget? (when we have a colorselector widget,
 of course)
 Can't you simply do this with an exteernal elm_button? (or just a
 custom edje button?).

 I don't know well the usage of EXTERNAL parts but sems to me that in
 this way we are going to have a new widget for every
 widget/combination... :/

 Well, the whole point of elementary is providing some common
 Evas_Object... you can always do buttons, checks and whatever in pure
 edje with minimal effort, but we provide them as a bundle as they are
 commonly used. that's the idea behind the file chooser button and yes,
 color picker as soon as we have one.

 Just to be curious: why can't you just use an EXTERNAL elm_button and one
 EXTERNAL elm_filechooser?
 Can't you show the EXTERNAL filechooser part when the EXTERNAL button
 is clicked?
 Or that kind of interaction require c code?

When I saw this commit, I was hoping we would see a button with a text
entry in it, so that you could just type the filename you want, or
click on it to get the file selector window showing up at the position
the entry tell it. Right now, I think this kind of widget could be
usefull, but would require more work, imho.

 If we'll have all combinations for all possible dialogs, only time and
 demand will tell. Right now I have demand for file selector button,
 color picker and possibly some calendar thing. I don't miss anything
 else at this point.


-- 
Cedric BAIL

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] e17 on on MacOS-X 10.5 working

2010-04-14 Thread Dave Ray
I am happy to report that after pulling along night, e17 is running  
well, with most of the modules working. This is on MacOS-X 10.5.8  
without Fink or Mac Ports installed, using the latest Apple X11  
development release. I installed a few themes and checked them out.  I  
have some screen snaps that show e17 running along side MacOS-X apps,

I now have a recipe for building it on MacOS without Fink or Mac  
Ports, I want to repeat the install on a clean 10.5.8 system to make  
sure I didn't leave out any build steps. Then I can update the wiki.

A few modules aren't working, I'll look into those in the near future.

Thanks again for all the help.


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Focus problem

2010-04-14 Thread Dave Andreoli
2010/4/13 ychouchane frechdes...@gmail.com:
 Hello,
 i m tring to make this :

 i want make a windows with little img following the mouse.

 for the moment i make this code :

 #include Ecore.h
 #include Ecore_Evas.h

 Evas_Object * zozor (Evas *evas,int move1,int move2)
 {

 Evas_Object *o;
 int iw, ih;
 o = evas_object_image_add (evas);
 evas_object_image_file_set (o, zozor_transparent.png, NULL);
 evas_object_image_size_get(o, iw, ih);
 evas_object_image_size_set(o, iw, ih);
 evas_object_image_fill_set(o, 0, 0, iw, ih);
 evas_object_resize (o, iw, ih);
 evas_object_move (o, move1, move2);
 evas_object_show (o);
 return o;
 }


 void cb_down(void *data, Evas *e, Evas_Object *obj, void *event_info)
 {
        Evas_Event_Mouse_Move *event; // déclaration d'un évenement
        event = (Evas_Event_Mouse_Move *)event_info; //initialisation de
 la variable sur l'évenemnt produit par la souris
        printf(touche pressée: %d en coordonnée (%d,%d)\n,
 event-buttons,event-cur.output.x,event-cur.output.y );// Affiche la
 touche préssé


       zozor (e, event-cur.output.x,event-cur.output.y);// affiche un
 nouveau Zozor à l'applacemet du clique
 }


 int
 main (int argc, char *argv[])
 {
        Ecore_Evas  *ecran;//Déclaration de variable ecran, qui vas
 contenir nos images et autres ...
        Evas        *evas; //Conteneur d'objet
        Evas_Object *surface_01; //Surface que l'on vas coloriser
       int iw,ih;

        if (  ecore_evas_init () == -1) // Démarrage des EFL. Si erreur
 alors...
                {
                        printf( Erreur d'initialisation des EFL ); //
 Ecriture de l'erreur
                        exit(EXIT_FAILURE); // On quitte le programme
                }

 //NOTRE FENETRE VIDE
        ecran = ecore_evas_new (software_x11, 0, 0, 800, 600,
 NULL); //On paramétre notre écran
        if (!ecran) // si probléme sur le driveur pour les EFL
        {
                ecore_evas_shutdown (); // Arrêt des EFL
                return EXIT_FAILURE; // On quitte le programme
        }
        ecore_evas_title_set(ecran, Chargement d'images en
 Enlightenment !);
        ecore_evas_show (ecran);// On affiche notre écran
        evas = ecore_evas_get (ecran);// conteneur qui prend notre écran

 //Notre surface qui vas contenir l'image
        surface_01 = evas_object_image_add (evas);
        evas_object_image_file_set (surface_01, lac_en_montagne.jpg,
 NULL);
        evas_object_image_size_get(surface_01, iw, ih);
        evas_object_image_size_set(surface_01, iw, ih);
        evas_object_image_fill_set(surface_01, 0, 0, iw, ih);
        evas_object_resize (surface_01, iw, ih);
        evas_object_move (surface_01, 0, 0);
        evas_object_show (surface_01);

        evas_object_focus_set(surface_01 , 1);
        evas_object_event_callback_add(surface_01,
 EVAS_CALLBACK_MOUSE_MOVE, cb_down, NULL);


 //Fin du programme
        ecore_main_loop_begin();//notre bocle qui attend l'appuie sur la
 croix pour terminer le programme
        ecore_evas_shutdown ();  // Arrêt des EFL (libération de la
 mémoire).

        return EXIT_SUCCESS;
  }


 but with this code i create a new evas object zozor every time i move my
 mouse.

 but if on my main, i create a new Evas object zozor, and i get focus on
 it, i can't move my evas_object zozor, so someon can explain me how
 focus object and make action on object not focus ?

The right way to go is to create the zozor object in the main and then
use evas_object_move(zozor, x, y)
in the mouse_move callback. This must work without touching the focus
stuff, evas_objects don't need
to be focused to be moved.

Hope this can help...and please don't post stuff in your language, It
require me to use a french dictionary to read your mail ;)

Dave





 Thanks





 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] e17 on on MacOS-X 10.5 working

2010-04-14 Thread Leif Middelschulte
Hey Dave,

you might want to make sure you set the prefix to /opt or something
similar so it (EFL and libs you need to build it) can be removed
easily later.

Congrats and BR,

Leif

2010/4/14 Dave Ray cl...@jonive.com:
 I am happy to report that after pulling along night, e17 is running
 well, with most of the modules working. This is on MacOS-X 10.5.8
 without Fink or Mac Ports installed, using the latest Apple X11
 development release. I installed a few themes and checked them out.  I
 have some screen snaps that show e17 running along side MacOS-X apps,

 I now have a recipe for building it on MacOS without Fink or Mac
 Ports, I want to repeat the install on a clean 10.5.8 system to make
 sure I didn't leave out any build steps. Then I can update the wiki.

 A few modules aren't working, I'll look into those in the near future.

 Thanks again for all the help.


 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] e17 on on MacOS-X 10.5 working

2010-04-14 Thread Dave Andreoli
2010/4/14 Dave Ray cl...@jonive.com:
 I am happy to report that after pulling along night, e17 is running
 well, with most of the modules working. This is on MacOS-X 10.5.8
 without Fink or Mac Ports installed, using the latest Apple X11
 development release. I installed a few themes and checked them out.  I
 have some screen snaps that show e17 running along side MacOS-X apps,

wow, can you show us some screenshots? I'm curious about how the OS-X
window manager
and E can coesist. Is E that manage all the normal OSX windows?

Dave


 I now have a recipe for building it on MacOS without Fink or Mac
 Ports, I want to repeat the install on a clean 10.5.8 system to make
 sure I didn't leave out any build steps. Then I can update the wiki.

 A few modules aren't working, I'll look into those in the near future.

 Thanks again for all the help.


 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] e_dbus changes

2010-04-14 Thread Michael Blumenkrantz
Hi,

I'm going to be attempting to write a new backend for e_dbus to use the
new udisks/upower framework which is succeeding hal.  Some questions
I've been mulling over while I've been doing it:

Should I be migrating all the hal/udev calls to some kind of e_dbus_*
call system so that it will be transparent to developers regardless of
the backend being used?  The idea here being that only one backend
can be enabled at compile time (since no sane person would have both
hal AND udisks/upower running simultaneously), thus saving code
migration in the future should another hw backend be created.

What should the new module be called?  Since the old one is e-hal, I
figured I'd call the new one e-udev, though I'm open to whatever.

Should udisks and upower functionality be integrated into the same
module?  I'm thinking yes, though if there's a reason why they should
remain separate then that's fine too.

I'm assuming that we want all the same calls that the hal module
currently provides.  Is there any additional functionality that we
need/want?  I'd link the udisks/upower api, but it doesn't really exist
outside of the code; I can say that they can do pretty much everything
you'd imagine them to do if that helps :)

Also, does anyone know a better dbus debugger/utility?  So far I've been
using a combination of d-feet, qdbus, and dbus-monitor/send to do stuff
but I actually need to use all of them to get the functionality I want.

If anyone has any comments/questions I'll be around in #edevelop and
checking here regularly.

-Mike (discomfitor/zmike)

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Focus problem

2010-04-14 Thread ychouchane
Hello and thanks, so sorry for the french in my code .


  * So if u do this, The right way to go is to create the zozor
object in the main and then use evas_object_move(zozor, x, y)
  * the focus will be on  the zozor, but if i clic on zozor he is
move.
  * But if i click on other place (not in the zozor) he will not
move.
  * so i can't understand how focus on object and moveother object ?
  * And we can add two focus.
  * so i think , i have something, i have not understand on the
focus.

Le mercredi 14 avril 2010 à 18:38 +0200, Dave Andreoli a écrit :
 2010/4/13 ychouchane frechdes...@gmail.com:
  Hello,
  i m tring to make this :
 
  i want make a windows with little img following the mouse.
 
  for the moment i make this code :
 
  #include Ecore.h
  #include Ecore_Evas.h
 
  Evas_Object * zozor (Evas *evas,int move1,int move2)
  {
 
  Evas_Object *o;
  int iw, ih;
  o = evas_object_image_add (evas);
  evas_object_image_file_set (o, zozor_transparent.png, NULL);
  evas_object_image_size_get(o, iw, ih);
  evas_object_image_size_set(o, iw, ih);
  evas_object_image_fill_set(o, 0, 0, iw, ih);
  evas_object_resize (o, iw, ih);
  evas_object_move (o, move1, move2);
  evas_object_show (o);
  return o;
  }
 
 
  void cb_down(void *data, Evas *e, Evas_Object *obj, void *event_info)
  {
 Evas_Event_Mouse_Move *event; // déclaration d'un évenement
 event = (Evas_Event_Mouse_Move *)event_info; //initialisation de
  la variable sur l'évenemnt produit par la souris
 printf(touche pressée: %d en coordonnée (%d,%d)\n,
  event-buttons,event-cur.output.x,event-cur.output.y );// Affiche la
  touche préssé
 
 
zozor (e, event-cur.output.x,event-cur.output.y);// affiche un
  nouveau Zozor à l'applacemet du clique
  }
 
 
  int
  main (int argc, char *argv[])
  {
 Ecore_Evas  *ecran;//Déclaration de variable ecran, qui vas
  contenir nos images et autres ...
 Evas*evas; //Conteneur d'objet
 Evas_Object *surface_01; //Surface que l'on vas coloriser
int iw,ih;
 
 if (  ecore_evas_init () == -1) // Démarrage des EFL. Si erreur
  alors...
 {
 printf( Erreur d'initialisation des EFL ); //
  Ecriture de l'erreur
 exit(EXIT_FAILURE); // On quitte le programme
 }
 
  //NOTRE FENETRE VIDE
 ecran = ecore_evas_new (software_x11, 0, 0, 800, 600,
  NULL); //On paramétre notre écran
 if (!ecran) // si probléme sur le driveur pour les EFL
 {
 ecore_evas_shutdown (); // Arrêt des EFL
 return EXIT_FAILURE; // On quitte le programme
 }
 ecore_evas_title_set(ecran, Chargement d'images en
  Enlightenment !);
 ecore_evas_show (ecran);// On affiche notre écran
 evas = ecore_evas_get (ecran);// conteneur qui prend notre écran
 
  //Notre surface qui vas contenir l'image
 surface_01 = evas_object_image_add (evas);
 evas_object_image_file_set (surface_01, lac_en_montagne.jpg,
  NULL);
 evas_object_image_size_get(surface_01, iw, ih);
 evas_object_image_size_set(surface_01, iw, ih);
 evas_object_image_fill_set(surface_01, 0, 0, iw, ih);
 evas_object_resize (surface_01, iw, ih);
 evas_object_move (surface_01, 0, 0);
 evas_object_show (surface_01);
 
 evas_object_focus_set(surface_01 , 1);
 evas_object_event_callback_add(surface_01,
  EVAS_CALLBACK_MOUSE_MOVE, cb_down, NULL);
 
 
  //Fin du programme
 ecore_main_loop_begin();//notre bocle qui attend l'appuie sur la
  croix pour terminer le programme
 ecore_evas_shutdown ();  // Arrêt des EFL (libération de la
  mémoire).
 
 return EXIT_SUCCESS;
   }
 
 
  but with this code i create a new evas object zozor every time i move my
  mouse.
 
  but if on my main, i create a new Evas object zozor, and i get focus on
  it, i can't move my evas_object zozor, so someon can explain me how
  focus object and make action on object not focus ?
 
 The right way to go is to create the zozor object in the main and then
 use evas_object_move(zozor, x, y)
 in the mouse_move callback. This must work without touching the focus
 stuff, evas_objects don't need
 to be focused to be moved.
 
 Hope this can help...and please don't post stuff in your language, It
 require me to use a french dictionary to read your mail ;)
 
 Dave
 
 
 
 
 
  Thanks
 
 
 
 
 
  --
  Download Intel#174; Parallel Studio Eval
  Try the new software tools for yourself. Speed compiling, find bugs
  proactively, and fine-tune applications for parallel performance.
  See why Intel Parallel Studio got high marks during beta.
  http://p.sf.net/sfu/intel-sw-dev
  ___
  enlightenment-devel mailing list
  

Re: [E-devel] E SVN: glima IN trunk/TMP/st/elementary: data/edje_externals src/bin src/edje_externals src/lib

2010-04-14 Thread Gustavo Sverzut Barbieri
On Wed, Apr 14, 2010 at 8:25 AM, Dave Andreoli d...@gurumeditation.it wrote:
 2010/4/13 Gustavo Sverzut Barbieri barbi...@profusion.mobi:
 On Tue, Apr 13, 2010 at 3:56 AM, Dave Andreoli d...@gurumeditation.it 
 wrote:
 2010/4/8 Enlightenment SVN no-re...@enlightenment.org:
 Log:
  Welcome a new Elementary widget: file selector button.

  This is an elm button extended to launch a file selector on click and to 
 callback_call registered funcs
  when selection is completed.

 Do we really need this kind of widgets? we will then need one for
 every widget that show a dialog? ex:  we will need  an
 elm_colorselector_button widget? (when we have a colorselector widget,
 of course)
 Can't you simply do this with an exteernal elm_button? (or just a
 custom edje button?).

 I don't know well the usage of EXTERNAL parts but sems to me that in
 this way we are going to have a new widget for every
 widget/combination... :/

 Well, the whole point of elementary is providing some common
 Evas_Object... you can always do buttons, checks and whatever in pure
 edje with minimal effort, but we provide them as a bundle as they are
 commonly used. that's the idea behind the file chooser button and yes,
 color picker as soon as we have one.

 Just to be curious: why can't you just use an EXTERNAL elm_button and one
 EXTERNAL elm_filechooser?
 Can't you show the EXTERNAL filechooser part when the EXTERNAL button
 is clicked?
 Or that kind of interaction require c code?

we'd need code to do inwin or create an elm_win.

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Please welcome e3 and e4 !

2010-04-14 Thread Cedric BAIL
Hello everyone,

Today, two little beast are joining our server family. E3 and E4 will
now serve us, thanks to the help of Free Foundation (
http://fondation.free.org/ ) for providing the machines, their home
and their link to the world. A few people are already stepping up to
do the admin job for this babies.

E3 will be a build and tests server. It will provide a daily build
report of all efl packages for different OS. It will run tests suite
for eina and eet (If you want to donate Windows or MacOs X licence,
this would be a good idea to cover more system ). Eina benchmark will
be monitored also and expedite benchmark will be run with x11 and GL
backend (thanks to a nVidia GeForce 8600 GT). We are still lacking an
edje benchmark tools, so if someone want to take on that huge work,
that would be great ! We should also be able to run llvm static
analysis tools daily on it. Finally the doxygen generation will be
migrated to this server.

E4 will mostly become a mirror of E2, including svn and trac services.
It will also host fr.enlightenment.org website (and if other local
community wants to have their local web site, this is a good time to
speak up !).

Of course, it will take time to setup, but if you want to share ideas,
or help, it's a good time to join us !
-- 
Cedric BAIL

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Focus problem

2010-04-14 Thread The Rasterman
On Wed, 14 Apr 2010 18:54:55 +0200 ychouchane frechdes...@gmail.com said:

 Hello and thanks, so sorry for the french in my code .
 
 
   * So if u do this, The right way to go is to create the zozor
 object in the main and then use evas_object_move(zozor, x, y)
   * the focus will be on  the zozor, but if i clic on zozor he is
 move.
   * But if i click on other place (not in the zozor) he will not
 move.
   * so i can't understand how focus on object and moveother object ?
   * And we can add two focus.
   * so i think , i have something, i have not understand on the
 focus.

focus is for keyboard input. nothing else. where do keystrokes go (unless
grabbed). read up any x11 programming book on focus for an example (it's the
same idea)

 Le mercredi 14 avril 2010 à 18:38 +0200, Dave Andreoli a écrit :
  2010/4/13 ychouchane frechdes...@gmail.com:
   Hello,
   i m tring to make this :
  
   i want make a windows with little img following the mouse.
  
   for the moment i make this code :
  
   #include Ecore.h
   #include Ecore_Evas.h
  
   Evas_Object * zozor (Evas *evas,int move1,int move2)
   {
  
   Evas_Object *o;
   int iw, ih;
   o = evas_object_image_add (evas);
   evas_object_image_file_set (o, zozor_transparent.png, NULL);
   evas_object_image_size_get(o, iw, ih);
   evas_object_image_size_set(o, iw, ih);
   evas_object_image_fill_set(o, 0, 0, iw, ih);
   evas_object_resize (o, iw, ih);
   evas_object_move (o, move1, move2);
   evas_object_show (o);
   return o;
   }
  
  
   void cb_down(void *data, Evas *e, Evas_Object *obj, void *event_info)
   {
  Evas_Event_Mouse_Move *event; // déclaration d'un évenement
  event = (Evas_Event_Mouse_Move *)event_info; //initialisation de
   la variable sur l'évenemnt produit par la souris
  printf(touche pressée: %d en coordonnée (%d,%d)\n,
   event-buttons,event-cur.output.x,event-cur.output.y );// Affiche la
   touche préssé
  
  
 zozor (e, event-cur.output.x,event-cur.output.y);// affiche un
   nouveau Zozor à l'applacemet du clique
   }
  
  
   int
   main (int argc, char *argv[])
   {
  Ecore_Evas  *ecran;//Déclaration de variable ecran, qui vas
   contenir nos images et autres ...
  Evas*evas; //Conteneur d'objet
  Evas_Object *surface_01; //Surface que l'on vas coloriser
 int iw,ih;
  
  if (  ecore_evas_init () == -1) // Démarrage des EFL. Si erreur
   alors...
  {
  printf( Erreur d'initialisation des EFL ); //
   Ecriture de l'erreur
  exit(EXIT_FAILURE); // On quitte le programme
  }
  
   //NOTRE FENETRE VIDE
  ecran = ecore_evas_new (software_x11, 0, 0, 800, 600,
   NULL); //On paramétre notre écran
  if (!ecran) // si probléme sur le driveur pour les EFL
  {
  ecore_evas_shutdown (); // Arrêt des EFL
  return EXIT_FAILURE; // On quitte le programme
  }
  ecore_evas_title_set(ecran, Chargement d'images en
   Enlightenment !);
  ecore_evas_show (ecran);// On affiche notre écran
  evas = ecore_evas_get (ecran);// conteneur qui prend notre écran
  
   //Notre surface qui vas contenir l'image
  surface_01 = evas_object_image_add (evas);
  evas_object_image_file_set (surface_01, lac_en_montagne.jpg,
   NULL);
  evas_object_image_size_get(surface_01, iw, ih);
  evas_object_image_size_set(surface_01, iw, ih);
  evas_object_image_fill_set(surface_01, 0, 0, iw, ih);
  evas_object_resize (surface_01, iw, ih);
  evas_object_move (surface_01, 0, 0);
  evas_object_show (surface_01);
  
  evas_object_focus_set(surface_01 , 1);
  evas_object_event_callback_add(surface_01,
   EVAS_CALLBACK_MOUSE_MOVE, cb_down, NULL);
  
  
   //Fin du programme
  ecore_main_loop_begin();//notre bocle qui attend l'appuie sur la
   croix pour terminer le programme
  ecore_evas_shutdown ();  // Arrêt des EFL (libération de la
   mémoire).
  
  return EXIT_SUCCESS;
}
  
  
   but with this code i create a new evas object zozor every time i move my
   mouse.
  
   but if on my main, i create a new Evas object zozor, and i get focus on
   it, i can't move my evas_object zozor, so someon can explain me how
   focus object and make action on object not focus ?
  
  The right way to go is to create the zozor object in the main and then
  use evas_object_move(zozor, x, y)
  in the mouse_move callback. This must work without touching the focus
  stuff, evas_objects don't need
  to be focused to be moved.
  
  Hope this can help...and please don't post stuff in your language, It
  require me to use a french dictionary to read your mail ;)
  
  Dave
  
  
  
  
  
   Thanks
  
  
  
  
  
   --
   Download 

Re: [E-devel] e_dbus changes

2010-04-14 Thread David Seikel
On Wed, 14 Apr 2010 12:49:25 -0400 Michael Blumenkrantz
m...@zentific.com wrote:

 I'm going to be attempting to write a new backend for e_dbus to use
 the new udisks/upower framework which is succeeding hal.  Some
 questions I've been mulling over while I've been doing it:

/me hopes that unlike hal, this new stuff plays well with fstab, a unix
standard that has been around forever.

EndoOfGrumble
BeginGetMorningCaffiene

-- 
A big old stinking pile of genius that no one wants
coz there are too many silver coated monkeys in the world.


signature.asc
Description: PGP signature
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] e_dbus changes

2010-04-14 Thread Mike
udisks only allows mounting of drives that are in fstab as of now, so
it seems like this might be the case.  Then again, there are still a
few things missing from it so it may just destroy your hopes and dreams
like hal did :)

I've just finished the first version of e-udev and it seems to be
working pretty well.

-Mike (zmike/discomfitor)

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel