Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_x


Modified Files:
        Ecore_X.h ecore_x.c 


Log Message:
get/set x cursor size.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v
retrieving revision 1.150
retrieving revision 1.151
diff -u -3 -r1.150 -r1.151
--- Ecore_X.h   8 Oct 2005 12:40:14 -0000       1.150
+++ Ecore_X.h   10 Oct 2005 07:50:10 -0000      1.151
@@ -1001,8 +1001,7 @@
                                               int border_width,
                                               Ecore_X_Window sibling,
                                               int stack_mode);
-EAPI void             ecore_x_window_cursor_set(Ecore_X_Window win,
-                                               Ecore_X_Cursor c);
+EAPI void             ecore_x_window_cursor_set(Ecore_X_Window win, 
Ecore_X_Cursor c);
 EAPI void             ecore_x_window_del(Ecore_X_Window win);
 EAPI void             ecore_x_window_ignore_set(Ecore_X_Window win, int 
ignore);
 EAPI Ecore_X_Window  *ecore_x_window_ignore_list(int *num);
@@ -1322,6 +1321,9 @@
 EAPI Ecore_X_Cursor ecore_x_cursor_new(Ecore_X_Window win, int *pixels, int w, 
int h, int hot_x, int hot_y);
 EAPI void ecore_x_cursor_free(Ecore_X_Cursor c);
 EAPI Ecore_X_Cursor ecore_x_cursor_shape_get(int shape);
+EAPI void ecore_x_cursor_size_set(int size);
+EAPI int  ecore_x_cursor_size_get(void);
+
    
 EAPI int  ecore_x_pointer_grab(Ecore_X_Window win);
 EAPI int  ecore_x_pointer_confine_grab(Ecore_X_Window win);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x.c,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -3 -r1.98 -r1.99
--- ecore_x.c   8 Oct 2005 14:38:15 -0000       1.98
+++ ecore_x.c   10 Oct 2005 07:50:10 -0000      1.99
@@ -1103,7 +1103,7 @@
 Ecore_X_Cursor
 ecore_x_cursor_new(Ecore_X_Window win, int *pixels, int w, int h, int hot_x, 
int hot_y)
 {
-#ifdef ECORE_XCURSOR   
+#ifdef ECORE_XCURSOR
    if (_ecore_x_xcursor)
      {
        Cursor c;
@@ -1295,6 +1295,18 @@
    return XCreateFontCursor(_ecore_x_disp, shape);
 }
 
+void
+ecore_x_cursor_size_set(int size)
+{
+   XcursorSetDefaultSize(_ecore_x_disp, size);
+}
+
+int
+ecore_x_cursor_size_get(void)
+{
+   return XcursorGetDefaultSize(_ecore_x_disp);
+}
+
 int
 ecore_x_pointer_grab(Ecore_X_Window win)
 {




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to