using menu-provider extension to change location



Hi,

I'm trying to write an extension for nautilus which adds a button to
the toolbar that can be used to change the current location in
nautilus.

I'm using the menu-provider extension to create the button, which
works perfectly fine, however I haven't found a way to actually change
the location from within my callback function. How can I accomplish
this? The only way I can think of (which seems to be very complicated)
is to use nautilus' source code while compiling my extension, do a
cast of the GtkWindow-parameter to a NautilusWindow-object and call
the nautilus_window_go_to function. Is there an easier solution?

Anyone who can point me in the right direction? Thanks a lot!

Peter

PS: sorry, if something like this was asked before. I'm new to this
list and haven't found anything in the archives.


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