forked from enlightenment/enlightenment
remove unused 'restore default bindings', default are none bindings
This commit is contained in:
parent
f0470e0cfd
commit
c823c9e97c
|
@ -30,7 +30,6 @@ static void _binding_change_cb(void *data);
|
|||
static void _action_change_cb(void *data);
|
||||
static void _delete_all_edge_binding_cb(void *data, void *data2);
|
||||
static void _delete_edge_binding_cb(void *data, void *data2);
|
||||
// static void _restore_edge_binding_defaults_cb(void *data, void *data2);
|
||||
static void _add_edge_binding_cb(void *data, void *data2);
|
||||
static void _modify_edge_binding_cb(void *data, void *data2);
|
||||
|
||||
|
@ -270,8 +269,6 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cf
|
|||
cfdata->gui.o_del_all = ob;
|
||||
e_widget_disabled_set(ob, 1);
|
||||
e_widget_frametable_object_append(of, ob, 1, 2, 1, 1, 1, 0, 1, 0);
|
||||
// ob = e_widget_button_add(evas, _("Restore Default Bindings"), "enlightenment", _restore_edge_binding_defaults_cb, cfdata, NULL);
|
||||
// e_widget_frametable_object_append(of, ob, 0, 3, 2, 1, 1, 0, 1, 0);
|
||||
e_widget_list_object_append(ol, of, 1, 1, 0.5);
|
||||
|
||||
ot = e_widget_table_add(e_win_evas_win_get(evas), 0);
|
||||
|
@ -496,54 +493,7 @@ _delete_edge_binding_cb(void *data, void *data2 EINA_UNUSED)
|
|||
e_widget_label_text_set(cfdata->gui.o_button, NULL);
|
||||
_update_buttons(cfdata);
|
||||
}
|
||||
}/*
|
||||
|
||||
static void
|
||||
_restore_edge_binding_defaults_cb(void *data, void *data2 EINA_UNUSED)
|
||||
{
|
||||
E_Config_Bindings *ecb;
|
||||
Eina_Stringshare *prof;
|
||||
E_Config_Dialog_Data *cfdata = data;
|
||||
|
||||
ecb = e_config_domain_system_load("e_bindings", e_config_descriptor_find("E_Config_Bindings"));
|
||||
if (!ecb)
|
||||
{
|
||||
const char *type;
|
||||
|
||||
prof = eina_stringshare_ref(e_config_profile_get());
|
||||
switch (e_config->config_type)
|
||||
{
|
||||
case E_CONFIG_PROFILE_TYPE_DESKTOP:
|
||||
type = "standard";
|
||||
break;
|
||||
case E_CONFIG_PROFILE_TYPE_MOBILE:
|
||||
type = "mobile";
|
||||
break;
|
||||
//case E_CONFIG_PROFILE_TYPE_TABLET: FIXME - not used
|
||||
default:
|
||||
type = "default";
|
||||
break;
|
||||
}
|
||||
e_config_profile_set(type);
|
||||
ecb = e_config_domain_system_load("e_bindings", e_config_descriptor_find("E_Config_Bindings"));
|
||||
e_config_profile_set(prof);
|
||||
eina_stringshare_del(prof);
|
||||
}
|
||||
if (!ecb) return;
|
||||
E_FREE_LIST(cfdata->binding.edge, e_config_binding_edge_free);
|
||||
cfdata->binding.edge = ecb->edge_bindings, ecb->edge_bindings = NULL;
|
||||
e_config_bindings_free(ecb);
|
||||
|
||||
eina_stringshare_del(cfdata->locals.cur);
|
||||
cfdata->locals.cur = NULL;
|
||||
|
||||
_update_edge_binding_list(cfdata);
|
||||
_update_buttons(cfdata);
|
||||
|
||||
e_widget_ilist_unselect(cfdata->gui.o_action_list);
|
||||
e_widget_entry_clear(cfdata->gui.o_params);
|
||||
e_widget_disabled_set(cfdata->gui.o_params, 1);
|
||||
}*/
|
||||
|
||||
/**************** Updates ***********/
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue