Changeset 654

Show
Ignore:
Timestamp:
06/27/08 12:18:39 (2 months ago)
Author:
free
Message:

cosmetics

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cdd-utils/trunk/debian/changelog

    r651 r654  
    1 cdd-utils (0.12.2) 64studio; urgency=low 
     1cdd-utils (0.12.3) 64studio; urgency=low 
    22 
    33  * [lib]: 
  • cdd-utils/trunk/lib/menu.sh

    r647 r654  
    1010    set_key "$key" "$sep" "$val" "$cfg" 
    1111  done 
     12} 
     13 
     14# Set icons 
     15icon () { 
     16  entry=$1 
     17  icon=$2 
     18  if nullstr "$entry"; then warning "No menu entry given"; return; fi 
     19  if nullstr "$icon"; then warning "No icon given"; return; fi 
     20 
     21  cfg=/usr/share/applications/$entry.desktop 
     22  if ! exists $cfg; then warning "$cfg not found"; return; fi 
     23 
     24  key="Icon" 
     25  sep="=" 
     26  val="$icon" 
     27  add_key "$key" "$sep" "$cfg" 
     28  set_key "$key" "$sep" "$val" "$cfg" 
    1229} 
    1330