Ticket #2941: learn.c.diff
File learn.c.diff, 871 bytes (added by dmartina, 12 years ago) |
---|
-
src/learn.c
old new 261 261 int x, y, i; 262 262 const key_code_name_t *key; 263 263 264 char *label; 265 int padding; 266 264 267 #ifdef ENABLE_NLS 265 268 static gboolean i18n_flag = FALSE; 266 269 if (!i18n_flag) … … 299 302 300 303 learnkeys[i].ok = FALSE; 301 304 learnkeys[i].sequence = NULL; 302 g_snprintf (buffer, sizeof (buffer), "%-16s", _(key_name_conv_tab[i].longname)); 305 306 label = _(key_name_conv_tab[i].longname); 307 padding = max (0, 16 - str_term_width1 (label)); 308 g_snprintf (buffer, sizeof (buffer), "%s%*s", label, padding, ""); 309 303 310 learnkeys[i].button = 304 311 WIDGET (button_new (y, x, B_USER + i, NARROW_BUTTON, buffer, learn_button)); 305 312 learnkeys[i].label = WIDGET (label_new (y, x + 19, ""));