summaryrefslogtreecommitdiff
path: root/src/nautilus-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nautilus-window.c')
-rw-r--r--src/nautilus-window.c38
1 files changed, 6 insertions, 32 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index f004d629e..9b6df9767 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -221,7 +221,7 @@ action_go_home (GSimpleAction *action,
window = NAUTILUS_WINDOW (user_data);
home = g_file_new_for_path (g_get_home_dir ());
- nautilus_window_open_location_full (window, home, nautilus_event_get_window_open_flags (), NULL, NULL);
+ nautilus_window_open_location_full (window, home, 0, NULL, NULL);
g_object_unref (home);
}
@@ -269,7 +269,7 @@ action_up (GSimpleAction *action,
{
nautilus_window_open_location_full (NAUTILUS_WINDOW (user_data),
parent,
- nautilus_event_get_window_open_flags (),
+ 0,
NULL, NULL);
}
@@ -282,8 +282,7 @@ action_back (GSimpleAction *action,
GVariant *state,
gpointer user_data)
{
- nautilus_window_back_or_forward (NAUTILUS_WINDOW (user_data),
- TRUE, 0, nautilus_event_get_window_open_flags ());
+ nautilus_window_back_or_forward (NAUTILUS_WINDOW (user_data), TRUE, 0);
}
static void
@@ -291,8 +290,7 @@ action_forward (GSimpleAction *action,
GVariant *state,
gpointer user_data)
{
- nautilus_window_back_or_forward (NAUTILUS_WINDOW (user_data),
- FALSE, 0, nautilus_event_get_window_open_flags ());
+ nautilus_window_back_or_forward (NAUTILUS_WINDOW (user_data), FALSE, 0);
}
static void
@@ -2683,11 +2681,11 @@ on_multi_press_gesture_pressed (GtkGestureMultiPress *gesture,
if (mouse_extra_buttons && (button == mouse_back_button))
{
- nautilus_window_back_or_forward (window, TRUE, 0, 0);
+ nautilus_window_back_or_forward (window, TRUE, 0);
}
else if (mouse_extra_buttons && (button == mouse_forward_button))
{
- nautilus_window_back_or_forward (window, FALSE, 0, 0);
+ nautilus_window_back_or_forward (window, FALSE, 0);
}
}
@@ -2863,30 +2861,6 @@ nautilus_window_new (GdkScreen *screen)
NULL);
}
-NautilusWindowOpenFlags
-nautilus_event_get_window_open_flags (void)
-{
- NautilusWindowOpenFlags flags = 0;
- GdkEvent *event;
-
- event = gtk_get_current_event ();
-
- if (event == NULL)
- {
- return flags;
- }
-
- if ((event->type == GDK_BUTTON_PRESS || event->type == GDK_BUTTON_RELEASE) &&
- (event->button.button == GDK_BUTTON_MIDDLE))
- {
- flags |= NAUTILUS_WINDOW_OPEN_FLAG_NEW_TAB;
- }
-
- gdk_event_free (event);
-
- return flags;
-}
-
void
nautilus_window_show_about_dialog (NautilusWindow *window)
{