From: <enl...@li...> - 2006-01-23 05:34:24
|
Enlightenment CVS committal Author : monkeyiq Project : misc Module : gevas2 Dir : misc/gevas2/src Modified Files: gevas.c Log Message: Do an evas_init() for the user. =================================================================== RCS file: /cvsroot/enlightenment/misc/gevas2/src/gevas.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- gevas.c 4 Aug 2005 04:12:15 -0000 1.16 +++ gevas.c 23 Jan 2006 05:34:18 -0000 1.17 @@ -352,6 +352,18 @@ __gevas_mouse_move(void *_data, Evas* _e, Evas_Object* _o, void *event_info ) { Evas_Event_Mouse_Move* ev = (Evas_Event_Mouse_Move*)event_info; + if( !ev ) + return; + + if( !_e ) + { + if( !_o ) + return; + + GtkObject* gobj = EVASO_TO_GTKO( _o ); + GtkgEvas* gevas = gevasobj_get_gevas( gobj ); + _e = EVAS( gevas ); + } int _b = ev->buttons; int _x = ev->cur.output.x; int _y = ev->cur.output.y; @@ -594,6 +606,8 @@ GTK_WIDGET_SET_FLAGS(GTK_WIDGET(ev), GTK_CAN_FOCUS); /* printf("gevas_init() 1\n"); */ + evas_init(); + ev->current_idle = 0; ev->evas_render_call_count = 0; ev->ecore_timer_id = 0; |