forked from enlightenment/enlightenment
Cleanup busycover handles when we close.
Add some printfs for home launching two apps. SVN revision: 45469
This commit is contained in:
parent
19f06ac085
commit
bbaf21475c
|
@ -77,6 +77,16 @@ e_busycover_resize(E_Busycover *cover, int w, int h)
|
||||||
static void
|
static void
|
||||||
_e_busycover_cb_free(E_Busycover *cover)
|
_e_busycover_cb_free(E_Busycover *cover)
|
||||||
{
|
{
|
||||||
|
Eina_List *l;
|
||||||
|
E_Busycover_Handle *handle;
|
||||||
|
|
||||||
|
EINA_LIST_FREE(cover->handles, handle)
|
||||||
|
{
|
||||||
|
if (handle->msg) eina_stringshare_del(handle->msg);
|
||||||
|
if (handle->icon) eina_stringshare_del(handle->icon);
|
||||||
|
E_FREE(handle);
|
||||||
|
}
|
||||||
|
|
||||||
if (cover->o_base) evas_object_del(cover->o_base);
|
if (cover->o_base) evas_object_del(cover->o_base);
|
||||||
E_FREE(cover);
|
E_FREE(cover);
|
||||||
}
|
}
|
||||||
|
|
|
@ -435,8 +435,8 @@ _il_home_cb_selected(void *data, Evas_Object *obj, void *event)
|
||||||
E_Fm2_Icon_Info *ici;
|
E_Fm2_Icon_Info *ici;
|
||||||
|
|
||||||
if (!(hwin = data)) return;
|
if (!(hwin = data)) return;
|
||||||
selected = e_fm2_selected_list_get(hwin->o_fm);
|
if (!(selected = e_fm2_selected_list_get(hwin->o_fm))) return;
|
||||||
if (!selected) return;
|
printf("Selected Count: %d\n", eina_list_count(selected));
|
||||||
EINA_LIST_FREE(selected, ici)
|
EINA_LIST_FREE(selected, ici)
|
||||||
{
|
{
|
||||||
Efreet_Desktop *desktop;
|
Efreet_Desktop *desktop;
|
||||||
|
@ -445,6 +445,7 @@ _il_home_cb_selected(void *data, Evas_Object *obj, void *event)
|
||||||
{
|
{
|
||||||
if (ici->real_link)
|
if (ici->real_link)
|
||||||
{
|
{
|
||||||
|
printf("Selected: %s\n", ici->real_link);
|
||||||
desktop = efreet_desktop_get(ici->real_link);
|
desktop = efreet_desktop_get(ici->real_link);
|
||||||
if (desktop)
|
if (desktop)
|
||||||
_il_home_desktop_run(hwin, desktop);
|
_il_home_desktop_run(hwin, desktop);
|
||||||
|
@ -598,9 +599,9 @@ _il_home_desks_populate(void)
|
||||||
if (menu)
|
if (menu)
|
||||||
{
|
{
|
||||||
Eina_List *l, *ll;
|
Eina_List *l, *ll;
|
||||||
char buff[PATH_MAX];
|
|
||||||
Efreet_Menu *entry, *subentry;
|
Efreet_Menu *entry, *subentry;
|
||||||
Eina_List *settings, *sys, *kbd;
|
Eina_List *settings, *sys, *kbd;
|
||||||
|
char buff[PATH_MAX];
|
||||||
int num = 0;
|
int num = 0;
|
||||||
|
|
||||||
settings = efreet_util_desktop_category_list("Settings");
|
settings = efreet_util_desktop_category_list("Settings");
|
||||||
|
@ -612,6 +613,7 @@ _il_home_desks_populate(void)
|
||||||
EINA_LIST_FOREACH(entry->entries, ll, subentry)
|
EINA_LIST_FOREACH(entry->entries, ll, subentry)
|
||||||
{
|
{
|
||||||
Efreet_Desktop *desktop;
|
Efreet_Desktop *desktop;
|
||||||
|
|
||||||
if (subentry->type != EFREET_MENU_ENTRY_DESKTOP) continue;
|
if (subentry->type != EFREET_MENU_ENTRY_DESKTOP) continue;
|
||||||
if (!(desktop = subentry->desktop)) continue;
|
if (!(desktop = subentry->desktop)) continue;
|
||||||
if ((settings) && (sys) &&
|
if ((settings) && (sys) &&
|
||||||
|
|
Loading…
Reference in New Issue