[nautilus/wip/corey/batch-rename: 1/2] batch-rename-dialog: Fix button label for numbering order
- From: Corey Berla <coreyberla src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/corey/batch-rename: 1/2] batch-rename-dialog: Fix button label for numbering order
- Date: Mon, 22 Aug 2022 02:54:10 +0000 (UTC)
commit fe343c10772a23af9c1d5ae18a82026b106b6ef8
Author: Corey Berla <corey berla me>
Date: Sun Aug 21 16:43:19 2022 -0700
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]