Store path in E_Order object.

SVN revision: 29061
This commit is contained in:
Sebastian Dransfeld 2007-03-24 23:33:59 +00:00
parent c129c20ab6
commit 8cc44f1675
2 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,7 @@ e_order_new(const char *path)
}
fclose(f);
}
eo->path = evas_stringshare_add(path);
eo->monitor = ecore_file_monitor_add(path, _e_order_cb_monitor, eo);
return eo;
@ -58,6 +59,7 @@ static void
_e_order_free(E_Order *eo)
{
evas_list_free(eo->desktops);
if (eo->path) evas_stringshare_del(eo->path);
if (eo->monitor) ecore_file_monitor_del(eo->monitor);
free(eo);
}

View File

@ -15,6 +15,7 @@ struct _E_Order
{
E_Object e_obj_inherit;
const char *path;
Evas_List *desktops; /* A list of Efreet_Desktop files this .order contains */
Ecore_File_Monitor *monitor; /* Check for changes int the .order file */
};