Enlightenment CVS committal

Author  : moom
Project : e17
Module  : proto

Dir     : e17/proto/etk/src/lib


Modified Files:
        etk_engine.h etk_window.c 


Log Message:
* Move pointer_set methods from the Ecore_Evas_SW_X11 engine to the 
Ecore_Evas_X11 one


===================================================================
RCS file: /cvs/e/e17/proto/etk/src/lib/etk_engine.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- etk_engine.h        27 Jul 2006 18:19:29 -0000      1.4
+++ etk_engine.h        27 Jul 2006 21:07:52 -0000      1.5
@@ -59,7 +59,7 @@
    void (*window_skip_pager_hint_set)(Etk_Window *window, Etk_Bool 
skip_pager_hint);
    Etk_Bool (*window_skip_pager_hint_get)(Etk_Window *window);   
    void (*window_dnd_aware_set)(Etk_Window *window, Etk_Bool on);
-   void (*window_pointer_set)(Etk_Toplevel_Widget *toplevel_widget, 
Etk_Pointer_Type pointer_type);
+   void (*window_pointer_set)(Etk_Window *window, Etk_Pointer_Type 
pointer_type);
    
    void (*popup_window_constructor)(Etk_Popup_Window *popup_window);
    void (*popup_window_popup_at_xy)(Etk_Popup_Window *popup_window, int x, int 
y);
===================================================================
RCS file: /cvs/e/e17/proto/etk/src/lib/etk_window.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -3 -r1.28 -r1.29
--- etk_window.c        27 Jul 2006 16:49:35 -0000      1.28
+++ etk_window.c        27 Jul 2006 21:07:52 -0000      1.29
@@ -770,8 +770,11 @@
 /* Sets the mouse pointer of the window */
 static void _etk_window_pointer_set(Etk_Toplevel_Widget *toplevel_widget, 
Etk_Pointer_Type pointer_type)
 {
-   /* TODO: do we want the engine to take the toplevel_widget or the window? */
-   etk_engine_window_pointer_set(toplevel_widget, pointer_type);
+   Etk_Window *window;
+   
+   if (!(window = ETK_WINDOW(toplevel_widget)))
+      return;
+   etk_engine_window_pointer_set(window, pointer_type);
 }
 
 /** @} */



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to