summaryrefslogtreecommitdiff
path: root/src/modules/dropshadow/e_mod_config.c
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2006-07-03 07:35:44 +0000
committerChristopher Michael <cpmichael1@comcast.net>2006-07-03 07:35:44 +0000
commit73a7ba6011e3a6d2bb20c955011b68da6668f530 (patch)
tree1eb1578f72a984e8a666ae7911ec9fcd9d1a28a0 /src/modules/dropshadow/e_mod_config.c
parent21b68f1e73d30bb2f297e847821b89a72515ff02 (diff)
downloadenlightenment-73a7ba6011e3a6d2bb20c955011b68da6668f530.tar.gz
As per HandyAndE request, this patch gives ability for modules config
dialogs to show their icon in their config dialog by passing in the module_eap path to the config_dialog_new function as the icon parameter ie: e_config_dialog_new(con, module_name, eap_path, 0, v, data); Update E core modules to use this ability. Fix dropshadow config dialog to fit in 640x480. SVN revision: 23682
Diffstat (limited to 'src/modules/dropshadow/e_mod_config.c')
-rw-r--r--src/modules/dropshadow/e_mod_config.c25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/modules/dropshadow/e_mod_config.c b/src/modules/dropshadow/e_mod_config.c
index b33fb79663..cec3b9b940 100644
--- a/src/modules/dropshadow/e_mod_config.c
+++ b/src/modules/dropshadow/e_mod_config.c
@@ -23,6 +23,7 @@ _config_dropshadow_module(E_Container *con, Dropshadow *ds)
{
E_Config_Dialog *cfd;
E_Config_Dialog_View *v;
+ char buf[4096];
v = E_NEW(E_Config_Dialog_View, 1);
@@ -30,8 +31,9 @@ _config_dropshadow_module(E_Container *con, Dropshadow *ds)
v->free_cfdata = _free_data;
v->basic.apply_cfdata = _basic_apply_data;
v->basic.create_widgets = _basic_create_widgets;
-
- cfd = e_config_dialog_new(con, _("Dropshadow Configuration"), NULL, 0, v, ds);
+
+ snprintf(buf, sizeof(buf), "%s/module.eap", e_module_dir_get(ds->module));
+ cfd = e_config_dialog_new(con, _("Dropshadow Configuration"), buf, 0, v, ds);
ds->config_dialog = cfd;
}
@@ -90,12 +92,14 @@ _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
static Evas_Object *
_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata)
{
- Evas_Object *o, *ob, *of;
+ Evas_Object *o, *ob, *of, *ot;
E_Radio_Group *rg;
o = e_widget_list_add(evas, 0, 0);
-
+ ot = e_widget_table_add(evas, 1);
+
of = e_widget_framelist_add(evas, _("Quality"), 0);
+ e_widget_framelist_content_align_set(of, 0.5, 0.0);
rg = e_widget_radio_group_new(&(cfdata->quality));
ob = e_widget_radio_add(evas, _("High Quality"), 1, rg);
e_widget_framelist_object_append(of, ob);
@@ -103,9 +107,10 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cf
e_widget_framelist_object_append(of, ob);
ob = e_widget_radio_add(evas, _("Low Quality"), 4, rg);
e_widget_framelist_object_append(of, ob);
- e_widget_list_object_append(o, of, 1, 1, 0.5);
+ e_widget_table_object_append(ot, of, 0, 0, 1, 1, 1, 1, 1, 1);
of = e_widget_framelist_add(evas, _("Blur Type"), 0);
+ e_widget_framelist_content_align_set(of, 0.5, 0.0);
rg = e_widget_radio_group_new(&(cfdata->blur_size));
ob = e_widget_radio_add(evas, _("Very Fuzzy"), 80, rg);
e_widget_framelist_object_append(of, ob);
@@ -117,9 +122,10 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cf
e_widget_framelist_object_append(of, ob);
ob = e_widget_radio_add(evas, _("Very Sharp"), 5, rg);
e_widget_framelist_object_append(of, ob);
- e_widget_list_object_append(o, of, 1, 1, 0.5);
+ e_widget_table_object_append(ot, of, 0, 1, 1, 1, 1, 1, 1, 1);
of = e_widget_framelist_add(evas, _("Shadow Distance"), 0);
+ e_widget_framelist_content_align_set(of, 0.5, 0.0);
rg = e_widget_radio_group_new(&(cfdata->shadow_x));
ob = e_widget_radio_add(evas, _("Very Far"), 32, rg);
e_widget_framelist_object_append(of, ob);
@@ -133,9 +139,10 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cf
e_widget_framelist_object_append(of, ob);
ob = e_widget_radio_add(evas, _("Underneath"), 0, rg);
e_widget_framelist_object_append(of, ob);
- e_widget_list_object_append(o, of, 1, 1, 0.5);
+ e_widget_table_object_append(ot, of, 1, 0, 1, 1, 1, 1, 1, 1);
of = e_widget_framelist_add(evas, _("Shadow Darkness"), 0);
+ e_widget_framelist_content_align_set(of, 0.5, 0.0);
rg = e_widget_radio_group_new(&(cfdata->darkness));
ob = e_widget_radio_add(evas, _("Very Dark"), 0, rg);
e_widget_framelist_object_append(of, ob);
@@ -145,7 +152,9 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cf
e_widget_framelist_object_append(of, ob);
ob = e_widget_radio_add(evas, _("Very Light"), 3, rg);
e_widget_framelist_object_append(of, ob);
- e_widget_list_object_append(o, of, 1, 1, 0.5);
+ e_widget_table_object_append(ot, of, 1, 1, 1, 1, 1, 1, 1, 1);
+
+ e_widget_list_object_append(o, ot, 1, 1, 0.5);
return o;
}