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.'

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-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to