hal/tools/device-manager Makefile.am, 1.2, 1.3 Representation.py,
1.6, 1.7 hal-computer.png, NONE, 1.1
David Zeuthen
david at freedesktop.org
Wed Jul 21 17:31:47 PDT 2004
Update of /cvs/hal/hal/tools/device-manager
In directory pdx:/tmp/cvs-serv27646/tools/device-manager
Modified Files:
Makefile.am Representation.py
Added Files:
hal-computer.png
Log Message:
2004-07-22 David Zeuthen <david at fubar.dk>
Patch from Kay Sievers <kay.sievers at vrfy.org>
* tools/device-manager/hal-computer.png: New file
* tools/device-manager/Representation.py: Use hal-computer.png
* tools/device-manager/Makefile.am (dist_devicemanager_DATA): Add
hal-computer.png
2004-07-22 David Zeuthen <david at fubar.dk>
* libhal/libhal.[ch]: Fixup documentation so doxygen no longer
complains
Index: Makefile.am
===================================================================
RCS file: /cvs/hal/hal/tools/device-manager/Makefile.am,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Makefile.am 22 Dec 2003 14:07:48 -0000 1.2
+++ Makefile.am 22 Jul 2004 00:31:45 -0000 1.3
@@ -22,6 +22,7 @@
hal-camera.png hal-network.png \
hal-cat-cardbus.png hal-unknown.png \
hal-cat-keyboard.png hal-video.png \
+ hal-computer.png \
hal-device-manager.glade
# symlink into $(bindir) for convenience
Index: Representation.py
===================================================================
RCS file: /cvs/hal/hal/tools/device-manager/Representation.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- Representation.py 22 Apr 2004 21:52:06 -0000 1.6
+++ Representation.py 22 Jul 2004 00:31:45 -0000 1.7
@@ -22,6 +22,7 @@
def __init__(self):
"""Init the class and load neccessary resources."""
self.icons = {}
+ self.icons["computer"] = self.load_and_scale_icon(Const.DATADIR + "/hal-computer.png")
self.icons["bus_pci"] = self.load_and_scale_icon(Const.DATADIR + "/hal-bus-pci.png")
self.icons["bus_usb"] = self.load_and_scale_icon(Const.DATADIR + "/hal-bus-usb.png")
self.icons["abstract"] = self.load_and_scale_icon(Const.DATADIR + "/hal-abstract.png");
@@ -38,13 +39,17 @@
self.icons["audio"] = self.load_and_scale_icon(Const.DATADIR + "/hal-audio.png")
self.icons["camera"] = self.load_and_scale_icon(Const.DATADIR + "/hal-camera.png")
-
+
def get_icon(self, device):
"""Given a Device object return an icon to display"""
# Default to abstract icon
icon = self.icons["abstract"]
-
+
+ product = device.properties["info.product"]
+ if product=="Computer":
+ return self.icons["computer"]
+
# First look at bus type, every device got Bus property
bus = device.properties["info.bus"]
if bus=="usb":
--- NEW FILE: hal-computer.png ---
PNG
(¿ÚõAâ£EÕ ªxF½ïðá6JKÓcêcMÔ
ªac
Îúò&8yä?xôB`?.]"Soßc¹Q|ÅD}?&T
PEÕGxíëlC8<.}
ÆYã¨ág¿ÿKÿ×åe娿DÀÓ¾DÎ?ÇÊ+ª/5Wf°téRº»»§Æ
¢àØ!|ôå_ÖÖÖV=yòä-ÙZtG»ººÂJtGk´ (hlläøñãx®K__
öïß7_YYÉ(++§¼¼9sæðî»þ ¾±ûyîé£X@ ðå+W¾÷Ê+¯9sóçÏS]]=¡sii)W¯^ðý
úûû©ªªâÒ¥KY÷kjjhlÜà|ðÁ«@¦¿sIÆnf}}ý_·nÝZv×]wÑÝÝÍ+Wèíí%J!"ôôôN§Éd2ÈgÇq²®Ï
°î¾mÛDyÎ[ÅâÅ©««Kõôô¬>yòäoÌ¿E øcKKK}]]]´bÒá([¢TçU÷ ¨hòûÆEIÂ]»d7'òjj at U:::hhhØ<~öÐýaÝ,?}ú4'Nø\ó
Ær`Óãý8_u¿+ %*"yfÕÙC/d! à@
Ķä)ÃÇÃ}ÌÜÚÇêJúÞw/uùwï¥åùç/¼sÙôéµÝ+®ñ®{æÁûçÏ}ü±º¢g²§+h´×/u¼èZV>Ä%Í7~ôwn)<À+¿÷EvìØAccãp2NÅ¢-ÑBýr×Öa¿ÐèÍT>n`
More information about the hal-commit
mailing list