dbus/tools dbus-tree-view.c,1.4,1.5
Havoc Pennington
hp at freedesktop.org
Sat Jan 29 12:12:24 PST 2005
Update of /cvs/dbus/dbus/tools
In directory gabe:/tmp/cvs-serv21445/tools
Modified Files:
dbus-tree-view.c
Log Message:
2005-01-29 Havoc Pennington <hp at redhat.com>
* tools/dbus-tree-view.c: add support for displaying properties.
(run dbus-viewer with an introspect xml file as arg, then resize
the window so the tree elements show up, not sure what that is)
* glib/dbus-gobject.c (handle_introspect): return
org.freedesktop.Properties and org.freedesktop.Introspectable
interfaces when we are introspected.
* doc/dbus-specification.xml: allow empty interface name when
Get/Set a property
Index: dbus-tree-view.c
===================================================================
RCS file: /cvs/dbus/dbus/tools/dbus-tree-view.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- dbus-tree-view.c 10 Aug 2004 03:07:01 -0000 1.4
+++ dbus-tree-view.c 29 Jan 2005 20:12:22 -0000 1.5
@@ -134,6 +134,8 @@
interface_info_get_methods ((InterfaceInfo*)info));
append_child_list (model, root,
interface_info_get_signals ((InterfaceInfo*)info));
+ append_child_list (model, root,
+ interface_info_get_properties ((InterfaceInfo*)info));
break;
case INFO_TYPE_METHOD:
append_child_list (model, root,
@@ -143,6 +145,9 @@
append_child_list (model, root,
signal_info_get_args ((SignalInfo*)info));
break;
+ case INFO_TYPE_PROPERTY:
+ /* no children */
+ break;
case INFO_TYPE_ARG:
/* no children */
break;
@@ -292,6 +297,9 @@
case INFO_TYPE_SIGNAL:
g_string_append (str, "<i>signal</i>");
break;
+ case INFO_TYPE_PROPERTY:
+ g_string_append (str, "<i>property</i>");
+ break;
case INFO_TYPE_ARG:
g_string_append (str, "<i>arg</i>");
break;
More information about the dbus-commit
mailing list