[patch] xfdesktop menu icons and menu autogeneration, again

Brian J. Tarricone bjt23 at cornell.edu
Sun Feb 8 15:13:19 CET 2004


hey all-
latest version of xfdesktop + menu icons + autogenerated system menu.  
this is a rather large patch and reorganises quite a bit of code.

http://kelnos.homelinux.org/xfce4/xfdesktop-menu-icons-20040208.diff.gz

a few notes:
don't mess with the xfce-registered-categories.xml file too much.  the 
parsing code isn't too robust (yet), and xfdesktop will most likely 
crash if the file has errors.
this patch patches the sample menu.xml file provided in the root of the 
source tree - it should tell you everything you need to use the new menu 
system.  (sorry, only the main file is changed, not the translated ones.)

new/fixes from last time:
-title items with the same names as menu items won't disappear anymore
-menu generator completely rewritten, now supports custom category 
names, flat menus, multilevel menus, and integration with your kitchen sink

todo:
-generate menus from the legacy menu directories from both gnome and kde.
-look in a few more places for new-style .desktop files
-make a config option for whether or not to use icons in menus
-look in ~/.xfce4 for xfce-registered-categories.xml in addition to the 
system location
-fail gracefully when there are XML... issues
-some other options for menu generation

enjoy, and let me know what you think.

    -brian



More information about the Xfce4-dev mailing list