Hannes, if you're reading this and want to fix the sizing I'd appreciate it

On Thu, Dec 13, 2012 at 10:34 AM, Enlightenment SVN <
[email protected]> wrote:

> Log:
> fix icon finding for evry mime types
>   ticket #1988
>
>
> Author:       discomfitor
> Date:         2012-12-13 02:34:52 -0800 (Thu, 13 Dec 2012)
> New Revision: 80810
> Trac:         http://trac.enlightenment.org/e/changeset/80810
>
> Modified:
>   trunk/e/src/modules/everything/evry_util.c
>
> Modified: trunk/e/src/modules/everything/evry_util.c
> ===================================================================
> --- trunk/e/src/modules/everything/evry_util.c  2012-12-13 10:28:17 UTC
> (rev 80809)
> +++ trunk/e/src/modules/everything/evry_util.c  2012-12-13 10:34:52 UTC
> (rev 80810)
> @@ -430,8 +430,14 @@
>       }
>     else if (!e_util_icon_theme_set(o, icon))
>       {
> -        evas_object_del(o);
> -        o = NULL;
> +        char grp[1024];
> +
> +        snprintf(grp, sizeof(grp), "fileman/mime/%s", icon);
> +        if (!e_util_icon_theme_set(o, grp))
> +          {
> +             evas_object_del(o);
> +             o = NULL;
> +          }
>       }
>
>     return o;
> @@ -491,7 +497,7 @@
>            {
>               icon = efreet_mime_type_icon_get(file->mime,
> e_config->icon_theme, 128);
>               /* XXX can do _ref ?*/
> -             if ((o = evry_icon_theme_get(icon, e)))
> +             if ((o = evry_icon_theme_get(icon, e)) || (o =
> evry_icon_theme_get(file->mime, e)))
>                 {
>                    /* it->icon = eina_stringshare_add(icon); */
>                    return o;
>
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> enlightenment-svn mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to