From 8375d61b0c61fd47b1fd5b0e9d844946f83acc5c Mon Sep 17 00:00:00 2001 From: Chidambar Zinnoury Date: Mon, 19 Apr 2010 05:37:03 +0000 Subject: [PATCH] Use FDO-icon for fonts module and remove useless edje file. SVN revision: 48120 --- src/modules/conf_fonts/e-module-conf_fonts.edj | Bin 9468 -> 0 bytes src/modules/conf_fonts/module.desktop.in | 2 +- src/modules/conf_mime/e_int_config_mime_edit.c | 39 +++++++++++++++++++------ 3 files changed, 31 insertions(+), 10 deletions(-) delete mode 100644 src/modules/conf_fonts/e-module-conf_fonts.edj diff --git a/src/modules/conf_fonts/e-module-conf_fonts.edj b/src/modules/conf_fonts/e-module-conf_fonts.edj deleted file mode 100644 index e931157ec603068c344efefdd53f5dd16e2c3e81..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9468 zcmZ{n2|Sc*)WFA1V#JL$+eIoFq)4)MyWJw8qy=M`F%4se8Osb|v{4CdLLqhAMUsjN zX_2y2gd!r@8~eU}=bfcH`M&S{{T}C>|9hVEKF@j1d)}eaj9WD3s76 z6iPw~g_52ECJRFdg<1$w_B?mYp9f3|23#6f;SU>JPM}cp6+oAP0sfk&LHfXe81vOY zB6EPFguz|~QWA#oEL7e&M*PfpEEm`&u;;^w;ITR|cYrO0*vJKX z0Gxi z(*l+PY#|IU9vcC6A8cg*+B{YP>?zn{h>cvJHvxMNQj1GCtP)roFjW{qJU@sd1NlOs zVVvc$RA7IAjXWcO$IO7KfGrL~jmK63(*zrt@5W;cV8DM{3#?fN15ASFqYb(;uyr7j zT!r#D)Qb#KJF^~cPDSICzuUj z3qIEaSR0>#gms|Qf%SnzdYCP5t~;=Cgb6&?1xgz67i9Lpkh2tI2Z15)v>?j`2JayX z&5Iua`eHDVGZL&_=xgZp0)EIjI{<_HbLaBr!~28Y4Gej<3y-A(!y!yy%>%&5bLQ>^ z7CMJr1O|2f+g!*C`aGY3G>0Jy>@uJ6o?8v<4lu!e5P&@bhSYXE3?#SDfISB(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d)a<3OV5mE)qYJ3FE)Bf*yu>pq*STvX!4c%cq{McJH=Z!O)YX05}w$s zsP#RxqPcv-p^(}kw(sac(>&ug$@dpZQ7Rqs`z^ElUM}yW78wjg8s9Ibyt$eh5+VQC z=Pku>aia2`Q!&fF9b5g4blI(_(r{j#X~E&1vbHo$cJjk|Tk#<;=?(=7YP$H-7){1x zF%?g2df%*2A0uLR2|4~u@h3C0#rvyO4y4k?uqEiHiL^7wKYttZMQ22U-=`%ozHE=T z@qVE%ckB~kd%ClnISZOqrdze#w)-9Ck|Yn8A?q_aQjJ5xVXlug_SzZhmz88isN7Ty z8u%U?kG1~CqUW{YK;_#3r^-TO@}Z9kv-hdXRc# zU0G80_34@6_f9ri8IEc#`0d%TjTMy5^Ir_tI0tX0HtYX!+T|GI?pS9UAq~#ok{@t^7FNTt_ZPEve*~KDvy! o@~ diff --git a/src/modules/conf_fonts/module.desktop.in b/src/modules/conf_fonts/module.desktop.in index e9dcd4c..9320a18 100644 --- a/src/modules/conf_fonts/module.desktop.in +++ b/src/modules/conf_fonts/module.desktop.in @@ -14,7 +14,7 @@ Name[pt_BR]= Name[tr]=Ayarlar - Yazıtipleri Name[zh_CN]= Name[zh_TW]= -Icon=e-module-conf_fonts +Icon=preferences-desktop-font Comment=Font configuration dialog. Comment[cs]=Dialog pro výběr písma. Comment[de]= diff --git a/src/modules/conf_mime/e_int_config_mime_edit.c b/src/modules/conf_mime/e_int_config_mime_edit.c index d589873..81d537a 100644 --- a/src/modules/conf_mime/e_int_config_mime_edit.c +++ b/src/modules/conf_mime/e_int_config_mime_edit.c @@ -5,6 +5,7 @@ static void *_create_data (E_Config_Dialog *cfd); static void _fill_data (E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata); static void _free_data (E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata); static Evas_Object *_basic_create (E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata); +static int _basic_check (E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata); static int _basic_apply (E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata); static void _cb_icon_sel (void *data, void *data2); static Evas_Object *_get_icon (void *data); @@ -64,6 +65,7 @@ e_int_config_mime_edit(E_Config_Mime_Icon *data, void *data2) v->create_cfdata = _create_data; v->free_cfdata = _free_data; v->basic.create_widgets = _basic_create; + v->basic.check_changed = _basic_check; v->basic.apply_cfdata = _basic_apply; cfd = e_config_dialog_new(con, _("File Icon"), "E", @@ -80,7 +82,7 @@ _create_data(E_Config_Dialog *cfd) } static void -_fill_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) +_fill_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata) { E_Config_Mime_Icon *mi; @@ -112,7 +114,7 @@ _fill_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) } static void -_free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) +_free_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata) { if (cfdata->gui.fsel) e_object_del(E_OBJECT(cfdata->gui.fsel)); @@ -135,7 +137,7 @@ _basic_create(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata) of = e_widget_frametable_add(evas, _("Basic Info"), 0); ob = e_widget_label_add(evas, _("Mime:")); - e_widget_frametable_object_append(of, ob, 0, 0, 1, 1, 1, 1, 1, 1); + e_widget_frametable_object_append(of, ob, 0, 0, 1, 1, 1, 1, 0, 1); ob = e_widget_entry_add(evas, &(cfdata->mime), NULL, NULL, NULL); e_widget_entry_readonly_set(ob, 1); e_widget_size_min_set(ob, 100, 1); @@ -187,7 +189,25 @@ _basic_create(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata) } static int -_basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) +_basic_check(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata) +{ + E_Config_Mime_Icon *mi; + + mi = (E_Config_Mime_Icon *) cfdata->data; + + return ((cfdata->type == DEFAULT) && (mi->icon)) || + ((cfdata->type == THUMB) && + ((!mi->icon) || strcmp(mi->icon, "THUMB"))) || + ((cfdata->type == THEME) && + ((!mi->icon) || strncmp(mi->icon, "e/icons/fileman/mime", 20))) || + (((cfdata->type == EDJ) || (cfdata->type == IMG)) && + ((!mi->icon) || !strcmp(mi->icon, "THUMB") || + !strncmp(mi->icon, "e/icons/fileman/mime", 20) || + strcmp(mi->icon, cfdata->icon))); +} + +static int +_basic_apply(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata) { Eina_List *l; E_Config_Mime_Icon *mi; @@ -226,6 +246,7 @@ _basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) break; case EDJ: case IMG: + if (!mi->icon) return 0; mi->icon = eina_stringshare_add(cfdata->file); break; case DEFAULT: @@ -267,9 +288,9 @@ _cb_icon_sel(void *data, void *data2) dia = e_dialog_new(cfd->con, "E", "_mime_icon_select_dialog"); if (!dia) return; if (cfdata->type == EDJ) - e_dialog_title_set(dia, _("Select an Edj File")); + e_dialog_title_set(dia, _("Select an Edje file")); else if (cfdata->type == IMG) - e_dialog_title_set(dia, _("Select an Image")); + e_dialog_title_set(dia, _("Select an image")); dia->data = cfdata; o = e_widget_fsel_add(dia->win->evas, "~/", "/", NULL, NULL, @@ -285,7 +306,7 @@ _cb_icon_sel(void *data, void *data2) e_dialog_resizable_set(dia, 1); e_win_centered_set(dia->win, 1); e_dialog_show(dia); - e_win_resize(dia->win, 475, 341); + e_dialog_border_icon_set(dia, "enlightenment/file_icons"); cfdata->gui.fsel = dia; } @@ -339,7 +360,7 @@ _get_icon(void *data) } static void -_cb_type(void *data, Evas_Object *obj, void *event_info) +_cb_type(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) { E_Config_Dialog_Data *cfdata; @@ -358,7 +379,7 @@ _cb_type(void *data, Evas_Object *obj, void *event_info) } static void -_cb_fsel_sel(void *data, Evas_Object *obj) +_cb_fsel_sel(void *data, Evas_Object *obj __UNUSED__) { E_Config_Dialog_Data *cfdata; -- 2.7.4