Enlightenment CVS committal
Author : sebastid
Project : e17
Module : apps/e
Dir : e17/apps/e/src/modules/ibar
Modified Files:
e_mod_main.c
Log Message:
Ready to accept eapp drop. Now we really need libemenuedit.
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/ibar/e_mod_main.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -3 -r1.32 -r1.33
--- e_mod_main.c 1 May 2005 20:00:55 -0000 1.32
+++ e_mod_main.c 1 May 2005 20:29:32 -0000 1.33
@@ -3,6 +3,7 @@
*/
#include "e.h"
#include "e_mod_main.h"
+#include <math.h>
/* TODO List:
*
@@ -1369,11 +1370,43 @@
static void
_ibar_bar_cb_drop(void *data, const char *type, void *event)
{
+ E_Drop_Event *ev;
+ IBar_Bar *ibb;
+ Evas_Coord x, y, w, h;
+ double iw;
+ int pos;
+
+ ev = event;
+ ibb = data;
+
+ evas_object_geometry_get(ibb->box_object, &x, &y, &w, &h);
+ x = ev->x - x;
+ y = ev->y - y;
+
+ if ((e_gadman_client_edge_get(ibb->gmc) == E_GADMAN_EDGE_BOTTOM) ||
+ (e_gadman_client_edge_get(ibb->gmc) == E_GADMAN_EDGE_TOP))
+ {
+ iw = w / (double) evas_list_count(ibb->icons);
+ pos = round(x / iw);
+ }
+ else if ((e_gadman_client_edge_get(ibb->gmc) == E_GADMAN_EDGE_LEFT) ||
+ (e_gadman_client_edge_get(ibb->gmc) == E_GADMAN_EDGE_RIGHT))
+ {
+ iw = h / (double) evas_list_count(ibb->icons);
+ pos = round(y / iw);
+ }
+
}
static void
_ibar_bar_cb_move(void *data, const char *type, void *event)
{
+ E_Drop_Event *ev;
+ IBar_Bar *ibb;
+ Evas_Coord x, y, w, h;
+
+ ev = event;
+ ibb = data;
}
static void
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs