Hi,

funny, I allready said that :) The answer was I should use strrchr
instead of ecore_file_file_get() cause ecore_file is just for files.

The subject was: 
Subject: Re: [E-devel] [EGIT] [misc/entrance] master 02/09: entrance: Updated 
the entrance_conf.c

Greetings bu5hm4n

On Tue, Apr 08, 2014 at 03:41:14PM -0300, Gustavo Sverzut Barbieri wrote:
> why is that? the ecore_file_file_get() does exactly that:
> 
> 
>    if ((result = strrchr(path, '/'))) result++;
> 
> On Tue, Apr 8, 2014 at 3:36 PM, Marcel Hollerbach
> <[email protected]> wrote:
> > bu5hm4n pushed a commit to branch master.
> >
> > http://git.enlightenment.org/misc/entrance.git/commit/?id=3836ea49a96bb0813c2750b1eea0a22f4fc2d34c
> >
> > commit 3836ea49a96bb0813c2750b1eea0a22f4fc2d34c
> > Author: Marcel Hollerbach <[email protected]>
> > Date:   Tue Apr 8 19:55:37 2014 +0200
> >
> >     entrance: Use strrchr instead of ecore_file_file_get
> > ---
> >  src/bin/entrance_conf.c | 4 +++-
> >  1 file changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/src/bin/entrance_conf.c b/src/bin/entrance_conf.c
> > index 41427ba..1c80223 100644
> > --- a/src/bin/entrance_conf.c
> > +++ b/src/bin/entrance_conf.c
> > @@ -91,7 +91,9 @@ 
> > entrance_conf_background_title_gen(Entrance_Conf_Background *cbg)
> >
> >     if (cbg->group)
> >       {
> > -        group_suffix = ecore_file_file_get(cbg->group);
> > +        group_suffix = strrchr(cbg->group, '/');
> > +        //no "/" char
> > +        group_suffix ++;
> >       }
> >
> >     if ((group_suffix) && (filename))
> >
> > --
> >
> >
> 
> 
> 
> -- 
> Gustavo Sverzut Barbieri
> --------------------------------------
> Mobile: +55 (19) 99225-2202
> Contact: http://www.gustavobarbieri.com.br/contact
> 
> ------------------------------------------------------------------------------
> Put Bad Developers to Shame
> Dominate Development with Jenkins Continuous Integration
> Continuously Automate Build, Test & Deployment 
> Start a new project now. Try Jenkins in the cloud.
> http://p.sf.net/sfu/13600_Cloudbees
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to