[gnome-contacts] Change the keyfile group for main window actions



commit 69fd561b093c601fd23d04393a2938b85cd9e9d9
Author: Brandon Nielsen <nielsenb jetfuse net>
Date:   Mon May 2 10:44:18 2022 -0500

    Change the keyfile group for main window actions
    
    Commit 8bec4eba results in the change of the keyfile group for window
    actions from "window" to "win", which breaks the action names used for
    the undo buttons in the toasts.
    
    This updates the action names used in the source main window sourcefile,
    the actions specified in the corresponding ui were updated correctly in
    the referenced commit.
    
    Fixes 243.

 src/contacts-main-window.vala | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/contacts-main-window.vala b/src/contacts-main-window.vala
index 14126c31..49976543 100644
--- a/src/contacts-main-window.vala
+++ b/src/contacts-main-window.vala
@@ -285,7 +285,7 @@ public class Contacts.MainWindow : Adw.ApplicationWindow {
 
     var toast = new Adw.Toast (this.last_operation.description);
     toast.set_button_label (_("_Undo"));
-    toast.action_name = "window.undo-operation";
+    toast.action_name = "win.undo-operation";
 
     this.toast_overlay.add_toast (toast);
   }
@@ -479,7 +479,7 @@ public class Contacts.MainWindow : Adw.ApplicationWindow {
 
     var toast = new Adw.Toast (this.last_operation.description);
     toast.set_button_label (_("_Undo"));
-    toast.action_name = "window.undo-operation";
+    toast.action_name = "win.undo-operation";
     this.toast_overlay.add_toast (toast);
   }
 
@@ -501,7 +501,7 @@ public class Contacts.MainWindow : Adw.ApplicationWindow {
     this.last_operation = new DeleteOperation (individuals);
     var toast = new Adw.Toast (this.last_operation.description);
     toast.set_button_label (_("_Undo"));
-    toast.action_name = "window.undo-delete";
+    toast.action_name = "win.undo-delete";
 
     this.delete_cancelled = false;
     toast.dismissed.connect (() => {
@@ -526,7 +526,7 @@ public class Contacts.MainWindow : Adw.ApplicationWindow {
     this.last_operation = operation;
     var toast = new Adw.Toast (this.last_operation.description);
     toast.set_button_label (_("_Undo"));
-    toast.action_name = "window.undo-operation";
+    toast.action_name = "win.undo-operation";
     this.toast_overlay.add_toast (toast);
   }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]