summaryrefslogtreecommitdiff
path: root/src/modules/conf_keybindings/e_int_config_acpibindings.c
diff options
context:
space:
mode:
authorHannes Janetzek <hannes.janetzek@gmail.com>2011-09-07 20:15:58 +0000
committerHannes Janetzek <hannes.janetzek@gmail.com>2011-09-07 20:15:58 +0000
commitd5efc145676fffced4408e141e716214dbbc018c (patch)
tree042c43c1c46619865c82aa76d00cb01a547c5e36 /src/modules/conf_keybindings/e_int_config_acpibindings.c
parent7d950d23e19615302ff1e14fbecedd2cbcd1c030 (diff)
e17: also show acpi binding with unkown label
SVN revision: 63274
Diffstat (limited to 'src/modules/conf_keybindings/e_int_config_acpibindings.c')
-rw-r--r--src/modules/conf_keybindings/e_int_config_acpibindings.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/modules/conf_keybindings/e_int_config_acpibindings.c b/src/modules/conf_keybindings/e_int_config_acpibindings.c
index 2957d00a3..c313f2608 100644
--- a/src/modules/conf_keybindings/e_int_config_acpibindings.c
+++ b/src/modules/conf_keybindings/e_int_config_acpibindings.c
@@ -245,10 +245,12 @@ _fill_bindings(E_Config_Dialog_Data *cfdata)
245 char buff[32]; 245 char buff[32];
246 246
247 i++; 247 i++;
248 if (!(lbl = _binding_label_get(bind))) continue;
249 snprintf(buff, sizeof(buff), "%d", i); 248 snprintf(buff, sizeof(buff), "%d", i);
249
250 lbl = _binding_label_get(bind);
251
250 e_widget_ilist_append(cfdata->o_bindings, NULL, lbl, 252 e_widget_ilist_append(cfdata->o_bindings, NULL, lbl,
251 _cb_bindings_changed, cfdata, buff); 253 _cb_bindings_changed, cfdata, buff);
252 } 254 }
253 255
254 e_widget_ilist_go(cfdata->o_bindings); 256 e_widget_ilist_go(cfdata->o_bindings);
@@ -389,7 +391,7 @@ _binding_label_get(E_Config_Binding_Acpi *bind)
389 if (bind->type == E_ACPI_TYPE_VAIO) 391 if (bind->type == E_ACPI_TYPE_VAIO)
390 return _("Vaio"); 392 return _("Vaio");
391 393
392 return NULL; 394 return _("Unknown");
393} 395}
394 396
395static void 397static void