hmm I'm assuming you don't mean freeing all the existing Efreet_Desktop
objects?

On Mon, Jun 18, 2012 at 12:40 PM, Sebastian Dransfeld 
<s...@tango.flipp.net>wrote:

> On 06/14/2012 09:28 AM, Enlightenment SVN wrote:
> > Log:
> > +efreet_dirs_reset()
>
> I think you need to clear the desktop and icon cache as well to change
> language.
>
> S.
>
> >
> >
> > Author:       discomfitor
> > Date:         2012-06-14 00:28:23 -0700 (Thu, 14 Jun 2012)
> > New Revision: 72104
> > Trac:         http://trac.enlightenment.org/e/changeset/72104
> >
> > Modified:
> >    trunk/efreet/ChangeLog trunk/efreet/NEWS
> trunk/efreet/src/lib/efreet_base.c trunk/efreet/src/lib/efreet_base.h
> >
> > Modified: trunk/efreet/ChangeLog
> > ===================================================================
> > --- trunk/efreet/ChangeLog    2012-06-14 06:56:56 UTC (rev 72103)
> > +++ trunk/efreet/ChangeLog    2012-06-14 07:28:23 UTC (rev 72104)
> > @@ -123,3 +123,7 @@
> >   2012-06-07  Mike Blumenkrantz
> >
> >           * Support XDG_DESKTOP_DIR
> > +
> > +2012-06-14  Mike Blumenkrantz
> > +
> > +        * Added efreet_dirs_reset() to delete cached env variable
> information
> >
> > Modified: trunk/efreet/NEWS
> > ===================================================================
> > --- trunk/efreet/NEWS 2012-06-14 06:56:56 UTC (rev 72103)
> > +++ trunk/efreet/NEWS 2012-06-14 07:28:23 UTC (rev 72104)
> > @@ -11,6 +11,7 @@
> >   Additions:
> >
> >       * Support XDG_DESKTOP_DIR
> > +    * efreet_dirs_reset() for refreshing env vars after locale switches
> >
> >   Efreet 1.2.0
> >
> >
> > Modified: trunk/efreet/src/lib/efreet_base.c
> > ===================================================================
> > --- trunk/efreet/src/lib/efreet_base.c        2012-06-14 06:56:56 UTC
> (rev 72103)
> > +++ trunk/efreet/src/lib/efreet_base.c        2012-06-14 07:28:23 UTC
> (rev 72104)
> > @@ -187,6 +187,22 @@
> >       return hostname;
> >   }
> >
> > +EAPI void
> > +efreet_dirs_reset(void)
> > +{
> > +   const char *s;
> > +   eina_stringshare_replace(&hostname, NULL);
> > +   eina_stringshare_replace(&xdg_desktop_dir, NULL);
> > +   eina_stringshare_replace(&xdg_cache_home, NULL);
> > +   eina_stringshare_replace(&xdg_config_home, NULL);
> > +   eina_stringshare_replace(&xdg_data_home, NULL);
> > +   eina_stringshare_replace(&efreet_home_dir, NULL);
> > +   EINA_LIST_FREE(xdg_data_dirs, s)
> > +     eina_stringshare_del(s);
> > +   EINA_LIST_FREE(xdg_config_dirs, s)
> > +     eina_stringshare_del(s);
> > +}
> > +
> >   /**
> >    * @internal
> >    * @param key The environemnt key to lookup
> >
> > Modified: trunk/efreet/src/lib/efreet_base.h
> > ===================================================================
> > --- trunk/efreet/src/lib/efreet_base.h        2012-06-14 06:56:56 UTC
> (rev 72103)
> > +++ trunk/efreet/src/lib/efreet_base.h        2012-06-14 07:28:23 UTC
> (rev 72104)
> > @@ -66,6 +66,13 @@
> >   EAPI const char *efreet_hostname_get(void);
> >
> >   /**
> > + * @brief Resets all the stored env variables. This must be called
> whenever the
> > + * locale is changed.
> > + * @since 1.3
> > + */
> > +EAPI void efreet_dirs_reset(void);
> > +
> > +/**
> >    * Efreet_Event_Cache_Update
> >    */
> >   typedef struct _Efreet_Event_Cache_Update Efreet_Event_Cache_Update;
> >
> >
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > enlightenment-svn mailing list
> > enlightenment-...@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to