hal/tools/device-manager Representation.py,1.12,1.13
David Zeuthen
david at freedesktop.org
Wed Apr 13 20:19:00 PDT 2005
Update of /cvs/hal/hal/tools/device-manager
In directory gabe:/tmp/cvs-serv8858/tools/device-manager
Modified Files:
Representation.py
Log Message:
2005-04-13 David Zeuthen <davidz at redhat.com>
Some patches from Martin Pitt <martin at piware.de>.
* tools/device-manager/Representation.py:
(Representation.load_and_scale_icon): Use TRUE instead of gtk.TRUE
since the latter is deprecated
* hald/hald.c (main): Drop privileges a bit later so we have a
chance to bind to the netlink socket
Index: Representation.py
===================================================================
RCS file: /cvs/hal/hal/tools/device-manager/Representation.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- Representation.py 19 Jan 2005 22:26:47 -0000 1.12
+++ Representation.py 14 Apr 2005 03:18:58 -0000 1.13
@@ -11,7 +11,7 @@
def load_and_scale_icon(self, path):
"""Helper function for loading an icon and scaling it to 16x16"""
orig = gtk.gdk.pixbuf_new_from_file(path)
- icon = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, gtk.TRUE, 8, 16, 16)
+ icon = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, TRUE, 8, 16, 16)
orig.scale(icon, 0, 0, 16, 16,
0, 0,
16.0/orig.get_width(),
More information about the hal-commit
mailing list