/* create config diaolg for NULL object/data */
cfd = e_config_dialog_new(icon->sd->win->container, _("Properties"), NULL, 0, &v, icon);
}
-#if 0
-static void
-__e_fm_file_menu_properties(void *data, E_Menu *m, E_Menu_Item *mi)
-{
- E_Fm_File *file;
- E_Win *win;
- Evas_Object *table;
- Evas_Object *name;
- Evas_Object *bg;
- Evas_Coord w, h;
- struct group *grp;
- struct passwd *usr;
- struct tm *t;
- char *fullname;
- char *size, *username, *groupname, *lastaccess, *lastmod, *permissions;
- char text[512];
- E_Dialog *dia;
- Evas_Object *o, *ol, *hb;
- Evas_Coord mw, mh;
- E_Radio_Group *rg;
- Evas *e;
-
- icon = data;
-
- size = E_NEW(char, 64);
- snprintf(size, 64, "%ld KB", icon->file->size / 1024);
-
-
-
- permissions = E_NEW(char, 128); // todo
- snprintf(permissions, 128, "%s", "");
-
- dia = e_dialog_new(file->sd->win->container);
- e_dialog_title_set(dia, _("Properties"));
- e = e_win_evas_get(dia->win);
-
- ol = e_widget_list_add(e, 0, 0);
-
- hb = e_widget_list_add(e, 1, 1);
-
- o = e_widget_frametable_add(e, _("General"), 0);
-
- snprintf(text, 512, _("File:"));
- e_widget_frametable_object_append(o, e_widget_label_add(e, text),
- 0, 0, 1, 1,
- 1, 1, 1, 1);
- snprintf(text, 512, "%s", icon->file->name);
- e_widget_frametable_object_append(o, e_widget_label_add(e, text),
- 1, 0, 1, 1,
- 1, 1, 1, 1);
-
- snprintf(text, 512, _("Size:"));
- e_widget_frametable_object_append(o, e_widget_label_add(e, text),
- 0, 1, 1, 1,
- 1, 1, 1, 1);
- snprintf(text, 512, "%s Kb", size);
- e_widget_frametable_object_append(o, e_widget_label_add(e, text),
- 1, 1, 1, 1,
- 1, 1, 1, 1);
-
- snprintf(text, 512, _("Type:"));
- e_widget_frametable_object_append(o, e_widget_label_add(e, text),
- 0, 2, 1, 1,
- 1, 1, 1, 1);
- snprintf(text, 512, "%s", "An Image");
- e_widget_frametable_object_append(o, e_widget_label_add(e, text),
- 1, 2, 1, 1,
- 1, 1, 1, 1);
-
- e_widget_frametable_object_append(o, e_widget_check_add(e, _("Protect this file"), &dummy_val),
- 0, 3, 2, 1,
- 1, 1, 1, 1);
-
- rg = e_widget_radio_group_new(&dummy_val);
-
- e_widget_frametable_object_append(o, e_widget_radio_add(e, _("Let others see this file"), 0, rg),
- 0, 4, 2, 1,
- 1, 1, 1, 1);
-
- e_widget_frametable_object_append(o, e_widget_radio_add(e, _("Let others modify this file"), 0, rg),
- 0, 5, 2, 1,
- 1, 1, 1, 1);
-
-/* Use those in advanced dialog.
-
- snprintf(text, 512, _("Type:"));
- e_widget_framelist_object_append(o, e_widget_label_add(e, text));
- switch(_e_fm_file_type(file))
- {
- case E_FILEMAN_FILETYPE_DIRECTORY:
- snprintf(text, 512, _("Directory"));
- break;
- case E_FILEMAN_FILETYPE_FILE:
- snprintf(text, 512, _("File"));
- break;
- case E_FILEMAN_FILETYPE_SYMLINK:
- snprintf(text, 512, _("Symlink"));
- break;
- default:
- snprintf(text, 512, _("Unknown"));
- break;
- }
- e_widget_framelist_object_append(o, e_widget_label_add(e, text));
-
-
-
- */
-
- e_widget_list_object_append(hb, o, 0, 1, 0.0);
-
-/* use those in the advanced dialog
-
- o = e_widget_framelist_add(e, _("Permissions"), 0);
-
- e_widget_framelist_object_append(o, e_widget_label_add(e, _("User:")));
- e_widget_framelist_object_append(o, e_widget_check_add(e, _("Read"), &dummy_val));
- e_widget_framelist_object_append(o, e_widget_check_add(e, _("Write"), &dummy_val));
- e_widget_framelist_object_append(o, e_widget_check_add(e, _("Execute"), &dummy_val));
-
- e_widget_framelist_object_append(o, e_widget_label_add(e, _("Group:")));
- e_widget_framelist_object_append(o, e_widget_check_add(e, _("Read"), &dummy_val));
- e_widget_framelist_object_append(o, e_widget_check_add(e, _("Write"), &dummy_val));
- e_widget_framelist_object_append(o, e_widget_check_add(e, _("Execute"), &dummy_val));
-
- e_widget_framelist_object_append(o, e_widget_label_add(e, _("World:")));
- e_widget_framelist_object_append(o, e_widget_check_add(e, _("Read"), &dummy_val));
- e_widget_framelist_object_append(o, e_widget_check_add(e, _("Write"), &dummy_val));
- e_widget_framelist_object_append(o, e_widget_check_add(e, _("Execute"), &dummy_val));
-
- e_widget_list_object_append(hb, o, 0, 0, 0.0);
-
- */
-
- e_widget_list_object_append(ol, hb, 1, 0, 0.0);
-
- o = e_widget_button_add(e, _("Advanced"), "enlightenment/configuration", NULL, NULL, NULL);
- e_widget_list_object_append(ol, o, 0, 0, 1.0);
-
-
- e_widget_min_size_get(ol, &w, &h);
-
- e_dialog_content_set(dia, ol, w, h);
-
- e_dialog_button_add(dia, _("OK"), NULL, NULL, NULL);
- //e_dialog_button_add(dia, _("Apply"), "enlightenment/reset", NULL, NULL);
- e_dialog_button_add(dia, _("Cancel"), "enlightenment/exit", NULL, NULL);
- e_win_centered_set(dia->win, 1);
- e_dialog_show(dia);
-
- file->prop.dia = dia;
-
- return;
-}
-
-#endif
static void
_e_fm_menu_arrange_cb(void *data, E_Menu *m, E_Menu_Item *mi)