At Fri, 21 Feb 2014 09:19:28 +0900 Carsten Haitzler (The Rasterman) 
<ras...@rasterman.com> wrote:

> 
> On Thu, 20 Feb 2014 09:28:23 -0500 Robert Heller <hel...@deepsoft.com> said:
> 
> > At Thu, 20 Feb 2014 22:45:58 +0900 Carsten Haitzler (The Rasterman)
> > <ras...@rasterman.com> wrote:
> > 
> > > 
> > > On Thu, 20 Feb 2014 07:39:02 -0500 Robert Heller <hel...@deepsoft.com> 
> > > said:
> > > 
> > > > At Thu, 20 Feb 2014 17:01:28 +0900 Carsten Haitzler (The Rasterman)
> > > > <ras...@rasterman.com> wrote:
> > > > 
> > > > > 
> > > > > On Wed, 5 Feb 2014 12:05:12 -0500 Robert Heller <hel...@deepsoft.com>
> > > > > said:
> > > > > 
> > > > > > I am doing some tests with efreet_menus and I am getting an error
> > > > > > message:
> > > > > > 
> > > > > > *** main: favorites menu file
> > > > > > is /home/heller/.e/e/applications/menu/favorite.menu CRI:
> > > > > > lib/efreet/efreet_menu.c:624 efreet_menu_parse() eina_log_print()
> > > > > > unknown domain -1, original message format 'Efreet_menu: Menu file
> > > > > > didn't start with <Menu> tag.'
> > > > > 
> > > > > i don't know - but one of the tags before menu must be making efreet
> > > > > unhappy. elimination will tell you which. :)
> > > > 
> > > > 
> > > > It turned out that I had not run efreet_init() in my test program, so
> > > > efreet was not properly initialized.
> > > 
> > > aha! :)
> > 
> > BTW: efreet_init() is not (obviously) documented.  I found it by looking at 
> > e_main.c in the enlightenment source tree. I guess this is a (minor) 
> > documentation bug...Efreet.h
> 
> i see documentation for it... from Efreet.h:
> 
> /**
>  * @return Value > @c 0 if the initialization was successful, @c 0 otherwise.
>  * @brief Initializes the Efreet system
>  */
> EAPI int efreet_init(void);
> 
> ???

There isn't an *obvious* link to it on the main Efreet documentation page: 

http://docs.enlightenment.org/stable/edje/efreet_main.html

So, unless ones knows where to look, one won't find it.  *I* only found it by 
greping for efreet calls in e_main.c in enlightenment-0.18.2/src/bin/.

So, it is a documentation bug, somewhere...

> 
> > > 
> > > > > 
> > > > > > The menu file looks like this (this file was created by the E18
> > > > > > configuration 
> > > > > > -- I did not hand craft it):
> > > > > > 
> > > > > > squeeze32build% cat 
> > > > > > /home/heller/.e/e/applications/menu/favorite.menu
> > > > > > <?xml version="1.0"?>
> > > > > > <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
> > > > > > "http://standards.freedesktop.org/menu-spec/menu-1.0.dtd";> <Menu>
> > > > > >   <Name>Favorites</Name>
> > > > > >   <DefaultAppDirs/>
> > > > > >   <DefaultDirectoryDirs/>
> > > > > >   <Layout>
> > > > > >     <Filename>mplayer.desktop</Filename>
> > > > > >     <Filename>xterm.desktop</Filename>
> > > > > >     <Filename>xpdf.desktop</Filename>
> > > > > >   </Layout>
> > > > > >   <Include>
> > > > > >     <Filename>mplayer.desktop</Filename>
> > > > > >     <Filename>xterm.desktop</Filename>
> > > > > >     <Filename>xpdf.desktop</Filename>
> > > > > >   </Include>
> > > > > > </Menu>
> > > > > >                             
> > > > > > While it is true that the file does not *exactly* start with a 
> > > > > > <Menu>
> > > > > > tag, the two lines before the <Menu> tag and 'standard' scenery for
> > > > > > an XML file and efreet_menu_parse() should know to skip these two
> > > > > > lines.  Not E18 itself does not seem to have a problem with this 
> > > > > > file
> > > > > > and the code below is cribbed from the E18 code itself.
> > > > > > 
> > > > > > The code fragment is:
> > > > > > 
> > > > > >     fprintf(stderr,"*** main: favorites menu file is %s\n",buf);
> > > > > >     if (ecore_file_exists
> > > > > > (buf))
> > > > > > { Eina_List
> > > > > > *l; menu = efreet_menu_parse
> > > > > > (buf); fprintf(stderr,"*** main: favorites menu is %p
> > > > > > \n",menu); /* ... */
> > > > > >     } 
> > > > > > 
> > > > > > 
> > > > > > -- 
> > > > > > Robert Heller             -- 978-544-6933 / hel...@deepsoft.com
> > > > > > Deepwoods Software        -- http://www.deepsoft.com/
> > > > > > ()  ascii ribbon campaign -- against html e-mail
> > > > > > /\  www.asciiribbon.org   -- against proprietary attachments
> > > > > > 
> > > > > > 
> > > > > >                                                                     
> > > > > >                                
> > > > > > 
> > > > > > ------------------------------------------------------------------------------
> > > > > > Managing the Performance of Cloud-Based Applications
> > > > > > Take advantage of what the Cloud has to offer - Avoid Common 
> > > > > > Pitfalls.
> > > > > > Read the Whitepaper.
> > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> > > > > > _______________________________________________
> > > > > > enlightenment-users mailing list
> > > > > > enlightenment-us...@lists.sourceforge.net
> > > > > > https://lists.sourceforge.net/lists/listinfo/enlightenment-users
> > > > > > 
> > > > > 
> > > > > 
> > > > 
> > > > -- 
> > > > Robert Heller             -- 978-544-6933 / hel...@deepsoft.com
> > > > Deepwoods Software        -- http://www.deepsoft.com/
> > > > ()  ascii ribbon campaign -- against html e-mail
> > > > /\  www.asciiribbon.org   -- against proprietary attachments
> > > > 
> > > > 
> > > >                                                                         
> > > >                        
> > > > 
> > > 
> > > 
> > 
> > -- 
> > Robert Heller             -- 978-544-6933 / hel...@deepsoft.com
> > Deepwoods Software        -- http://www.deepsoft.com/
> > ()  ascii ribbon campaign -- against html e-mail
> > /\  www.asciiribbon.org   -- against proprietary attachments
> > 
> > 
> >                                                                           
> > 
> 
> 

-- 
Robert Heller             -- 978-544-6933 / hel...@deepsoft.com
Deepwoods Software        -- http://www.deepsoft.com/
()  ascii ribbon campaign -- against html e-mail
/\  www.asciiribbon.org   -- against proprietary attachments


                                                                                
                                           

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to