tazpanel diff lib/libtazpanel @ rev 498

Use bottom panel as status bar; settings: data picker, lock icon for locked users; font: add 'calendar', 'modem', and 'vpn' icons; etc...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon May 18 17:13:57 2015 +0300 (2015-05-18)
parents b9a33d89d025
children f8ff472846c2
line diff
     1.1 --- a/lib/libtazpanel	Tue May 12 13:54:08 2015 +0200
     1.2 +++ b/lib/libtazpanel	Mon May 18 17:13:57 2015 +0300
     1.3 @@ -202,8 +202,7 @@
     1.4  # Get the list of panel styles
     1.5  
     1.6  list_styles() {
     1.7 -	for style in $PANEL/styles/*
     1.8 -	do
     1.9 +	for style in $PANEL/styles/*; do
    1.10  		style=$(basename $style)
    1.11  		echo "<option value='$style'>$style</option>"
    1.12  	done
    1.13 @@ -239,8 +238,9 @@
    1.14  
    1.15  loading_msg() {
    1.16  	local MSG=${1:-$LOADING_MSG}
    1.17 +	[ -z "$MSG" ] && MSG="$(_ 'Please wait')"
    1.18  	cat <<EOT
    1.19 -<div id="loading"><img src="/styles/default/images/loader.gif"/>$MSG</div>
    1.20 +<script type="text/javascript">statusbar("$MSG", 1)</script>
    1.21  EOT
    1.22  }
    1.23