[nautilus/wip/gaction_: 7/10] nautilus-view: move function for better context
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/gaction_: 7/10] nautilus-view: move function for better context
- Date: Tue, 20 Jan 2015 16:04:34 +0000 (UTC)
commit ba20de459ae6167bfb31a90aa20ed75fc2c95b1c
Author: Carlos Soriano <carlos sorian89 gmail com>
Date: Mon Jan 5 18:06:17 2015 +0100
nautilus-view: move function for better context
src/nautilus-view.c | 75 +++++++++++++++++++++++++--------------------------
1 files changed, 37 insertions(+), 38 deletions(-)
---
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index f4d76d9..c974aa4 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -1129,6 +1129,43 @@ action_open_new_tab_callback (GtkAction *action,
}
static void
+action_location_open_alternate_callback (GtkAction *action,
+ gpointer callback_data)
+{
+ NautilusView *view;
+ NautilusFile *file;
+
+ view = NAUTILUS_VIEW (callback_data);
+
+ file = view->details->location_popup_directory_as_file;
+ if (file == NULL) {
+ return;
+ }
+ nautilus_view_activate_file (view,
+ file,
+ NAUTILUS_WINDOW_OPEN_FLAG_NEW_WINDOW);
+}
+
+static void
+action_location_open_in_new_tab_callback (GtkAction *action,
+ gpointer callback_data)
+{
+ NautilusView *view;
+ NautilusFile *file;
+
+ view = NAUTILUS_VIEW (callback_data);
+
+ file = view->details->location_popup_directory_as_file;
+ if (file == NULL) {
+ return;
+ }
+
+ nautilus_view_activate_file (view,
+ file,
+ NAUTILUS_WINDOW_OPEN_FLAG_NEW_TAB);
+}
+
+static void
app_chooser_dialog_response_cb (GtkDialog *dialog,
gint response_id,
gpointer user_data)
@@ -6371,44 +6408,6 @@ action_detect_media_callback (GtkAction *action,
nautilus_file_list_free (selection);
}
-
-static void
-action_location_open_alternate_callback (GtkAction *action,
- gpointer callback_data)
-{
- NautilusView *view;
- NautilusFile *file;
-
- view = NAUTILUS_VIEW (callback_data);
-
- file = view->details->location_popup_directory_as_file;
- if (file == NULL) {
- return;
- }
- nautilus_view_activate_file (view,
- file,
- NAUTILUS_WINDOW_OPEN_FLAG_NEW_WINDOW);
-}
-
-static void
-action_location_open_in_new_tab_callback (GtkAction *action,
- gpointer callback_data)
-{
- NautilusView *view;
- NautilusFile *file;
-
- view = NAUTILUS_VIEW (callback_data);
-
- file = view->details->location_popup_directory_as_file;
- if (file == NULL) {
- return;
- }
-
- nautilus_view_activate_file (view,
- file,
- NAUTILUS_WINDOW_OPEN_FLAG_NEW_TAB);
-}
-
gboolean
nautilus_view_get_show_hidden_files (NautilusView *view)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]