[nautilus/wip/gaction_: 11/14] 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_: 11/14] nautilus-view: move function for better context
- Date: Fri, 16 Jan 2015 16:16:56 +0000 (UTC)
commit a5044ac8d995864f6567f2a6b81343609ec40abd
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 43de72e..c8a6935 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -1124,6 +1124,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)
@@ -6065,44 +6102,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]