From: Jonatan L. <th...@ho...> - 2005-01-30 16:35:22
|
Oops! The patch I sent was not working. I didn't see that the variable path was used inside the loop, fixed now. Updated patch attached. On Sun, 30 Jan 2005 17:15:42 -0200 Jonatan Liljedahl <th...@ho...> wrote: > > I found the reason why the SendTo menu only recursed one level into > directories. > > In menu_from_dir() in menu.c, change the line 529 from: > > new_widgets = menu_from_dir(sub, fname, style, func, separator, > strip_ext, FALSE); > to: > new_widgets = menu_from_dir(sub, fname, style, func, separator, > strip_ext, TRUE); > > ...and it will work as expected, recursing into subdirectories. Now > you can add your ~/Apps to your SendTo, regardless of your directory > structure of ~/Apps, and you will get submenu's for each subdirectory. > > I have also made a change that includes all matching types (not only > subtypes) in the "custom file menu". > So, now you can put Gimp and Picky in your SendTo/.image/ and have > them appear at the top of your filemenu on all image files, instead of > having to put them in each SendTo/.image_{subtype} directory! > > The "Customize menu..." function should probably be changed too, > asking if the user wants to customize for the specific subtype or for > the whole type family, just as in the Set Run Action dialogue. > > This is the way I want it. =) > > Patch attached. > > /Jonatan -=( http://kymatica.com )=- > /Jonatan -=( http://kymatica.com )=- |