forked from enlightenment/enlightenment
parent
56c5dda8e5
commit
575c1f43a0
|
@ -8,8 +8,7 @@
|
||||||
struct _E_Config_Dialog_Data
|
struct _E_Config_Dialog_Data
|
||||||
{
|
{
|
||||||
const char *dir;
|
const char *dir;
|
||||||
int show_label;
|
int show_label, eap_label;
|
||||||
int eap_label;
|
|
||||||
|
|
||||||
Evas_Object *tlist;
|
Evas_Object *tlist;
|
||||||
Evas_Object *radio_name;
|
Evas_Object *radio_name;
|
||||||
|
@ -49,7 +48,9 @@ _config_ibar_module(Config_Item *ci)
|
||||||
v->advanced.apply_cfdata = NULL;
|
v->advanced.apply_cfdata = NULL;
|
||||||
v->advanced.create_widgets = NULL;
|
v->advanced.create_widgets = NULL;
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "%s/e-module-ibar.edj", e_module_dir_get(ibar_config->module));
|
snprintf(buf, sizeof(buf), "%s/e-module-ibar.edj",
|
||||||
|
e_module_dir_get(ibar_config->module));
|
||||||
|
|
||||||
/* Create The Dialog */
|
/* Create The Dialog */
|
||||||
cfd = e_config_dialog_new(e_container_current_get(e_manager_current_get()),
|
cfd = e_config_dialog_new(e_container_current_get(e_manager_current_get()),
|
||||||
_("IBar Settings"),
|
_("IBar Settings"),
|
||||||
|
@ -177,8 +178,7 @@ _cb_del(void *data, void *data2)
|
||||||
E_Confirm_Dialog *dialog;
|
E_Confirm_Dialog *dialog;
|
||||||
|
|
||||||
cfdata = data;
|
cfdata = data;
|
||||||
if (cfdata->dialog_delete)
|
if (cfdata->dialog_delete) return;
|
||||||
return;
|
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), _("You requested to delete \"%s\".<br><br>"
|
snprintf(buf, sizeof(buf), _("You requested to delete \"%s\".<br><br>"
|
||||||
"Are you sure you want to delete this bar source?"),
|
"Are you sure you want to delete this bar source?"),
|
||||||
|
@ -186,7 +186,8 @@ _cb_del(void *data, void *data2)
|
||||||
|
|
||||||
dialog = e_confirm_dialog_show(_("Are you sure you want to delete this bar source?"),
|
dialog = e_confirm_dialog_show(_("Are you sure you want to delete this bar source?"),
|
||||||
"application-exit", buf, NULL, NULL,
|
"application-exit", buf, NULL, NULL,
|
||||||
_cb_confirm_dialog_yes, NULL, cfdata, NULL, _cb_confirm_dialog_destroy, cfdata);
|
_cb_confirm_dialog_yes, NULL, cfdata, NULL,
|
||||||
|
_cb_confirm_dialog_destroy, cfdata);
|
||||||
cfdata->dialog_delete = dialog;
|
cfdata->dialog_delete = dialog;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -197,7 +198,8 @@ _cb_config(void *data, void *data2)
|
||||||
E_Config_Dialog_Data *cfdata;
|
E_Config_Dialog_Data *cfdata;
|
||||||
|
|
||||||
cfdata = data;
|
cfdata = data;
|
||||||
e_user_dir_snprintf(path, sizeof(path), "applications/bar/%s/.order", cfdata->dir);
|
e_user_dir_snprintf(path, sizeof(path), "applications/bar/%s/.order",
|
||||||
|
cfdata->dir);
|
||||||
e_configure_registry_call("internal/ibar_other",
|
e_configure_registry_call("internal/ibar_other",
|
||||||
e_container_current_get(e_manager_current_get()),
|
e_container_current_get(e_manager_current_get()),
|
||||||
path);
|
path);
|
||||||
|
@ -291,8 +293,7 @@ _load_tlist(E_Config_Dialog_Data *cfdata)
|
||||||
}
|
}
|
||||||
|
|
||||||
e_widget_ilist_go(cfdata->tlist);
|
e_widget_ilist_go(cfdata->tlist);
|
||||||
if (selnum >= 0)
|
if (selnum >= 0) e_widget_ilist_selected_set(cfdata->tlist, selnum);
|
||||||
e_widget_ilist_selected_set(cfdata->tlist, selnum);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -302,7 +303,6 @@ _show_label_cb_change(void *data, Evas_Object *obj)
|
||||||
|
|
||||||
cfdata = data;
|
cfdata = data;
|
||||||
if (!cfdata) return;
|
if (!cfdata) return;
|
||||||
|
|
||||||
e_widget_disabled_set(cfdata->radio_name, !cfdata->show_label);
|
e_widget_disabled_set(cfdata->radio_name, !cfdata->show_label);
|
||||||
e_widget_disabled_set(cfdata->radio_comment, !cfdata->show_label);
|
e_widget_disabled_set(cfdata->radio_comment, !cfdata->show_label);
|
||||||
e_widget_disabled_set(cfdata->radio_generic, !cfdata->show_label);
|
e_widget_disabled_set(cfdata->radio_generic, !cfdata->show_label);
|
||||||
|
|
Loading…
Reference in New Issue