summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-10-27 05:00:52 +0200
committerJasmine Hassan <[email protected]>2012-11-16 09:45:51 +0200
commit32ebe8fbfd23e8cae92c487f5c91eff60ec8ec99 (patch)
treeecc2b41e34f5453df306e6ccec4e97ff5f6324fd
parentd92e8f674131476d7382496cbc37a5827cef0c84 (diff)
downloadcaja-32ebe8fbfd23e8cae92c487f5c91eff60ec8ec99.tar.bz2
caja-32ebe8fbfd23e8cae92c487f5c91eff60ec8ec99.tar.xz
[nav-win-menus] use new CajaApplication API
http://git.gnome.org/browse/nautilus/commit/?id=d5350003ac927bd683d4e18f7c0513b94f9220d7
-rw-r--r--src/caja-navigation-window-menus.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/caja-navigation-window-menus.c b/src/caja-navigation-window-menus.c
index 825bc8a5..22c89c28 100644
--- a/src/caja-navigation-window-menus.c
+++ b/src/caja-navigation-window-menus.c
@@ -629,19 +629,23 @@ static void
action_folder_window_callback (GtkAction *action,
gpointer user_data)
{
- CajaWindow *current_window;
+ CajaWindow *current_window, *window;
CajaWindowSlot *slot;
GFile *current_location;
current_window = CAJA_WINDOW (user_data);
slot = current_window->details->active_pane->active_slot;
current_location = caja_window_slot_get_location (slot);
- caja_application_present_spatial_window (
- current_window->application,
- current_window,
- NULL,
- current_location,
- gtk_window_get_screen (GTK_WINDOW (current_window)));
+ window = caja_application_get_spatial_window
+ (current_window->application,
+ current_window,
+ NULL,
+ current_location,
+ gtk_window_get_screen (GTK_WINDOW (current_window)),
+ NULL);
+
+ caja_window_go_to (window, current_location);
+
if (current_location != NULL)
{
g_object_unref (current_location);