summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c53
1 files changed, 0 insertions, 53 deletions
diff --git a/src/actions.c b/src/actions.c
index b55cab1..31a9272 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -44,10 +44,8 @@
#include "fr-init.h"
#include "typedefs.h"
-
/* -- new archive -- */
-
static void
new_archive (DlgNewData *data,
char *uri)
@@ -81,7 +79,6 @@ new_archive (DlgNewData *data,
gtk_widget_destroy (archive_window);
}
-
/* when on Automatic the user provided extension needs to be supported,
otherwise an existing unsupported archive can be deleted (if the user
provided name matches with its name) before we find out that the
@@ -99,7 +96,6 @@ is_supported_extension (GtkWidget *file_sel,
return FALSE;
}
-
static char *
get_full_uri (DlgNewData *data)
{
@@ -137,7 +133,6 @@ get_full_uri (DlgNewData *data)
return full_uri;
}
-
static char *
get_archive_filename_from_selector (DlgNewData *data)
{
@@ -263,7 +258,6 @@ get_archive_filename_from_selector (DlgNewData *data)
return uri;
}
-
static void
new_file_response_cb (GtkWidget *w,
int response,
@@ -292,7 +286,6 @@ new_file_response_cb (GtkWidget *w,
}
}
-
void
show_new_archive_dialog (FrWindow *window,
const char *archive_name)
@@ -311,7 +304,6 @@ show_new_archive_dialog (FrWindow *window,
gtk_window_present (GTK_WINDOW (data->dialog));
}
-
void
activate_action_new (GtkAction *action,
gpointer data)
@@ -319,10 +311,8 @@ activate_action_new (GtkAction *action,
show_new_archive_dialog ((FrWindow*)data, NULL);
}
-
/* -- open archive -- */
-
static void
window_archive_loaded_cb (FrWindow *window,
gboolean success,
@@ -339,7 +329,6 @@ window_archive_loaded_cb (FrWindow *window,
}
}
-
static void
open_file_response_cb (GtkWidget *w,
int response,
@@ -370,7 +359,6 @@ open_file_response_cb (GtkWidget *w,
g_free (uri);
}
-
void
activate_action_open (GtkAction *action,
gpointer data)
@@ -415,10 +403,8 @@ activate_action_open (GtkAction *action,
gtk_widget_show (file_sel);
}
-
/* -- save archive -- */
-
static void
save_file_response_cb (GtkWidget *w,
gint response,
@@ -458,7 +444,6 @@ save_file_response_cb (GtkWidget *w,
g_free (path);
}
-
void
activate_action_save_as (GtkAction *action,
gpointer callback_data)
@@ -500,7 +485,6 @@ activate_action_save_as (GtkAction *action,
g_free (archive_name);
}
-
void
activate_action_test_archive (GtkAction *action,
gpointer data)
@@ -510,7 +494,6 @@ activate_action_test_archive (GtkAction *action,
fr_window_archive_test (window);
}
-
void
activate_action_properties (GtkAction *action,
gpointer data)
@@ -520,7 +503,6 @@ activate_action_properties (GtkAction *action,
dlg_prop (window);
}
-
void
activate_action_close (GtkAction *action,
gpointer data)
@@ -530,7 +512,6 @@ activate_action_close (GtkAction *action,
fr_window_close (window);
}
-
void
activate_action_add_files (GtkAction *action,
gpointer data)
@@ -538,7 +519,6 @@ activate_action_add_files (GtkAction *action,
add_files_cb (NULL, data);
}
-
void
activate_action_add_folder (GtkAction *action,
gpointer data)
@@ -546,7 +526,6 @@ activate_action_add_folder (GtkAction *action,
add_folder_cb (NULL, data);
}
-
void
activate_action_extract (GtkAction *action,
gpointer data)
@@ -554,7 +533,6 @@ activate_action_extract (GtkAction *action,
dlg_extract (NULL, data);
}
-
void
activate_action_extract_folder_from_sidebar (GtkAction *action,
gpointer data)
@@ -562,7 +540,6 @@ activate_action_extract_folder_from_sidebar (GtkAction *action,
dlg_extract_folder_from_sidebar (NULL, data);
}
-
void
activate_action_copy (GtkAction *action,
gpointer data)
@@ -570,7 +547,6 @@ activate_action_copy (GtkAction *action,
fr_window_copy_selection ((FrWindow*) data, FALSE);
}
-
void
activate_action_cut (GtkAction *action,
gpointer data)
@@ -578,7 +554,6 @@ activate_action_cut (GtkAction *action,
fr_window_cut_selection ((FrWindow*) data, FALSE);
}
-
void
activate_action_paste (GtkAction *action,
gpointer data)
@@ -586,7 +561,6 @@ activate_action_paste (GtkAction *action,
fr_window_paste_selection ((FrWindow*) data, FALSE);
}
-
void
activate_action_rename (GtkAction *action,
gpointer data)
@@ -594,7 +568,6 @@ activate_action_rename (GtkAction *action,
fr_window_rename_selection ((FrWindow*) data, FALSE);
}
-
void
activate_action_delete (GtkAction *action,
gpointer data)
@@ -602,7 +575,6 @@ activate_action_delete (GtkAction *action,
dlg_delete (NULL, data);
}
-
void
activate_action_copy_folder_from_sidebar (GtkAction *action,
gpointer data)
@@ -610,7 +582,6 @@ activate_action_copy_folder_from_sidebar (GtkAction *action,
fr_window_copy_selection ((FrWindow*) data, TRUE);
}
-
void
activate_action_cut_folder_from_sidebar (GtkAction *action,
gpointer data)
@@ -618,7 +589,6 @@ activate_action_cut_folder_from_sidebar (GtkAction *action,
fr_window_cut_selection ((FrWindow*) data, TRUE);
}
-
void
activate_action_paste_folder_from_sidebar (GtkAction *action,
gpointer data)
@@ -626,7 +596,6 @@ activate_action_paste_folder_from_sidebar (GtkAction *action,
fr_window_paste_selection ((FrWindow*) data, TRUE);
}
-
void
activate_action_rename_folder_from_sidebar (GtkAction *action,
gpointer data)
@@ -634,7 +603,6 @@ activate_action_rename_folder_from_sidebar (GtkAction *action,
fr_window_rename_selection ((FrWindow*) data, TRUE);
}
-
void
activate_action_delete_folder_from_sidebar (GtkAction *action,
gpointer data)
@@ -642,7 +610,6 @@ activate_action_delete_folder_from_sidebar (GtkAction *action,
dlg_delete_from_sidebar (NULL, data);
}
-
void
activate_action_find (GtkAction *action,
gpointer data)
@@ -652,7 +619,6 @@ activate_action_find (GtkAction *action,
fr_window_find (window);
}
-
void
activate_action_select_all (GtkAction *action,
gpointer data)
@@ -662,7 +628,6 @@ activate_action_select_all (GtkAction *action,
fr_window_select_all (window);
}
-
void
activate_action_deselect_all (GtkAction *action,
gpointer data)
@@ -672,7 +637,6 @@ activate_action_deselect_all (GtkAction *action,
fr_window_unselect_all (window);
}
-
void
activate_action_open_with (GtkAction *action,
gpointer data)
@@ -680,7 +644,6 @@ activate_action_open_with (GtkAction *action,
open_with_cb (NULL, (FrWindow*) data);
}
-
void
activate_action_view_or_open (GtkAction *action,
gpointer data)
@@ -695,7 +658,6 @@ activate_action_view_or_open (GtkAction *action,
path_list_free (file_list);
}
-
void
activate_action_open_folder (GtkAction *action,
gpointer data)
@@ -704,7 +666,6 @@ activate_action_open_folder (GtkAction *action,
fr_window_current_folder_activated (window, FALSE);
}
-
void
activate_action_open_folder_from_sidebar (GtkAction *action,
gpointer data)
@@ -713,7 +674,6 @@ activate_action_open_folder_from_sidebar (GtkAction *action,
fr_window_current_folder_activated (window, TRUE);
}
-
void
activate_action_password (GtkAction *action,
gpointer data)
@@ -721,7 +681,6 @@ activate_action_password (GtkAction *action,
dlg_password (NULL, (FrWindow*) data);
}
-
void
activate_action_view_toolbar (GtkAction *action,
gpointer data)
@@ -733,7 +692,6 @@ activate_action_view_toolbar (GtkAction *action,
g_object_unref (settings);
}
-
void
activate_action_view_statusbar (GtkAction *action,
gpointer data)
@@ -745,7 +703,6 @@ activate_action_view_statusbar (GtkAction *action,
g_object_unref (settings);
}
-
void
activate_action_view_folders (GtkAction *action,
gpointer data)
@@ -757,7 +714,6 @@ activate_action_view_folders (GtkAction *action,
g_object_unref (settings);
}
-
void
activate_action_stop (GtkAction *action,
gpointer data)
@@ -766,7 +722,6 @@ activate_action_stop (GtkAction *action,
fr_window_stop (window);
}
-
void
activate_action_reload (GtkAction *action,
gpointer data)
@@ -776,7 +731,6 @@ activate_action_reload (GtkAction *action,
fr_window_archive_reload (window);
}
-
void
activate_action_sort_reverse_order (GtkAction *action,
gpointer data)
@@ -786,7 +740,6 @@ activate_action_sort_reverse_order (GtkAction *action,
fr_window_set_sort_type (window, gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)) ? GTK_SORT_DESCENDING : GTK_SORT_ASCENDING);
}
-
void
activate_action_last_output (GtkAction *action,
gpointer data)
@@ -795,7 +748,6 @@ activate_action_last_output (GtkAction *action,
fr_window_view_last_output (window, _("Last Output"));
}
-
void
activate_action_go_back (GtkAction *action,
gpointer data)
@@ -804,7 +756,6 @@ activate_action_go_back (GtkAction *action,
fr_window_go_back (window);
}
-
void
activate_action_go_forward (GtkAction *action,
gpointer data)
@@ -813,7 +764,6 @@ activate_action_go_forward (GtkAction *action,
fr_window_go_forward (window);
}
-
void
activate_action_go_up (GtkAction *action,
gpointer data)
@@ -822,7 +772,6 @@ activate_action_go_up (GtkAction *action,
fr_window_go_up_one_level (window);
}
-
void
activate_action_go_home (GtkAction *action,
gpointer data)
@@ -831,7 +780,6 @@ activate_action_go_home (GtkAction *action,
fr_window_go_to_location (window, "/", FALSE);
}
-
void
activate_action_manual (GtkAction *action,
gpointer data)
@@ -841,7 +789,6 @@ activate_action_manual (GtkAction *action,
show_help_dialog (GTK_WINDOW (window) , NULL);
}
-
#define ABOUT_GROUP "About"
#define EMAILIFY(string) (g_strdelimit ((string), "%", '@'))