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.c
Log Message:
more handy fucns for... you know what... :)
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -3 -r1.62 -r1.63
--- Ecore_X.h 17 Oct 2004 12:29:00 -0000 1.62
+++ Ecore_X.h 17 Oct 2004 15:29:43 -0000 1.63
@@ -919,7 +919,8 @@
ecore_x_window_save_set_add(Ecore_X_Window win);
void
ecore_x_window_save_set_del(Ecore_X_Window win);
-
+ Ecore_X_Window *
+ ecore_x_window_children_get(Ecore_X_Window win, int *num);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -3 -r1.42 -r1.43
--- ecore_x.c 17 Oct 2004 12:29:02 -0000 1.42
+++ ecore_x.c 17 Oct 2004 15:29:43 -0000 1.43
@@ -1032,6 +1032,34 @@
XRemoveFromSaveSet(_ecore_x_disp, win);
}
+Ecore_X_Window *
+ecore_x_window_children_get(Ecore_X_Window win, int *num)
+{
+ Ecore_X_Window *windows = NULL;
+ Window root_ret = 0, parent_ret = 0, *children_ret = NULL;
+ unsigned int children_ret_num = 0;
+
+ if (!XQueryTree(_ecore_x_disp, win, &root_ret, &parent_ret, &children_ret,
+ &children_ret_num))
+ {
+ return NULL;
+ }
+ if (children_ret)
+ {
+ windows = malloc(children_ret_num * sizeof(Ecore_X_Window));
+ if (windows)
+ {
+ int i;
+
+ for (i = 0; i < children_ret_num; i++)
+ windows[i] = children_ret[i];
+ *num = children_ret_num;
+ }
+ XFree(children_ret);
+ }
+ return windows;
+}
+
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs