aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrathnor <rathnor>2004-08-22 03:45:03 (GMT)
committerrathnor <rathnor>2004-08-22 03:45:03 (GMT)
commit84505e56e2e8fee2454d3492782d08d555256e09 (patch)
treeab937ff6131c7dec5fb967bedba95547bd4ec1ef
parentc5dc6637a0bd6c1b2547d8cfe101fbf96e1a24fe (diff)
downloadfluxbox_paul-84505e56e2e8fee2454d3492782d08d555256e09.zip
fluxbox_paul-84505e56e2e8fee2454d3492782d08d555256e09.tar.bz2
preliminary icon support in fluxbox-generate_menu
-rw-r--r--ChangeLog4
-rwxr-xr-xutil/fluxbox-generate_menu.in10
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3a72bd8..3fae2ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
1(Format: Year/Month/Day) 1(Format: Year/Month/Day)
2Changes for 0.9.10: 2Changes for 0.9.10:
3*04/08/22:
4 * Preliminary basic support for icons in fluxbox-generate_menu (Han)
5 - put a <progname>.xpm into ~/.fluxbox/icons. e.g. Eterm.xpm
6 fluxbox-generate_menu.in
3*04/08/19: 7*04/08/19:
4 * Fixes to make nroff not report errors for fbsetbg.1 (Han) 8 * Fixes to make nroff not report errors for fbsetbg.1 (Han)
5 fbsetbg.1 9 fbsetbg.1
diff --git a/util/fluxbox-generate_menu.in b/util/fluxbox-generate_menu.in
index 112184b..a41ecbd 100755
--- a/util/fluxbox-generate_menu.in
+++ b/util/fluxbox-generate_menu.in
@@ -22,7 +22,7 @@
22# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23# DEALINGS IN THE SOFTWARE. 23# DEALINGS IN THE SOFTWARE.
24# 24#
25# $Id: fluxbox-generate_menu.in,v 1.26 2004/08/19 00:29:10 fluxgen Exp $ 25# $Id: fluxbox-generate_menu.in,v 1.27 2004/08/22 03:45:03 rathnor Exp $
26 26
27# 27#
28# Portability notes: 28# Portability notes:
@@ -143,7 +143,13 @@ case `uname` in
143esac 143esac
144 144
145append() { 145append() {
146 echo " $*" >> ${MENUFILENAME} 146 echo -n " $*" >> ${MENUFILENAME}
147 execname="`echo $*|cut -d\( -f2|cut -d\) -f1`"
148 if [ -r "${HOME}/.fluxbox/icons/$execname.xpm" ]; then
149 echo "<${HOME}/.fluxbox/icons/$execname.xpm>" >> ${MENUFILENAME}
150 else
151 echo >> ${MENUFILENAME}
152 fi
147} 153}
148 154
149append_menu() { 155append_menu() {