Enlightenment CVS committal
Author : atmosphere
Project : e17
Module : apps/iconbar
Dir : e17/apps/iconbar/src
Modified Files:
main.c
Log Message:
why do i have to do this?
My callback gets called twice on mouse_in/mouse_out, is that intended?
temp fix.
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/iconbar/src/main.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- main.c 20 Jan 2004 06:20:40 -0000 1.18
+++ main.c 20 Jan 2004 08:31:13 -0000 1.19
@@ -38,7 +38,7 @@
ecore_evas_init();
edje_init();
-
+ edje_frametime_set(1.0/30.0);
iconbar_config_init();
iconbar_config_geometry_get(&x, &y, &w, &h);
@@ -167,26 +167,36 @@
static void
window_leave(Ecore_Evas *ee)
{
+ static double last = 0.0;
Evas_Object *o = NULL, *edje = NULL;
if((o = evas_object_name_find(ecore_evas_get(ee), "iconbar")))
{
if((edje = iconbar_gui_get(o)))
{
- edje_object_signal_emit(edje, "window,leave", "");
+ if(ecore_time_get() - last > 0.05)
+ {
+ edje_object_signal_emit(edje, "window,leave", "");
+ last = ecore_time_get();
+ }
}
}
}
static void
window_enter(Ecore_Evas *ee)
{
+ static double last = 0.0;
Evas_Object *o = NULL, *edje = NULL;
-
+
if((o = evas_object_name_find(ecore_evas_get(ee), "iconbar")))
{
if((edje = iconbar_gui_get(o)))
{
- edje_object_signal_emit(edje, "window,enter", "");
+ if(ecore_time_get() - last > 0.05)
+ {
+ edje_object_signal_emit(edje, "window,enter", "");
+ last = ecore_time_get();
+ }
}
}
}
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs