diff options
author | Christopher Davis <christopherdavis@gnome.org> | 2022-07-16 08:27:26 -0400 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-07-16 20:02:21 +0100 |
commit | f88c4a2b39e4e88bf78acffdcee3555a31aaea7c (patch) | |
tree | 1afb4825ea1cbcbf611b30ff39a3ed0913ca687f /src/nautilus-batch-rename-dialog.c | |
parent | c4b9e130db5fac4bc91c7b5cf4904d2c1cbc7172 (diff) | |
download | nautilus-f88c4a2b39e4e88bf78acffdcee3555a31aaea7c.tar.gz |
batch-rename-dialog: Use always-show-arrow for numbering order
GtkMenuButton now has the `always-show-arrow` property. This
means we don't need to pack a label and icon ourselves anymore.
Diffstat (limited to 'src/nautilus-batch-rename-dialog.c')
-rw-r--r-- | src/nautilus-batch-rename-dialog.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nautilus-batch-rename-dialog.c b/src/nautilus-batch-rename-dialog.c index 514be8879..128db5e8e 100644 --- a/src/nautilus-batch-rename-dialog.c +++ b/src/nautilus-batch-rename-dialog.c @@ -49,7 +49,7 @@ struct _NautilusBatchRenameDialog GtkWidget *replace_entry; GtkWidget *format_mode_button; GtkWidget *replace_mode_button; - GtkWidget *numbering_order_label; + GtkWidget *numbering_order_button; GtkWidget *numbering_label; GtkWidget *scrolled_window; GtkWidget *numbering_revealer; @@ -131,8 +131,8 @@ change_numbering_order (GSimpleAction *action, { if (g_strcmp0 (sorts_constants[i].action_target_name, target_name) == 0) { - gtk_label_set_label (GTK_LABEL (dialog->numbering_order_label), - gettext (sorts_constants[i].label)); + gtk_button_set_label (GTK_BUTTON (dialog->numbering_order_button), + gettext (sorts_constants[i].label)); dialog->selection = nautilus_batch_rename_dialog_sort (dialog->selection, sorts_constants[i].sort_mode, dialog->create_date); @@ -1880,7 +1880,7 @@ nautilus_batch_rename_dialog_class_init (NautilusBatchRenameDialogClass *klass) gtk_widget_class_bind_template_child (widget_class, NautilusBatchRenameDialog, mode_stack); gtk_widget_class_bind_template_child (widget_class, NautilusBatchRenameDialog, replace_mode_button); gtk_widget_class_bind_template_child (widget_class, NautilusBatchRenameDialog, format_mode_button); - gtk_widget_class_bind_template_child (widget_class, NautilusBatchRenameDialog, numbering_order_label); + gtk_widget_class_bind_template_child (widget_class, NautilusBatchRenameDialog, numbering_order_button); gtk_widget_class_bind_template_child (widget_class, NautilusBatchRenameDialog, scrolled_window); gtk_widget_class_bind_template_child (widget_class, NautilusBatchRenameDialog, numbering_order_menu); gtk_widget_class_bind_template_child (widget_class, NautilusBatchRenameDialog, numbering_revealer); |