summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Berla <corey@berla.me>2022-08-21 21:18:41 -0700
committerAntónio Fernandes <antoniof@gnome.org>2022-09-01 00:02:26 +0000
commit8f7ef8c408118350802109ddfe3df2cd0f28aed0 (patch)
treecb004f9f4047f18c3e11acf01f38b25b80f4dcab
parent5ca3f8310ca510d50d1496221af17253407fb7f1 (diff)
downloadnautilus-8f7ef8c408118350802109ddfe3df2cd0f28aed0.tar.gz
batch-rename-dialog: Remove unused code
122668b3b6013620f0caa8643986f20b2650cb71 removed the ability to select a row, so the row-selected signal will never be emitted. Drop the code.
-rw-r--r--src/nautilus-batch-rename-dialog.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/src/nautilus-batch-rename-dialog.c b/src/nautilus-batch-rename-dialog.c
index df6a5f8c9..14f142be5 100644
--- a/src/nautilus-batch-rename-dialog.c
+++ b/src/nautilus-batch-rename-dialog.c
@@ -264,54 +264,6 @@ const GActionEntry dialog_entries[] =
{ "add-album-name-tag", add_metadata_tag },
};
-static void
-row_selected (GtkListBox *box,
- GtkListBoxRow *listbox_row,
- gpointer user_data)
-{
- NautilusBatchRenameDialog *dialog;
- GtkListBoxRow *row;
- gint index;
-
- if (!GTK_IS_LIST_BOX_ROW (listbox_row))
- {
- return;
- }
-
- dialog = NAUTILUS_BATCH_RENAME_DIALOG (user_data);
- index = gtk_list_box_row_get_index (listbox_row);
-
- if (GTK_WIDGET (box) == dialog->original_name_listbox)
- {
- row = gtk_list_box_get_row_at_index (GTK_LIST_BOX (dialog->arrow_listbox), index);
- gtk_list_box_select_row (GTK_LIST_BOX (dialog->arrow_listbox),
- row);
- row = gtk_list_box_get_row_at_index (GTK_LIST_BOX (dialog->result_listbox), index);
- gtk_list_box_select_row (GTK_LIST_BOX (dialog->result_listbox),
- row);
- }
-
- if (GTK_WIDGET (box) == dialog->arrow_listbox)
- {
- row = gtk_list_box_get_row_at_index (GTK_LIST_BOX (dialog->original_name_listbox), index);
- gtk_list_box_select_row (GTK_LIST_BOX (dialog->original_name_listbox),
- row);
- row = gtk_list_box_get_row_at_index (GTK_LIST_BOX (dialog->result_listbox), index);
- gtk_list_box_select_row (GTK_LIST_BOX (dialog->result_listbox),
- row);
- }
-
- if (GTK_WIDGET (box) == dialog->result_listbox)
- {
- row = gtk_list_box_get_row_at_index (GTK_LIST_BOX (dialog->arrow_listbox), index);
- gtk_list_box_select_row (GTK_LIST_BOX (dialog->arrow_listbox),
- row);
- row = gtk_list_box_get_row_at_index (GTK_LIST_BOX (dialog->original_name_listbox), index);
- gtk_list_box_select_row (GTK_LIST_BOX (dialog->original_name_listbox),
- row);
- }
-}
-
static gint
compare_int (gconstpointer a,
gconstpointer b)
@@ -2073,9 +2025,6 @@ nautilus_batch_rename_dialog_init (NautilusBatchRenameDialog *self)
self->row_height = -1;
- g_signal_connect (self->original_name_listbox, "row-selected", G_CALLBACK (row_selected), self);
- g_signal_connect (self->arrow_listbox, "row-selected", G_CALLBACK (row_selected), self);
- g_signal_connect (self->result_listbox, "row-selected", G_CALLBACK (row_selected), self);
g_signal_connect_object (gtk_editable_get_delegate (GTK_EDITABLE (self->name_entry)),
"delete-text", G_CALLBACK (on_delete_text), self, 0);
g_signal_connect_object (gtk_editable_get_delegate (GTK_EDITABLE (self->name_entry)),