forked from enlightenment/enlightenment
parent
386517866b
commit
b715c91118
|
@ -15,7 +15,7 @@ E_File_Dialog *
|
||||||
e_file_dialog_new(E_Container *con)
|
e_file_dialog_new(E_Container *con)
|
||||||
{
|
{
|
||||||
E_File_Dialog *dia;
|
E_File_Dialog *dia;
|
||||||
Evas_Coord w, h, ew, eh;
|
Evas_Coord w, h;
|
||||||
E_Manager *man;
|
E_Manager *man;
|
||||||
Evas *evas;
|
Evas *evas;
|
||||||
Evas_Object *list, *ol, *fm;
|
Evas_Object *list, *ol, *fm;
|
||||||
|
|
|
@ -168,8 +168,6 @@ static void
|
||||||
_e_fileman_resize_cb(E_Win *win)
|
_e_fileman_resize_cb(E_Win *win)
|
||||||
{
|
{
|
||||||
E_Fileman *fileman;
|
E_Fileman *fileman;
|
||||||
Evas_Coord w, h;
|
|
||||||
int frozen;
|
|
||||||
|
|
||||||
fileman = win->data;
|
fileman = win->data;
|
||||||
evas_object_resize(fileman->main, win->w, win->h);
|
evas_object_resize(fileman->main, win->w, win->h);
|
||||||
|
|
|
@ -375,8 +375,6 @@ _e_fm_icon_smart_clip_unset(Evas_Object *obj)
|
||||||
static void
|
static void
|
||||||
_e_fm_icon_icon_mime_get(E_Smart_Data *sd)
|
_e_fm_icon_icon_mime_get(E_Smart_Data *sd)
|
||||||
{
|
{
|
||||||
Evas_Coord icon_w, icon_h;
|
|
||||||
|
|
||||||
sd->image_object = edje_object_add(sd->evas);
|
sd->image_object = edje_object_add(sd->evas);
|
||||||
if (sd->file->type == E_FM_FILE_TYPE_DIRECTORY)
|
if (sd->file->type == E_FM_FILE_TYPE_DIRECTORY)
|
||||||
e_theme_edje_object_set(sd->image_object, "base/theme/fileman",
|
e_theme_edje_object_set(sd->image_object, "base/theme/fileman",
|
||||||
|
|
|
@ -43,22 +43,17 @@ static void
|
||||||
_e_wid_fileman_selected_cb(Evas_Object *obj, char *file, void *data)
|
_e_wid_fileman_selected_cb(Evas_Object *obj, char *file, void *data)
|
||||||
{
|
{
|
||||||
E_Widget_Data *wd;
|
E_Widget_Data *wd;
|
||||||
int size;
|
|
||||||
|
|
||||||
wd = data;
|
wd = data;
|
||||||
|
|
||||||
/* this is crashing, see why */
|
/* this is crashing, see why */
|
||||||
#if 0
|
#if 0
|
||||||
if(*(wd->valptr) != NULL)
|
E_FREE(*(wd->valptr));
|
||||||
E_FREE(*(wd->valptr));
|
*(wd->valptr) = strdup(file);
|
||||||
|
|
||||||
size = (strlen(file) + 1) * sizeof(char);
|
|
||||||
*(wd->valptr) = E_NEW(char *, size);
|
|
||||||
snprintf(*(wd->valptr), size, "%s", file);
|
|
||||||
#endif
|
#endif
|
||||||
if(wd->select_func)
|
|
||||||
wd->select_func(wd->wid, file, wd->select_data);
|
|
||||||
|
|
||||||
|
if (wd->select_func)
|
||||||
|
wd->select_func(wd->wid, file, wd->select_data);
|
||||||
|
|
||||||
printf("e_widget_fileman: %s\n", file);
|
printf("e_widget_fileman: %s\n", file);
|
||||||
}
|
}
|
||||||
|
@ -67,9 +62,8 @@ _e_wid_fileman_selected_cb(Evas_Object *obj, char *file, void *data)
|
||||||
Evas_Object *
|
Evas_Object *
|
||||||
e_widget_fileman_add(Evas *evas, char **val)
|
e_widget_fileman_add(Evas *evas, char **val)
|
||||||
{
|
{
|
||||||
Evas_Object *obj, *o, *bg, *scrollbar;
|
Evas_Object *obj;
|
||||||
E_Widget_Data *wd;
|
E_Widget_Data *wd;
|
||||||
Evas_Coord mw, mh;
|
|
||||||
|
|
||||||
obj = e_widget_add(evas);
|
obj = e_widget_add(evas);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue