[file-roller: 24/26] removed unused code
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller: 24/26] removed unused code
- Date: Thu, 9 Aug 2012 20:20:01 +0000 (UTC)
commit 7636975f6c91c34481f8b6cd4572a88eab60ab45
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Aug 9 21:41:13 2012 +0200
removed unused code
src/actions.c | 10 ----------
src/actions.h | 1 -
src/fr-window.c | 9 ---------
src/fr-window.h | 2 --
src/ui.h | 27 ---------------------------
5 files changed, 0 insertions(+), 49 deletions(-)
---
diff --git a/src/actions.c b/src/actions.c
index 362c5dc..f91911e 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -441,16 +441,6 @@ activate_action_reload (GtkAction *action,
void
-activate_action_sort_reverse_order (GtkAction *action,
- gpointer data)
-{
- FrWindow *window = data;
-
- fr_window_set_sort_type (window, gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)) ? GTK_SORT_DESCENDING : GTK_SORT_ASCENDING);
-}
-
-
-void
activate_action_go_back (GtkAction *action,
gpointer data)
{
diff --git a/src/actions.h b/src/actions.h
index cf7e184..c782e07 100644
--- a/src/actions.h
+++ b/src/actions.h
@@ -62,7 +62,6 @@ void activate_action_view_statusbar (GtkAction *action, gpointer data);
void activate_action_view_folders (GtkAction *action, gpointer data);
void activate_action_stop (GtkAction *action, gpointer data);
void activate_action_reload (GtkAction *action, gpointer data);
-void activate_action_sort_reverse_order (GtkAction *action, gpointer data);
void activate_action_go_back (GtkAction *action, gpointer data);
void activate_action_go_forward (GtkAction *action, gpointer data);
diff --git a/src/fr-window.c b/src/fr-window.c
index b3ebdd6..628d82a 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -7255,15 +7255,6 @@ fr_window_unselect_all (FrWindow *window)
void
-fr_window_set_sort_type (FrWindow *window,
- GtkSortType sort_type)
-{
- window->priv->sort_type = sort_type;
- fr_window_update_list_order (window);
-}
-
-
-void
fr_window_stop (FrWindow *window)
{
if (window->priv->stoppable && (window->priv->activity_ref > 0))
diff --git a/src/fr-window.h b/src/fr-window.h
index e8d9cca..43330d4 100644
--- a/src/fr-window.h
+++ b/src/fr-window.h
@@ -203,8 +203,6 @@ GtkTreeModel * fr_window_get_list_store (FrWindow *window);
void fr_window_find (FrWindow *window);
void fr_window_select_all (FrWindow *window);
void fr_window_unselect_all (FrWindow *window);
-void fr_window_set_sort_type (FrWindow *window,
- GtkSortType sort_type);
/**/
diff --git a/src/ui.h b/src/ui.h
index 1da4f49..20179c3 100644
--- a/src/ui.h
+++ b/src/ui.h
@@ -207,11 +207,6 @@ static GtkToggleActionEntry action_toggle_entries[] = {
N_("View the statusbar"),
G_CALLBACK (activate_action_view_statusbar),
TRUE },
- { "SortReverseOrder", NULL,
- N_("_Reversed Order"), NULL,
- N_("Reverse the list order"),
- G_CALLBACK (activate_action_sort_reverse_order),
- FALSE },
{ "ViewFolders", NULL,
N_("_Folders"), "F9",
N_("View the folders pane"),
@@ -232,26 +227,4 @@ static GtkRadioActionEntry view_as_entries[] = {
static guint n_view_as_entries = G_N_ELEMENTS (view_as_entries);
-static GtkRadioActionEntry sort_by_entries[] = {
- { "SortByName", NULL,
- N_("by _Name"), NULL,
- N_("Sort file list by name"), FR_WINDOW_SORT_BY_NAME },
- { "SortBySize", NULL,
- N_("by _Size"), NULL,
- N_("Sort file list by file size"), FR_WINDOW_SORT_BY_SIZE },
- { "SortByType", NULL,
- N_("by T_ype"), NULL,
- N_("Sort file list by type"), FR_WINDOW_SORT_BY_TYPE },
- { "SortByDate", NULL,
- N_("by _Date Modified"), NULL,
- N_("Sort file list by modification time"), FR_WINDOW_SORT_BY_TIME },
- { "SortByLocation", NULL,
- /* Translators: this is the "sort by file location" menu item */
- N_("by _Location"), NULL,
- /* Translators: location is the file location */
- N_("Sort file list by location"), FR_WINDOW_SORT_BY_PATH },
-};
-static guint n_sort_by_entries = G_N_ELEMENTS (sort_by_entries);
-
-
#endif /* UI_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]