From a678ab18c8b6c9e5e304724a8d9c4c4108555fa6 Mon Sep 17 00:00:00 2001 From: Corey Berla Date: Sun, 21 Aug 2022 16:43:19 -0700 Subject: batch-rename-dialog: Fix button label for numbering order There's a regression in f88c4a2b39e4e88bf78acffdcee3555a31aaea7c that causes the numbering label button to never get updated. The GtkMenuButton was exposed but the api for GtkButton was used instead. Use GtkMenuButton api --- src/nautilus-batch-rename-dialog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nautilus-batch-rename-dialog.c b/src/nautilus-batch-rename-dialog.c index c116ff35a..5eeceedcf 100644 --- a/src/nautilus-batch-rename-dialog.c +++ b/src/nautilus-batch-rename-dialog.c @@ -131,8 +131,8 @@ change_numbering_order (GSimpleAction *action, { if (g_strcmp0 (sorts_constants[i].action_target_name, target_name) == 0) { - gtk_button_set_label (GTK_BUTTON (dialog->numbering_order_button), - gettext (sorts_constants[i].label)); + gtk_menu_button_set_label (GTK_MENU_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); -- cgit v1.2.1