* bug fix. Prevents E to crash, when entering the key, while the key binding

is not selected from the list.


SVN revision: 20776
This commit is contained in:
sndev 2006-02-25 11:24:20 +00:00 committed by sndev
parent 8b63fbcc99
commit e630f32709
1 changed files with 3 additions and 1 deletions

View File

@ -691,7 +691,7 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cf
ob = e_widget_entry_add(evas, &(cfdata->key_bind));
e_widget_entry_on_change_callback_set(ob, _entry_keybind_cb_text_change, cfdata);
cfdata->gui.key_bind = ob;
//e_widget_disabled_set(ob, 1);
e_widget_disabled_set(ob, 1);
e_widget_min_size_set(ob, 200, 25);
e_widget_frametable_object_append(oft1, ob, 1, 0, 4, 1, 1, 0, 1, 0);
@ -974,6 +974,8 @@ static void _update_key_binding_entry(E_Config_Dialog_Data *cfdata)
if ((bk = evas_list_nth(cfdata->cur_eckb->bk_list, cfdata->cur_eckb_kb_sel)) == NULL )
return;
e_widget_disabled_set(cfdata->gui.key_bind, 0);
if (cfdata->key_bind != NULL)
E_FREE(cfdata->key_bind);
cfdata->key_bind = bk->key == NULL ? NULL : strdup(bk->key);