[gnome-photos] thumbnailer-dbus: Add a Cancel method to support cancellation



commit a0334a8c95f6af43dc043d0040bbb9a8d0f130e7
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Feb 22 16:38:26 2017 +0100

    thumbnailer-dbus: Add a Cancel method to support cancellation
    
    Updating the thumbnails to reflect the edited state of the items
    requires that ongoing thumbnailing jobs be cancelled on the
    client-side. It will be nice to avoid any needless I/O or CPU
    consumption by propagating the cancellation to the thumbnailer process.
    
    This Cancel method is meant to be used by ThumbnailerFactory to tell
    the thumbnailer to cancel a specific GenerateThumbnail call.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763329

 src/photos-thumbnailer-dbus.xml |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-thumbnailer-dbus.xml b/src/photos-thumbnailer-dbus.xml
index 6f9b30d..8a5acf1 100644
--- a/src/photos-thumbnailer-dbus.xml
+++ b/src/photos-thumbnailer-dbus.xml
@@ -24,6 +24,9 @@
 
 <node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd";>
   <interface name="org.gnome.Photos.Thumbnailer">
+    <method name="Cancel">
+      <arg name="serial" type="u" direction="in" />
+    </method>
     <method name="GenerateThumbnail">
       <arg name="uri" type="s" direction="in" />
       <arg name="mime_type" type="s" direction="in" />


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]