forked from enlightenment/enlightenment
Fix edje thumbnails.
Please add the following to your /etc/mime.types: application/x-edje edj And the following to your ~/.e/e/config/$PROFILE/e.cfg (see hint below): group "mime_icons" list { group "E_Config_Mime_Icon" struct { value "mime" string: "application/x-edje"; value "icon" string: "THUMB"; } } or just remove your settings and choose a newly installed profile. How to edit your ~/.e/e/config/$PROFILE/e.cfg: PROFILE=`eet -x ~/.e/e/config/profile.cfg config /dev/stdout` eet -d ~/.e/e/config/$PROFILE/e.cfg config ~/.e/e/config/$PROFILE/e.src $EDITOR ~/.e/e/config/$PROFILE/e.src eet -e ~/.e/e/config/$PROFILE/e.cfg config ~/.e/e/config/$PROFILE/e.src 1 SVN revision: 39348
This commit is contained in:
parent
c368c849e1
commit
43a27176be
|
@ -747,6 +747,12 @@ group "E_Config" struct {
|
||||||
value "icon" string: "THUMB";
|
value "icon" string: "THUMB";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
group "mime_icons" list {
|
||||||
|
group "E_Config_Mime_Icon" struct {
|
||||||
|
value "mime" string: "application/x-edje";
|
||||||
|
value "icon" string: "THUMB";
|
||||||
|
}
|
||||||
|
}
|
||||||
group "mime_icons" list {
|
group "mime_icons" list {
|
||||||
group "E_Config_Mime_Icon" struct {
|
group "E_Config_Mime_Icon" struct {
|
||||||
value "mime" string: "application/x-desktop";
|
value "mime" string: "application/x-desktop";
|
||||||
|
|
|
@ -1951,6 +1951,12 @@ group "E_Config" struct {
|
||||||
value "icon" string: "THUMB";
|
value "icon" string: "THUMB";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
group "mime_icons" list {
|
||||||
|
group "E_Config_Mime_Icon" struct {
|
||||||
|
value "mime" string: "application/x-edje";
|
||||||
|
value "icon" string: "THUMB";
|
||||||
|
}
|
||||||
|
}
|
||||||
group "mime_icons" list {
|
group "mime_icons" list {
|
||||||
group "E_Config_Mime_Icon" struct {
|
group "E_Config_Mime_Icon" struct {
|
||||||
value "mime" string: "application/x-desktop";
|
value "mime" string: "application/x-desktop";
|
||||||
|
|
|
@ -2015,6 +2015,12 @@ group "E_Config" struct {
|
||||||
value "icon" string: "THUMB";
|
value "icon" string: "THUMB";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
group "mime_icons" list {
|
||||||
|
group "E_Config_Mime_Icon" struct {
|
||||||
|
value "mime" string: "application/x-edje";
|
||||||
|
value "icon" string: "THUMB";
|
||||||
|
}
|
||||||
|
}
|
||||||
group "mime_icons" list {
|
group "mime_icons" list {
|
||||||
group "E_Config_Mime_Icon" struct {
|
group "E_Config_Mime_Icon" struct {
|
||||||
value "mime" string: "application/x-desktop";
|
value "mime" string: "application/x-desktop";
|
||||||
|
|
|
@ -2038,6 +2038,12 @@ group "E_Config" struct {
|
||||||
value "icon" string: "THUMB";
|
value "icon" string: "THUMB";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
group "mime_icons" list {
|
||||||
|
group "E_Config_Mime_Icon" struct {
|
||||||
|
value "mime" string: "application/x-edje";
|
||||||
|
value "icon" string: "THUMB";
|
||||||
|
}
|
||||||
|
}
|
||||||
group "mime_icons" list {
|
group "mime_icons" list {
|
||||||
group "E_Config_Mime_Icon" struct {
|
group "E_Config_Mime_Icon" struct {
|
||||||
value "mime" string: "application/x-desktop";
|
value "mime" string: "application/x-desktop";
|
||||||
|
|
|
@ -2048,6 +2048,12 @@ group "E_Config" struct {
|
||||||
value "icon" string: "THUMB";
|
value "icon" string: "THUMB";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
group "mime_icons" list {
|
||||||
|
group "E_Config_Mime_Icon" struct {
|
||||||
|
value "mime" string: "application/x-edje";
|
||||||
|
value "icon" string: "THUMB";
|
||||||
|
}
|
||||||
|
}
|
||||||
group "mime_icons" list {
|
group "mime_icons" list {
|
||||||
group "E_Config_Mime_Icon" struct {
|
group "E_Config_Mime_Icon" struct {
|
||||||
value "mime" string: "application/x-desktop";
|
value "mime" string: "application/x-desktop";
|
||||||
|
|
|
@ -401,6 +401,7 @@ static const char *_e_fm2_icon_desktop_str = NULL;
|
||||||
static const char *_e_fm2_icon_thumb_str = NULL;
|
static const char *_e_fm2_icon_thumb_str = NULL;
|
||||||
static const char *_e_fm2_mime_inode_directory = NULL;
|
static const char *_e_fm2_mime_inode_directory = NULL;
|
||||||
static const char *_e_fm2_mime_app_desktop = NULL;
|
static const char *_e_fm2_mime_app_desktop = NULL;
|
||||||
|
static const char *_e_fm2_mime_app_edje = NULL;
|
||||||
|
|
||||||
static Ecore_Timer *_e_fm2_mime_flush = NULL;
|
static Ecore_Timer *_e_fm2_mime_flush = NULL;
|
||||||
static Ecore_Timer *_e_fm2_mime_clear = NULL;
|
static Ecore_Timer *_e_fm2_mime_clear = NULL;
|
||||||
|
@ -598,6 +599,7 @@ e_fm2_init(void)
|
||||||
_e_fm2_icon_thumb_str = eina_stringshare_add("THUMB");
|
_e_fm2_icon_thumb_str = eina_stringshare_add("THUMB");
|
||||||
_e_fm2_mime_inode_directory = eina_stringshare_add("inode/directory");
|
_e_fm2_mime_inode_directory = eina_stringshare_add("inode/directory");
|
||||||
_e_fm2_mime_app_desktop = eina_stringshare_add("application/x-desktop");
|
_e_fm2_mime_app_desktop = eina_stringshare_add("application/x-desktop");
|
||||||
|
_e_fm2_mime_app_edje = eina_stringshare_add("application/x-edje");
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -609,6 +611,7 @@ e_fm2_shutdown(void)
|
||||||
_eina_stringshare_replace(&_e_fm2_icon_thumb_str, NULL);
|
_eina_stringshare_replace(&_e_fm2_icon_thumb_str, NULL);
|
||||||
_eina_stringshare_replace(&_e_fm2_mime_inode_directory, NULL);
|
_eina_stringshare_replace(&_e_fm2_mime_inode_directory, NULL);
|
||||||
_eina_stringshare_replace(&_e_fm2_mime_app_desktop, NULL);
|
_eina_stringshare_replace(&_e_fm2_mime_app_desktop, NULL);
|
||||||
|
_eina_stringshare_replace(&_e_fm2_mime_app_edje, NULL);
|
||||||
|
|
||||||
ecore_timer_del(_e_fm2_mime_flush);
|
ecore_timer_del(_e_fm2_mime_flush);
|
||||||
_e_fm2_mime_flush = NULL;
|
_e_fm2_mime_flush = NULL;
|
||||||
|
@ -1529,7 +1532,7 @@ _e_fm2_path_join(char *buf, int buflen, const char *base, const char *component)
|
||||||
* @see _e_fm2_icon_explicit_get()
|
* @see _e_fm2_icon_explicit_get()
|
||||||
*/
|
*/
|
||||||
static Evas_Object *
|
static Evas_Object *
|
||||||
_e_fm2_icon_explicit_edje_get(Evas *evas, const E_Fm2_Icon *ic, const char *iconpath, const char **type_ret)
|
_e_fm2_icon_explicit_edje_get(Evas *evas, const E_Fm2_Icon *ic __UNUSED__, const char *iconpath, const char **type_ret)
|
||||||
{
|
{
|
||||||
Evas_Object *o = edje_object_add(evas);
|
Evas_Object *o = edje_object_add(evas);
|
||||||
if (!o)
|
if (!o)
|
||||||
|
@ -1554,7 +1557,7 @@ _e_fm2_icon_explicit_edje_get(Evas *evas, const E_Fm2_Icon *ic, const char *icon
|
||||||
* @see _e_fm2_icon_explicit_get()
|
* @see _e_fm2_icon_explicit_get()
|
||||||
*/
|
*/
|
||||||
static Evas_Object *
|
static Evas_Object *
|
||||||
_e_fm2_icon_explicit_theme_icon_get(Evas *evas, const E_Fm2_Icon *ic, const char *name, const char **type_ret)
|
_e_fm2_icon_explicit_theme_icon_get(Evas *evas, const E_Fm2_Icon *ic __UNUSED__, const char *name, const char **type_ret)
|
||||||
{
|
{
|
||||||
Evas_Object *o = edje_object_add(evas);
|
Evas_Object *o = edje_object_add(evas);
|
||||||
if (!o)
|
if (!o)
|
||||||
|
@ -1840,8 +1843,14 @@ _e_fm2_icon_mime_get(Evas *evas, const E_Fm2_Icon *ic, void (*gen_func) (void *d
|
||||||
if (icon == _e_fm2_icon_desktop_str)
|
if (icon == _e_fm2_icon_desktop_str)
|
||||||
return _e_fm2_icon_desktop_get(evas, ic, type_ret);
|
return _e_fm2_icon_desktop_get(evas, ic, type_ret);
|
||||||
else if (icon == _e_fm2_icon_thumb_str)
|
else if (icon == _e_fm2_icon_thumb_str)
|
||||||
return _e_fm2_icon_thumb_get(evas, ic, NULL,
|
{
|
||||||
gen_func, data, force_gen, type_ret);
|
if (ic->info.mime == _e_fm2_mime_app_edje)
|
||||||
|
return _e_fm2_icon_thumb_edje_get
|
||||||
|
(evas, ic, gen_func, data, force_gen, type_ret);
|
||||||
|
else
|
||||||
|
return _e_fm2_icon_thumb_get
|
||||||
|
(evas, ic, NULL, gen_func, data, force_gen, type_ret);
|
||||||
|
}
|
||||||
else if (strncmp(icon, "e/icons/fileman/mime/", 21) == 0)
|
else if (strncmp(icon, "e/icons/fileman/mime/", 21) == 0)
|
||||||
return _e_fm2_icon_explicit_theme_get(evas, ic, icon + 21 - 5, type_ret);
|
return _e_fm2_icon_explicit_theme_get(evas, ic, icon + 21 - 5, type_ret);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue