At Thu, 20 Feb 2014 22:45:58 +0900 Carsten Haitzler (The Rasterman) 
<[email protected]> wrote:

> 
> On Thu, 20 Feb 2014 07:39:02 -0500 Robert Heller <[email protected]> said:
> 
> > At Thu, 20 Feb 2014 17:01:28 +0900 Carsten Haitzler (The Rasterman)
> > <[email protected]> wrote:
> > 
> > > 
> > > On Wed, 5 Feb 2014 12:05:12 -0500 Robert Heller <[email protected]> 
> > > 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...

> 
> > > 
> > > > 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 / [email protected]
> > > > 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
> > > > [email protected]
> > > > https://lists.sourceforge.net/lists/listinfo/enlightenment-users
> > > > 
> > > 
> > > 
> > 
> > -- 
> > Robert Heller             -- 978-544-6933 / [email protected]
> > Deepwoods Software        -- http://www.deepsoft.com/
> > ()  ascii ribbon campaign -- against html e-mail
> > /\  www.asciiribbon.org   -- against proprietary attachments
> > 
> > 
> >                                                                             
> >                    
> > 
> 
> 

-- 
Robert Heller             -- 978-544-6933 / [email protected]
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to