Enlightenment CVS committal
Author : codewarrior
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_fileman.c e_fileman_smart.c
Log Message:
- fix restart bug
- disable monitor, it was causing the bug, need to look into it
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_fileman.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- e_fileman.c 20 Oct 2005 13:08:51 -0000 1.10
+++ e_fileman.c 21 Oct 2005 12:24:57 -0000 1.11
@@ -135,8 +135,7 @@
evas_object_del(fileman->smart);
evas_object_del(fileman->main);
e_object_del(E_OBJECT(fileman->win));
- return;
- //free(fileman);
+ free(fileman);
}
static void
@@ -176,9 +175,8 @@
E_Fileman *fileman;
fileman = win->data;
- D(("e_fileman_delete_cb: (%p)\n", fileman));
+ D(("e_fileman_delete_cb: (%p)\n", fileman));
e_object_del(E_OBJECT(fileman));
- e_object_del(E_OBJECT(win));
}
static void
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_fileman_smart.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -3 -r1.42 -r1.43
--- e_fileman_smart.c 20 Oct 2005 22:29:57 -0000 1.42
+++ e_fileman_smart.c 21 Oct 2005 12:24:57 -0000 1.43
@@ -555,7 +555,7 @@
e_config_domain_save("efm", sd->conf.main_edd, sd->conf.main);
- if (sd->monitor) ecore_file_monitor_del(sd->monitor);
+// if (sd->monitor) ecore_file_monitor_del(sd->monitor);
sd->monitor = NULL;
while (sd->files)
@@ -1302,8 +1302,8 @@
/* Get new files */
sd->files = _e_fm_dir_files_get(sd, E_FM_FILE_TYPE_NORMAL);
- if (sd->monitor) ecore_file_monitor_del(sd->monitor);
- sd->monitor = ecore_file_monitor_add(sd->dir, _e_fm_dir_monitor_cb, sd);
+// if (sd->monitor) ecore_file_monitor_del(sd->monitor);
+// sd->monitor = ecore_file_monitor_add(sd->dir, _e_fm_dir_monitor_cb, sd);
/* Get special prev dir */
if (strcmp(sd->dir, "/"))
{
@@ -1850,12 +1850,11 @@
}
else
{
-#if 0
icon->sd->drag.start = 1;
icon->sd->drag.y = -1;
icon->sd->drag.x = -1;
icon->sd->drag.icon_object = icon;
-#endif
+
if (!icon->state.selected)
{
if
(evas_key_modifier_is_set(evas_key_modifier_get(icon->sd->evas), "Control"))
@@ -2000,17 +1999,17 @@
_e_fm_win_mouse_move_cb(void *data, int type, void *event)
{
E_Fm_Smart_Data *sd;
- E_Fm_File *file;
+ E_Fm_Icon *icon;
Ecore_X_Event_Mouse_Move *ev;
ev = event;
sd = data;
-/* TODO */
-/*
- file = sd->drag.file;
+/* TODO - rethink this code */
+
+ icon = sd->drag.icon_object;
- if (!file) return 1;
+ if (!icon) return 1;
if (sd->drag.start)
{
@@ -2036,15 +2035,21 @@
const char *path = NULL, *part = NULL;
const char *drop_types[] = { "text/uri-list" };
- snprintf(data, sizeof(data), "file://%s/%s", sd->dir,
file->attr->name);
+ snprintf(data, sizeof(data), "file://%s", icon->file->path);
ecore_evas_geometry_get(sd->win->ecore_evas, &cx, &cy, NULL,
NULL);
- evas_object_geometry_get(file->icon_img, &x, &y, &w, &h);
+ evas_object_geometry_get(icon->icon_object, &x, &y, &w, &h);
drag = e_drag_new(sd->win->container, cx + x, cy + y,
drop_types, 1, strdup(data), strlen(data),
- _e_fm_drop_cb);
-
- edje_object_file_get(file->icon_img, &path, &part);
+ _e_fm_drop_done_cb);
+
+ o = e_fm_icon_add(drag->evas);
+ e_fm_icon_file_set(o, icon->file);
+ e_fm_icon_title_set(o, "");
+ evas_object_resize(o, w, h);
+
+/* This shouldnt be needed anymore
+ edje_object_file_get(icon->icon_object, &path, &part);
if ((path) && (part))
{
o = edje_object_add(drag->evas);
@@ -2055,13 +2060,14 @@
int iw, ih;
o = evas_object_image_add(drag->evas);
- evas_object_image_size_get(file->icon_img, &iw, &ih);
+ evas_object_image_size_get(icon->icon_object, &iw, &ih);
evas_object_image_size_set(o, iw, ih);
- evas_object_image_data_copy_set(o,
evas_object_image_data_get(file->icon_img, 0));
+ evas_object_image_data_copy_set(o,
evas_object_image_data_get(icon->icon_object, 0));
evas_object_image_data_update_add(o, 0, 0, iw, ih);
evas_object_image_fill_set(o, 0, 0, iw, ih);
evas_object_resize(o, iw, ih);
}
+ */
if (!o)
{
// FIXME: fallback icon for drag
@@ -2077,7 +2083,7 @@
}
}
}
- */
+
return 1;
}
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs