summaryrefslogtreecommitdiff
path: root/tumblerd/tumbler-service.c
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis@xfce.org>2009-10-06 21:16:56 +0200
committerJannis Pohlmann <jannis@xfce.org>2009-10-06 21:16:56 +0200
commitabcebdf3a33db65061003f923a0eedbe7be50269 (patch)
treee2e2ba99d268e9dc5da8b56419394b800ec58da9 /tumblerd/tumbler-service.c
parentbb8928cb7423a1634f444411d7dbc6e4ea0601ef (diff)
downloadtumbler-abcebdf3a33db65061003f923a0eedbe7be50269.tar.gz
Back to the org.freedesktop.thumbnails namespace. Use API versioning.
This is another in a series of commits aiming at synchronizing the implemented D-Bus API with the changes recently made to the spec on http://live.gnome.org/ThumbnailerSpec. We now append an API version to the D-Bus interface and object path names. We also use org.freedesktop.thumbnails.SpecializedThumbnailer for specialized thumbnailers, as we do not need to use another namespace (previously org.freedesktop.thumbnailer.Thumbnailer was used) for it.
Diffstat (limited to 'tumblerd/tumbler-service.c')
-rw-r--r--tumblerd/tumbler-service.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/tumblerd/tumbler-service.c b/tumblerd/tumbler-service.c
index 40b7420..9890407 100644
--- a/tumblerd/tumbler-service.c
+++ b/tumblerd/tumbler-service.c
@@ -389,7 +389,7 @@ tumbler_service_start (TumblerService *service,
connection = dbus_g_connection_get_connection (service->connection);
/* request ownership for the generic thumbnailer interface */
- result = dbus_bus_request_name (connection, "org.freedesktop.thumbnails.Thumbnailer",
+ result = dbus_bus_request_name (connection, "org.freedesktop.thumbnails.Thumbnailer1",
DBUS_NAME_FLAG_DO_NOT_QUEUE, &dbus_error);
/* check if that failed */
@@ -420,7 +420,7 @@ tumbler_service_start (TumblerService *service,
/* register the service instance as a handler of this interface */
dbus_g_connection_register_g_object (service->connection,
- "/org/freedesktop/thumbnails/Thumbnailer",
+ "/org/freedesktop/thumbnails/Thumbnailer1",
G_OBJECT (service));
g_mutex_unlock (service->mutex);
@@ -446,8 +446,6 @@ tumbler_service_queue (TumblerService *service,
guint handle;
gint num_thumbnailers;
- g_debug ("tumbler_service_queue:");
-
dbus_async_return_if_fail (TUMBLER_IS_SERVICE (service), context);
dbus_async_return_if_fail (uris != NULL, context);
dbus_async_return_if_fail (mime_hints != NULL, context);
@@ -456,8 +454,6 @@ tumbler_service_queue (TumblerService *service,
if (desired_scheduler == NULL || *desired_scheduler == '\0')
desired_scheduler = "default";
- g_debug ("%s", desired_scheduler);
-
g_mutex_lock (service->mutex);
/* get an array with one thumbnailer for each URI in the request */