[gnome-calculator/wip/fmuellner/rename-newwindow] actions: Rename "newwindow" action



commit 782d83c6aa2a9760e01c0e8b75a169ca75136105
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Sep 5 18:02:16 2018 +0200

    actions: Rename "newwindow" action
    
    We support opening multiple windows, but that is not reflected
    in gnome-shell because of the unconventional action name.
    Simply change the name to "new-window" to make it work as expected.
    
    https://gitlab.gnome.org/GNOME/gnome-calculator/issues/74

 src/gnome-calculator.vala | 2 +-
 src/math-window.ui        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-calculator.vala b/src/gnome-calculator.vala
index 7763528c..278c32c9 100644
--- a/src/gnome-calculator.vala
+++ b/src/gnome-calculator.vala
@@ -30,7 +30,7 @@ public class Calculator : Gtk.Application
 
     private const ActionEntry[] app_entries =
     {
-        { "newwindow", new_window_cb, null, null, null },
+        { "new-window", new_window_cb, null, null, null },
         { "preferences", show_preferences_cb, null, null, null },
         { "shortcuts", keyboard_shortcuts_cb, null, null, null },
         { "help", help_cb, null, null, null },
diff --git a/src/math-window.ui b/src/math-window.ui
index 71948e8f..1e518ef2 100644
--- a/src/math-window.ui
+++ b/src/math-window.ui
@@ -47,7 +47,7 @@
     <section>
       <item>
         <attribute name="label" translatable="yes">New Window</attribute>
-        <attribute name="action">app.newwindow</attribute>
+        <attribute name="action">app.new-window</attribute>
         <attribute name="accel">&lt;Primary&gt;n</attribute>
       </item>
     </section>


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