all repos — fluxbox @ 84505e56e2e8fee2454d3492782d08d555256e09

custom fork of the fluxbox windowmanager

preliminary icon support in fluxbox-generate_menu
rathnor rathnor
commit

84505e56e2e8fee2454d3492782d08d555256e09

parent

c5dc6637a0bd6c1b2547d8cfe101fbf96e1a24fe

2 files changed, 12 insertions(+), 2 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,5 +1,9 @@

(Format: Year/Month/Day) Changes for 0.9.10: +*04/08/22: + * Preliminary basic support for icons in fluxbox-generate_menu (Han) + - put a <progname>.xpm into ~/.fluxbox/icons. e.g. Eterm.xpm + fluxbox-generate_menu.in *04/08/19: * Fixes to make nroff not report errors for fbsetbg.1 (Han) fbsetbg.1
M util/fluxbox-generate_menu.inutil/fluxbox-generate_menu.in

@@ -22,7 +22,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. # -# $Id: fluxbox-generate_menu.in,v 1.26 2004/08/19 00:29:10 fluxgen Exp $ +# $Id: fluxbox-generate_menu.in,v 1.27 2004/08/22 03:45:03 rathnor Exp $ # # Portability notes:

@@ -143,7 +143,13 @@ ;;

esac append() { - echo " $*" >> ${MENUFILENAME} + echo -n " $*" >> ${MENUFILENAME} + execname="`echo $*|cut -d\( -f2|cut -d\) -f1`" + if [ -r "${HOME}/.fluxbox/icons/$execname.xpm" ]; then + echo "<${HOME}/.fluxbox/icons/$execname.xpm>" >> ${MENUFILENAME} + else + echo >> ${MENUFILENAME} + fi } append_menu() {