Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
icons.c
Log Message:
Use wrapper function (XGetGeometry->EXGetGeometry).
===================================================================
RCS file: /cvs/e/e16/e/src/icons.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- icons.c 13 Jan 2007 19:14:28 -0000 1.16
+++ icons.c 14 Jan 2008 21:48:12 -0000 1.17
@@ -131,13 +131,13 @@
IB_GetAppIcon(EWin * ewin, int size)
{
/* Get the applications icon pixmap/mask */
- int x, y;
- unsigned int w, h, depth, bw;
- Window rt;
+ int w, h;
EImage *im;
if (ewin->ewmh.wm_icon)
{
+ int x;
+
x = NetwmIconFindBestSize(ewin->ewmh.wm_icon, ewin->ewmh.wm_icon_len,
size);
if (x >= 0)
@@ -155,7 +155,7 @@
w = 0;
h = 0;
- XGetGeometry(disp, ewin->icccm.icon_pmap, &rt, &x, &y, &w, &h, &bw, &depth);
+ EXGetGeometry(ewin->icccm.icon_pmap, NULL, NULL, NULL, &w, &h, NULL, NULL);
if (w < 1 || h < 1)
return NULL;
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs