dbus interfaces for nautilus

View: New views
3 Messages — Rating Filter:   Alert me  

Parent Message unknown dbus interfaces for nautilus

by Peter Goetz-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

within in the scope of a backup application I'm currently writing
(http://sourceforge.net/projects/cozy/), I need a dbus interface to
Nautilus. So I started adding interfaces to it.

As a start I added one to NautilusApplication and NautilusWindow. It's
basically small wrappers for functions like the go_to function. It's
far from being complete, but it works and I'm willing to add more.

But first I wanted to hear if I'm heading in the right direction, if
there are things that I must consider, or things that I should already
change. For example I was wondering if I should move all the functions
to a separate source/header file instead of adding them to the
existing files (had some problems with linking when trying that
though).

Anyway, please find the patch in the attachment. I also submitted a
patch on bugzilla:

https://bugzilla.gnome.org/show_bug.cgi?id=498506

Feedback is very welcome!

Cheers,
Peter


--
nautilus-list mailing list
nautilus-list@...
http://mail.gnome.org/mailman/listinfo/nautilus-list

basic-dbus-support.patch.gz (6K) Download Attachment

Re: dbus interfaces for nautilus

by Christian Neumair-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Peter,

Am Sonntag, den 11.10.2009, 19:17 +0200 schrieb Peter Goetz:

> As a start I added one to NautilusApplication and NautilusWindow. It's
> basically small wrappers for functions like the go_to function. It's
> far from being complete, but it works and I'm willing to add more.
>
> But first I wanted to hear if I'm heading in the right direction, if
> there are things that I must consider, or things that I should already
> change. For example I was wondering if I should move all the functions
> to a separate source/header file instead of adding them to the
> existing files (had some problems with linking when trying that
> though).

Thanks for working on this. As already mentioned in the bug report, I am
also working on this functionality. In my implementation, the D-Bus
classes are separate from the rest of the sources, for the sake of
readability.

Alexander and I discussed a possible API which allows to access the
window, the view containers (slots) and the views themselves. The API is
still in flux -- it is only clear that there will be some basic
operations (reload, close, go_to etc.). Please specify in detail what
functionality you need so that we can consider its addition to the API.

Best regards,
 Christian Neumair

--
Christian Neumair <cneumair@...>

--
nautilus-list mailing list
nautilus-list@...
http://mail.gnome.org/mailman/listinfo/nautilus-list

Re: dbus interfaces for nautilus

by Peter Goetz-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> operations (reload, close, go_to etc.). Please specify in detail what
> functionality you need so that we can consider its addition to the API.

Actually the functionality I need became to specific to be exposed
generally by Nautilus, so I will work on a specific patch for it.
At the beginning I thought a simple go_to_location would be enough,
but I realized, that in order to be convenient, my backup program
needs Nautilus to process a specific Dbus-signal to go into "restore"
mode, in which it will communicate with my backup program.

So the Dbus additions were basically a nice byproduct of the whole
thing, which is needed generally anyway.

Cheers,
Peter
--
nautilus-list mailing list
nautilus-list@...
http://mail.gnome.org/mailman/listinfo/nautilus-list