[nautilus/wip/corey/batch-rename: 2/2] batch-rename-dialog: Remove unused code
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/corey/batch-rename: 2/2] batch-rename-dialog: Remove unused code
- Date: Wed, 31 Aug 2022 23:50:59 +0000 (UTC)
commit 694b44b28fb5e28217d3005df656fa0c1d400b6d
Author: Corey Berla <corey berla me>
Date: Sun Aug 21 21:18:41 2022 -0700
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.
src/nautilus-batch-rename-dialog.c | 51 --------------------------------------
1 file changed, 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)),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]