[dconf-editor] Remove a TODO.



commit 49dd638012c6276daf0dd9d4aa882c12747a3462
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu Dec 3 18:28:55 2015 +0100

    Remove a TODO.

 editor/key-list-box-row.vala |   24 +++++++++---------------
 1 files changed, 9 insertions(+), 15 deletions(-)
---
diff --git a/editor/key-list-box-row.vala b/editor/key-list-box-row.vala
index 4e5e008..7739725 100644
--- a/editor/key-list-box-row.vala
+++ b/editor/key-list-box-row.vala
@@ -197,21 +197,15 @@ private class ContextPopover : Popover
         simple_action.activate.connect (() => { action (); });
         current_group.add_action (simple_action);
 
-        switch (action_action)        // TODO enum
-        {
-            case "customize":
-                /* Translators: "open key-editor dialog" action in the right-click menu on the list of keys 
*/
-                current_section.append (_("Customize…"), group_dot_action);
-                return;
-            case "default1":
-                /* Translators: "reset key value" action in the right-click menu on the list of keys */
-                current_section.append (_("Set to default"), group_dot_action);
-                return;
-            case "default2":
-                new_multi_default_action (group_dot_action);
-                return;
-            default: assert_not_reached ();
-        }
+        if (action_action == "customize")
+            /* Translators: "open key-editor dialog" action in the right-click menu on the list of keys */
+            current_section.append (_("Customize…"), group_dot_action);
+        else if (action_action == "default1")
+            /* Translators: "reset key value" action in the right-click menu on the list of keys */
+            current_section.append (_("Set to default"), group_dot_action);
+        else if (action_action == "default2")
+            new_multi_default_action (group_dot_action);
+        else assert_not_reached ();
     }
 
     public void new_copy_action (string text)


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