summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Berla <corey@berla.me>2022-08-21 16:43:19 -0700
committerAntónio Fernandes <antoniof@gnome.org>2022-09-01 00:02:26 +0000
commita678ab18c8b6c9e5e304724a8d9c4c4108555fa6 (patch)
treedf70d419951e5dc916cac2654fa3c5ea24a367d0
parenta58148be647d9f8f34df004066703317c849bd6e (diff)
downloadnautilus-a678ab18c8b6c9e5e304724a8d9c4c4108555fa6.tar.gz
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
-rw-r--r--src/nautilus-batch-rename-dialog.c4
1 files 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);