diff options
author | Giovanni Campagna <gcampagna@src.gnome.org> | 2012-09-10 22:08:15 +0200 |
---|---|---|
committer | Giovanni Campagna <gcampagna@src.gnome.org> | 2012-09-14 17:56:07 +0200 |
commit | d73f46ff9b04c8c2eeaced6346b5f2d1f9999565 (patch) | |
tree | 62ba7cc2ad9246067e30585df15f8121c12bb967 /daemon | |
parent | b5397ac7d8e2ec1aa24b3c01ce336c08d2d66789 (diff) | |
download | gdm-d73f46ff9b04c8c2eeaced6346b5f2d1f9999565.tar.gz |
daemon: export a Version on the bus
This will allow clients such as gnome-shell to do runtime detection
of gdm and fallback gracefully if not available.
https://bugzilla.gnome.org/show_bug.cgi?id=683790
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/gdm-manager.c | 2 | ||||
-rw-r--r-- | daemon/gdm-manager.xml | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c index 394a90cf..550f09db 100644 --- a/daemon/gdm-manager.c +++ b/daemon/gdm-manager.c @@ -1051,6 +1051,8 @@ gdm_manager_constructor (GType type, n_construct_properties, construct_properties)); + gdm_dbus_manager_set_version (GDM_DBUS_MANAGER (manager), PACKAGE_VERSION); + manager->priv->local_factory = gdm_local_display_factory_new (manager->priv->display_store); #ifdef HAVE_LIBXDMCP diff --git a/daemon/gdm-manager.xml b/daemon/gdm-manager.xml index db35b38a..d3bb3b2e 100644 --- a/daemon/gdm-manager.xml +++ b/daemon/gdm-manager.xml @@ -8,5 +8,6 @@ <arg name="username" direction="in" type="s"/> <arg name="address" direction="out" type="s"/> </method> + <property name="Version" type="s" access="read"/> </interface> </node> |