struct dirent *de;
Eina_List *dirs = NULL, *l;
char *real;
+ const char *home;
- if (!(d = opendir(getenv("HOME")))) return;
+#ifdef _WIN32
+ home = evil_homedir_get();
+#else
+ home = getenv("HOME");
+#endif
+ if (!home)
+ home = "./";
+ if (!(d = opendir(home))) return;
while ((de = readdir(d)))
{
char buff[PATH_MAX];
if (de->d_name[0] == '.') continue;
- snprintf(buff, sizeof(buff), "%s/%s", getenv("HOME"), de->d_name);
+ snprintf(buff, sizeof(buff), "%s/%s", home, de->d_name);
if (!ecore_file_is_dir(buff)) continue;
real = ecore_file_realpath(buff);
dirs = eina_list_append(dirs, real);
case ELM_GLVIEW_RESIZE_POLICY_RECREATE:
case ELM_GLVIEW_RESIZE_POLICY_SCALE:
wd->scale_policy = policy;
+ _glview_update_surface(obj);
+ elm_glview_changed_set(obj);
return EINA_TRUE;
default:
ERR("Invalid Scale Policy.\n");
return EINA_FALSE;
}
- _glview_update_surface(obj);
- elm_glview_changed_set(obj);
}
EAPI Eina_Bool
sprintf(repname + (dotptr - tmp), "%03i",
win->shot.shot_counter + 1);
strcat(repname, dotptr);
+ free(tmp);
return repname;
}
}
EAPI Ecore_X_Window
elm_win_xwindow_get(const Evas_Object *obj)
{
- Ecore_X_Window xwin = 0;
Elm_Win *win;
const char *type;
if (type != widtype) return _elm_ee_win_get(obj);
#ifdef HAVE_ELEMENTARY_X
win = elm_widget_data_get(obj);
- if (!win) return xwin;
+ if (!win) return 0;
if (win->xwin) return win->xwin;
if (win->parent) return elm_win_xwindow_get(win->parent);
#endif
- return xwin;
- win = NULL;
+ return 0;
}