From: Jonathan Neuschäfer Date: Sat, 24 Dec 2011 17:28:04 +0000 (+0100) Subject: screen_keydef: remove LIST_ITEM_{SAVE,APPLY}_LABEL X-Git-Tag: release-0.20~21 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fafffa3e135f1d405664e70e86ee2eeb86170dbd;p=ncmpc.git screen_keydef: remove LIST_ITEM_{SAVE,APPLY}_LABEL These macros were only being used in one place. --- diff --git a/src/screen_keydef.c b/src/screen_keydef.c index 0f46eee..cd340f8 100644 --- a/src/screen_keydef.c +++ b/src/screen_keydef.c @@ -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);