diff options
author | Ted Gould <ted@gould.cx> | 2009-12-02 10:15:11 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2009-12-02 10:15:11 -0600 |
commit | a4e33bf97827e04c364210f29ccb85ed6254050f (patch) | |
tree | 8d8336bc6f9464c090a4e18ca09c9d0fd227b043 /libindicator/indicator-service-manager.c | |
parent | d7e9d013ae0d872fe0657b79f081a2a44b42f4c0 (diff) | |
download | libayatana-indicator-a4e33bf97827e04c364210f29ccb85ed6254050f.tar.gz libayatana-indicator-a4e33bf97827e04c364210f29ccb85ed6254050f.tar.bz2 libayatana-indicator-a4e33bf97827e04c364210f29ccb85ed6254050f.zip |
Adding _new functions that include the version number in them.
Diffstat (limited to 'libindicator/indicator-service-manager.c')
-rw-r--r-- | libindicator/indicator-service-manager.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libindicator/indicator-service-manager.c b/libindicator/indicator-service-manager.c index cbe66d3..293ae03 100644 --- a/libindicator/indicator-service-manager.c +++ b/libindicator/indicator-service-manager.c @@ -337,6 +337,17 @@ indicator_service_manager_new (gchar * dbus_name) return INDICATOR_SERVICE_MANAGER(obj); } +IndicatorServiceManager * +indicator_service_manager_new_version (gchar * dbus_name, guint version) +{ + GObject * obj = g_object_new(INDICATOR_SERVICE_MANAGER_TYPE, + PROP_NAME_S, dbus_name, + PROP_VERSION_S, version, + NULL); + + return INDICATOR_SERVICE_MANAGER(obj); +} + gboolean indicator_service_manager_connected (IndicatorServiceManager * sm) { |