hal/tools/device-manager DeviceManager.py,1.18,1.19

David Zeuthen david at freedesktop.org
Wed Feb 16 10:39:58 PST 2005


Update of /cvs/hal/hal/tools/device-manager
In directory gabe:/tmp/cvs-serv27614/tools/device-manager

Modified Files:
	DeviceManager.py 
Log Message:
2005-02-16  David Zeuthen  <davidz at redhat.com>

	* tools/device-manager/DeviceManager.py:
	(DeviceManager.update_tab_advanced): Make this work for string lists

	* tools/lshal.c (main): Various cleanups

	* libhal/libhal.c (libhal_property_fill_value_from_variant): Make
	this one static. Make sure to recurse into string array otherwise
	it won't work at all
	(libhal_get_string_array_from_iter): Make this static. Take
	num_elems pointer
	(libhal_property_set_get_num_elems): New function
	(libhal_get_all_devices): Pass num_devices to
	libhal_get_string_array_from_iter
	(libhal_ctx_shutdown): Remove match and filter function
	(libhal_ctx_free): Implement this one; free our context

	* libhal/libhal.h: Add prototype for libhal_property_set_get_num_elems

	* hald/hald_test_libhal.c (check_libhal): Add tests for the property
	set functions as they were failing (see changes above)

	* hald/Makefile.am (hald_test_SOURCES): Remove callout.[ch] as they
	are now gone



Index: DeviceManager.py
===================================================================
RCS file: /cvs/hal/hal/tools/device-manager/DeviceManager.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- DeviceManager.py	14 Feb 2005 18:20:05 -0000	1.18
+++ DeviceManager.py	16 Feb 2005 18:39:56 -0000	1.19
@@ -463,6 +463,9 @@
                     store.set(iter, 0, p, 1, "bool", 2, "false")
             elif ptype==float:
                 store.set(iter, 0, p, 1, "float", 2, "%f"%val)
+	    else:
+		# assume strlist
+		store.set(iter, 0, p, 1, "strlist", 2, val)
 
 
         prop_tree_view = self.xml.get_widget("ns_adv_properties")




More information about the hal-commit mailing list