summaryrefslogtreecommitdiff
path: root/src/fr-window.c
diff options
context:
space:
mode:
authorzhuyaliang <[email protected]>2023-04-14 18:04:04 +0800
committerLuke from DC <[email protected]>2023-04-21 05:17:59 +0000
commitbfad1975223ff5da6e998f3ad20fdc52e0fe94ca (patch)
treeb4ffc85f2e2d602b5391bfaa057ba9afd0148cfd /src/fr-window.c
parent9c8ab8787724da4603c023adf406d0d4909bb8de (diff)
downloadengrampa-bfad1975223ff5da6e998f3ad20fdc52e0fe94ca.tar.bz2
engrampa-bfad1975223ff5da6e998f3ad20fdc52e0fe94ca.tar.xz
action: Delete unused sort_by_entries code
Diffstat (limited to 'src/fr-window.c')
-rw-r--r--src/fr-window.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/fr-window.c b/src/fr-window.c
index 88d8d9a..665670d 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -4854,9 +4854,6 @@ sort_column_changed_cb (GtkTreeSortable *sortable,
window->priv->sort_method = get_sort_method_from_column (column_id);
window->priv->sort_type = order;
-
- /*set_active (window, get_action_from_sort_method (window->priv->sort_method), TRUE);
- set_active (window, "SortReverseOrder", (window->priv->sort_type == GTK_SORT_DESCENDING));*/
}
static gboolean
@@ -5116,18 +5113,6 @@ view_as_radio_action (GtkAction *action,
}
static void
-sort_by_radio_action (GtkAction *action,
- GtkRadioAction *current,
- gpointer data)
-{
- FrWindow *window = data;
-
- window->priv->sort_method = gtk_radio_action_get_current_value (current);
- window->priv->sort_type = GTK_SORT_ASCENDING;
- fr_window_update_list_order (window);
-}
-
-static void
recent_chooser_item_activated_cb (GtkRecentChooser *chooser,
FrWindow *window)
{
@@ -5727,12 +5712,6 @@ fr_window_construct (FrWindow *window)
window->priv->list_mode,
G_CALLBACK (view_as_radio_action),
window);
- gtk_action_group_add_radio_actions (actions,
- sort_by_entries,
- n_sort_by_entries,
- window->priv->sort_type,
- G_CALLBACK (sort_by_radio_action),
- window);
g_signal_connect (ui, "connect_proxy",
G_CALLBACK (connect_proxy_cb), window);
@@ -7024,14 +7003,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)