Enlightenment CVS committal Author : raster Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: Ecore_X.h ecore_x_window_prop.c Log Message: property calls =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v retrieving revision 1.120 retrieving revision 1.121 diff -u -3 -r1.120 -r1.121 --- Ecore_X.h 28 May 2005 12:49:40 -0000 1.120 +++ Ecore_X.h 28 May 2005 16:59:03 -0000 1.121 @@ -1026,6 +1026,7 @@ #endif EAPI void ecore_x_window_prop_window_opacity_set(Ecore_X_Window win, int opacity); EAPI int ecore_x_window_prop_window_opacity_get(Ecore_X_Window win); +EAPI Ecore_X_Atom *ecore_x_window_prop_list(Ecore_X_Window win, int *num_ret); EAPI void ecore_x_window_prop_state_set(Ecore_X_Window win, Ecore_X_Window_State s); EAPI int ecore_x_window_prop_state_isset(Ecore_X_Window win, Ecore_X_Window_State s); EAPI void ecore_x_window_prop_state_unset(Ecore_X_Window win, Ecore_X_Window_State s); =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window_prop.c,v retrieving revision 1.65 retrieving revision 1.66 diff -u -3 -r1.65 -r1.66 --- ecore_x_window_prop.c 16 May 2005 12:59:26 -0000 1.65 +++ ecore_x_window_prop.c 28 May 2005 16:59:03 -0000 1.66 @@ -1341,7 +1341,8 @@ * as part of the EWMH specification. The value supplied should be an * integer between 0 and 255, with 255 representing full opacity. */ -void ecore_x_window_prop_window_opacity_set(Ecore_X_Window win, int opacity) +void +ecore_x_window_prop_window_opacity_set(Ecore_X_Window win, int opacity) { unsigned long o_val; double tmp; @@ -1363,7 +1364,8 @@ * @return An int between 0 and 255 representing the window's opacity value, * or -1 if the property is not found. */ -int ecore_x_window_prop_window_opacity_get(Ecore_X_Window win) +int +ecore_x_window_prop_window_opacity_get(Ecore_X_Window win) { unsigned char *data = NULL; unsigned long lval; @@ -1383,3 +1385,29 @@ return ret_val; } +Ecore_X_Atom * +ecore_x_window_prop_list(Ecore_X_Window win, int *num_ret) +{ + Ecore_X_Atom *atoms; + Atom *atom_ret; + int num = 0, i; + + atom_ret = XListProperties(_ecore_x_disp, win, &num); + if (!atom_ret) + { + if (num_ret) *num_ret = 0; + return NULL; + } + atoms = malloc(num * sizeof(Ecore_X_Atom)); + if (atoms) + { + for (i = 0; i < num; i++) atoms[i] = atom_ret[i]; + XFree(atom_ret); + if (num_ret) *num_ret = num; + } + else + { + if (num_ret) *num_ret = 0; + } + return atoms; +} ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs