devilspie r215 - in trunk: . src
- From: rburton svn gnome org
- To: svn-commits-list gnome org
- Subject: devilspie r215 - in trunk: . src
- Date: Fri, 13 Feb 2009 10:19:03 +0000 (UTC)
Author: rburton
Date: Fri Feb 13 10:19:03 2009
New Revision: 215
URL: http://svn.gnome.org/viewvc/devilspie?rev=215&view=rev
Log:
2009-02-13 Ross Burton <ross linux intel com>
* src/xutils.c:
When fetching properties as strings, handle single valued
cardinals too (thanks Keith Swett).
Modified:
trunk/ChangeLog
trunk/src/xutils.c
Modified: trunk/src/xutils.c
==============================================================================
--- trunk/src/xutils.c (original)
+++ trunk/src/xutils.c Fri Feb 13 10:19:03 2009
@@ -167,6 +167,21 @@
g_free (prop_names);
}
}
+ else if (type == XA_CARDINAL && nitems == 1)
+ {
+ switch(format)
+ {
+ case 32:
+ retval = g_strdup_printf("%lu",*(unsigned long*)property);
+ break;
+ case 16:
+ retval = g_strdup_printf("%u",*(unsigned int*)property);
+ break;
+ case 8:
+ retval = g_strdup_printf("%c",*(unsigned char*)property);
+ break;
+ }
+ }
XFree (property);
return retval;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]