diff options
author | Havoc Pennington <hp@redhat.com> | 2005-01-29 20:12:22 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2005-01-29 20:12:22 +0000 |
commit | 2922b0e88ba00b0067c23633075629108ad8a496 (patch) | |
tree | 50a0022443d38eddd79bbbd77241886391d6257c /tools | |
parent | fd3e49f249fb4ab5ac7da4fe9fc14cc67958d84a (diff) |
2005-01-29 Havoc Pennington <hp@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
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dbus-tree-view.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/dbus-tree-view.c b/tools/dbus-tree-view.c index afcda0fe..7c52935e 100644 --- a/tools/dbus-tree-view.c +++ b/tools/dbus-tree-view.c @@ -134,6 +134,8 @@ set_info (GtkTreeModel *model, 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 @@ set_info (GtkTreeModel *model, 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 @@ info_set_func_text (GtkTreeViewColumn *tree_column, 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; |