[nautilus] navigation-window-menus: use new NautilusApplication API
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] navigation-window-menus: use new NautilusApplication API
- Date: Mon, 20 Sep 2010 15:42:04 +0000 (UTC)
commit d5350003ac927bd683d4e18f7c0513b94f9220d7
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Aug 31 02:55:24 2010 +0200
navigation-window-menus: use new NautilusApplication API
src/nautilus-navigation-window-menus.c | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/src/nautilus-navigation-window-menus.c b/src/nautilus-navigation-window-menus.c
index f27bf10..3b9fafc 100644
--- a/src/nautilus-navigation-window-menus.c
+++ b/src/nautilus-navigation-window-menus.c
@@ -592,19 +592,23 @@ static void
action_folder_window_callback (GtkAction *action,
gpointer user_data)
{
- NautilusWindow *current_window;
+ NautilusWindow *current_window, *window;
NautilusWindowSlot *slot;
GFile *current_location;
current_window = NAUTILUS_WINDOW (user_data);
slot = current_window->details->active_pane->active_slot;
current_location = nautilus_window_slot_get_location (slot);
- nautilus_application_present_spatial_window (
- current_window->application,
- current_window,
- NULL,
- current_location,
- gtk_window_get_screen (GTK_WINDOW (current_window)));
+ window = nautilus_application_get_spatial_window
+ (current_window->application,
+ current_window,
+ NULL,
+ current_location,
+ gtk_window_get_screen (GTK_WINDOW (current_window)),
+ NULL);
+
+ nautilus_window_go_to (window, current_location);
+
if (current_location != NULL) {
g_object_unref (current_location);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]