Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_fm.h e_fm.c 


Log Message:
Add convenience function for getting an icon's geometry. This is used in
placing the new fwin next to the icon that spawned it.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_fm.h,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -3 -r1.53 -r1.54
--- e_fm.h      22 Oct 2007 07:38:24 -0000      1.53
+++ e_fm.h      11 Dec 2007 14:57:46 -0000      1.54
@@ -154,7 +154,8 @@
                 void (*gen_func) (void *data, Evas_Object *obj, void 
*event_info),
                 void *data, int force_gen, const char **type_ret);
 EAPI E_Fm2_Icon_Info *e_fm2_icon_file_info_get(E_Fm2_Icon *ic);
-    
+EAPI void        e_fm2_icon_geometry_get(E_Fm2_Icon *ic, int *x, int *y, int 
*w, int *h);
+
 EAPI void        e_fm2_client_data(Ecore_Ipc_Event_Client_Data *e);
 EAPI void        e_fm2_client_del(Ecore_Ipc_Event_Client_Del *e);
 
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_fm.c,v
retrieving revision 1.227
retrieving revision 1.228
diff -u -3 -r1.227 -r1.228
--- e_fm.c      31 Oct 2007 19:51:14 -0000      1.227
+++ e_fm.c      11 Dec 2007 14:57:46 -0000      1.228
@@ -1388,6 +1388,22 @@
    return &(ic->info);
 }
 
+EAPI void 
+e_fm2_icon_geometry_get(E_Fm2_Icon *ic, int *x, int *y, int *w, int *h) 
+{
+   int xx, yy, ww, hh;
+   
+   if (x) *x = 0; if (y) *y = 0; if (w) *w = 0; if (h) *h = 0;
+   if (ic) 
+     {
+       evas_object_geometry_get(ic->obj, &xx, &yy, &ww, &hh);
+       if (x) *x = xx;
+       if (y) *y = yy;
+       if (w) *w = ww;
+       if (h) *h = hh;
+     }
+}
+
 /* FIXME: track real exe with exe del events etc. */
 static int _e_fm2_client_spawning = 0;
 



-------------------------------------------------------------------------
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://sourceforge.net/services/buy/index.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to