Code

screen_keydef: remove LIST_ITEM_{SAVE,APPLY}_LABEL
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Sat, 24 Dec 2011 17:28:04 +0000 (18:28 +0100)
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>
Sat, 24 Dec 2011 17:28:04 +0000 (18:28 +0100)
These macros were only being used in one place.

src/screen_keydef.c

index 0f46eee85fbf5e90572013dc479afedfc8e50713..cd340f8126f5f44f32dae1abb648dbb827e00bfe 100644 (file)
@@ -38,9 +38,6 @@
 #define LIST_ITEM_SAVE()    (LIST_ITEM_APPLY()+1)
 #define LIST_LENGTH()       (LIST_ITEM_SAVE()+1)
 
-#define LIST_ITEM_SAVE_LABEL  _("===> Apply & Save key bindings  ")
-#define LIST_ITEM_APPLY_LABEL _("===> Apply key bindings ")
-
 
 static struct list_window *lw;
 static unsigned command_list_length = 0;
@@ -206,9 +203,9 @@ list_callback(unsigned idx, G_GNUC_UNUSED void *data)
 
        if (subcmd < 0) {
                if (idx == LIST_ITEM_APPLY())
-                       return LIST_ITEM_APPLY_LABEL;
+                       return _("===> Apply key bindings ");
                else if (idx == LIST_ITEM_SAVE())
-                       return LIST_ITEM_SAVE_LABEL;
+                       return _("===> Apply & Save key bindings  ");
 
                assert(idx < (unsigned)command_list_length);