Re: Specifying thumbnailers as a service

2008-08-29 Thread Bastien Nocera
On Fri, 2008-08-29 at 11:25 +0200, Philip Van Hoof wrote: arg type=i name=size_x direction=in / arg type=i name=size_y direction=in / In the libgnomeui API, you only set one of those, and aspect ratio is preserved. The size passed is the maximum width and height.

Re: Specifying thumbnailers as a service

2008-08-29 Thread Adrien BUSTANY
Bastien Nocera a écrit : On Fri, 2008-08-29 at 11:25 +0200, Philip Van Hoof wrote: arg type=i name=size_x direction=in / arg type=i name=size_y direction=in / In the libgnomeui API, you only set one of those, and aspect ratio is preserved. The size passed is the maximum

Re: Specifying thumbnailers as a service

2008-08-29 Thread Bastien Nocera
On Fri, 2008-08-29 at 12:14 +0200, Adrien BUSTANY wrote: Bastien Nocera a écrit : On Fri, 2008-08-29 at 11:25 +0200, Philip Van Hoof wrote: arg type=i name=size_x direction=in / arg type=i name=size_y direction=in / In the libgnomeui API, you only set one of

Re: Specifying thumbnailers as a service

2008-08-29 Thread Rob Taylor
Philip Van Hoof wrote: Hi there, Not only filemanagers want to request the creation of a thumbnail. For example desktop search engines like Strigi and Tracker want to schedule the creation of thumbnails for certain of the contents that they find, ahead of time (not sure about Strigi, as one

Re: Specifying thumbnailers as a service

2008-08-29 Thread Adrien BUSTANY
Bastien Nocera a écrit : On Fri, 2008-08-29 at 12:14 +0200, Adrien BUSTANY wrote: Bastien Nocera a écrit : On Fri, 2008-08-29 at 11:25 +0200, Philip Van Hoof wrote: arg type=i name=size_x direction=in / arg type=i name=size_y direction=in / In the

Re: Specifying thumbnailers as a service

2008-08-29 Thread Philip Van Hoof
On Fri, 2008-08-29 at 11:22 +0100, Rob Taylor wrote: I wonder if it'd make sense to allow multiple services to provide thumbnailing for different mime types. This could be done by having the thumbnailing service(s) register bus names of the form org.freedesktop.thumbnailer.mime type, and

Re: Specifying thumbnailers as a service

2008-08-29 Thread Philip Van Hoof
On Fri, 2008-08-29 at 11:03 +0100, Bastien Nocera wrote: On Fri, 2008-08-29 at 11:25 +0200, Philip Van Hoof wrote: arg type=i name=size_x direction=in / arg type=i name=size_y direction=in / In the libgnomeui API, you only set one of those, and aspect ratio is preserved.

Re: Specifying thumbnailers as a service

2008-08-29 Thread Philip Van Hoof
On Fri, 2008-08-29 at 13:59 +0200, Philip Van Hoof wrote: On Fri, 2008-08-29 at 11:03 +0100, Bastien Nocera wrote: On Fri, 2008-08-29 at 11:25 +0200, Philip Van Hoof wrote: arg type=i name=size_x direction=in / arg type=i name=size_y direction=in / In the libgnomeui

Re: Specifying thumbnailers as a service

2008-08-29 Thread David Zeuthen
On Fri, 2008-08-29 at 14:34 +0200, Philip Van Hoof wrote: interface name=org.freedesktop.Thumbnailer.[mime-part] It seems odd to include the mime type in the _interface_ name; shouldn't this be generic instead? (Also keep in mind that both object paths and interface names in D-Bus are

Re: Specifying thumbnailers as a service

2008-08-29 Thread Kevin Krammer
On Friday 29 August 2008, Philip Van Hoof wrote: [snip] That, combined with Rob Taylor's proposal, brings me to this DBus API: node name=/ foreach ([mime-part] in supported_mime_parts) { interface name=org.freedesktop.Thumbnailer.[mime-part] I am not sure you need a separate interface