file->state.selected = 0;
}
sd->selection.files = evas_list_free(sd->selection.files);
- sd->selection.files = NULL;
sd->selection.current_file = NULL;
}
// dir_entry2->d_off = dir_entry->d_off; // not portable
// dir_entry2->d_reclen = dir_entry->d_reclen; // note portable
dir_entry2->d_type = dir_entry->d_type;
- memcpy(dir_entry2->d_name, dir_entry->d_name, NAME_MAX);
- dir_entry2->d_name[NAME_MAX] = 0;
+ strncpy(dir_entry2->d_name, dir_entry->d_name, NAME_MAX);
+ printf("%s %s\n", dir_entry2->d_name, dir_entry->d_name);
files = evas_list_append(files, dir_entry2);
}
{
if ((file->dir_entry->d_type == 4) && (ev->flags == EVAS_BUTTON_DOUBLE_CLICK))
{
- char *fullname;
+ char *fullname = NULL;
file->sd->drag.start = 0;
{
char path[PATH_MAX];
if (!strcmp(file->sd->dir, "/"))
- snprintf(fullname, sizeof(path), "/%s", file->dir_entry->d_name);
+ snprintf(path, sizeof(path), "/%s", file->dir_entry->d_name);
else
- snprintf(fullname, sizeof(path), "%s/%s", file->sd->dir, file->dir_entry->d_name);
+ snprintf(path, sizeof(path), "%s/%s", file->sd->dir, file->dir_entry->d_name);
fullname = strdup(path);
}
file->sd->drag.file = file;
printf("drag file: %s\n", file->dir_entry->d_name);
-#if 0
if (!file->state.clicked)
{
if (evas_key_modifier_is_set(evas_key_modifier_get(file->sd->evas), "Control"))
_e_fm_selections_add(file);
}
}
-#endif
}
}
else if (ev->button == 3)
e_menu_item_callback_set(mi, _e_int_menus_main_run, NULL);
}
-#if 0
mi = e_menu_item_new(m);
e_menu_item_label_set(mi, _("File Manager"));
e_util_menu_item_edje_icon_set(mi, "enlightenment/fileman");
e_menu_item_callback_set(mi, _e_int_menus_main_fm, NULL);
-#endif
subm = e_int_menus_config_new();
dat->config = subm;