Enlightenment CVS committal Author : raster Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_fm.c e_fm.h Log Message: todo-- =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_fm.c,v retrieving revision 1.114 retrieving revision 1.115 diff -u -3 -r1.114 -r1.115 --- e_fm.c 19 Nov 2006 08:58:05 -0000 1.114 +++ e_fm.c 27 Nov 2006 12:07:32 -0000 1.115 @@ -6,7 +6,6 @@ #define OVERCLIP 128 /* FIXME: use edje messages & embryo for scrolling of bg's */ -/* FIXME: put in code to allow for custom icons per file/dir somehow */ /* FIXME: this is NOT complete. dnd not complete (started). only list view * works. in icon view it needs to be much better about placement of icons and @@ -709,6 +708,28 @@ } EAPI void +e_fm2_icons_update(Evas_Object *obj) +{ + E_Fm2_Smart_Data *sd; + Evas_List *l; + E_Fm2_Icon *ic; + + sd = evas_object_smart_data_get(obj); + if (!sd) return; // safety + if (!evas_object_type_get(obj)) return; // safety + if (strcmp(evas_object_type_get(obj), "e_fm")) return; // safety + for (l = sd->icons; l; l = l->next) + { + ic = l->data; + if (ic->realized) + { + _e_fm2_icon_unrealize(ic); + _e_fm2_icon_realize(ic); + } + } +} + +EAPI void e_fm2_pan_set(Evas_Object *obj, Evas_Coord x, Evas_Coord y) { E_Fm2_Smart_Data *sd; @@ -775,7 +796,10 @@ EAPI void e_fm2_all_icons_update(void) { - /* FIXME: implement - update all icons in all fm2's as config changed */ + Evas_List *l; + + for (l = _e_fm2_list; l; l = l->next) + e_fm2_icons_update(l->data); } EAPI void =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_fm.h,v retrieving revision 1.32 retrieving revision 1.33 diff -u -3 -r1.32 -r1.33 --- e_fm.h 19 Nov 2006 03:43:18 -0000 1.32 +++ e_fm.h 27 Nov 2006 12:07:32 -0000 1.33 @@ -126,7 +126,8 @@ EAPI void e_fm2_icon_menu_flags_set(Evas_Object *obj, E_Fm2_Menu_Flags flags); EAPI E_Fm2_Menu_Flags e_fm2_icon_menu_flags_get(Evas_Object *obj); EAPI void e_fm2_window_object_set(Evas_Object *obj, E_Object *eobj); - +EAPI void e_fm2_icons_update(Evas_Object *obj); + EAPI void e_fm2_pan_set(Evas_Object *obj, Evas_Coord x, Evas_Coord y); EAPI void e_fm2_pan_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y); EAPI void e_fm2_pan_max_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y); ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs