|  | @@ -222,29 +222,18 @@ function change_theme {
 | 
	
		
			
			| 222 | 222 |  }
 | 
	
		
			
			| 223 | 223 |  
 | 
	
		
			
			| 224 | 224 |  function menu_blog {
 | 
	
		
			
			| 225 |  | -    data=$(tempfile 2>/dev/null)
 | 
	
		
			
			| 226 |  | -    trap "rm -f $data" 0 1 2 5 15
 | 
	
		
			
			| 227 |  | -    dialog --backtitle $"Freedombone Mesh" \
 | 
	
		
			
			| 228 |  | -           --title $"Blogging" \
 | 
	
		
			
			| 229 |  | -           --radiolist $"Choose an operation:" 19 50 12 \
 | 
	
		
			
			| 230 |  | -           1 $"View a blog" on \
 | 
	
		
			
			| 231 |  | -           2 $"New blog entry" off \
 | 
	
		
			
			| 232 |  | -           3 $"Edit the previous blog entry" off \
 | 
	
		
			
			| 233 |  | -           4 $"Delete the previous blog entry" off \
 | 
	
		
			
			| 234 |  | -           5 $"Change theme" off \
 | 
	
		
			
			| 235 |  | -           6 $"Exit" off 2> $data
 | 
	
		
			
			|  | 225 | +    data=$(zenity --list 1 $"View a blog" 2 $"New blog entry" 3 $"Edit the previous blog entry" 4 $"Delete the previous blog entry" 5 $"Change theme" --column="id" --title $"Blogging" --column=$"Choose an operation:" --hide-column=1 --print-column=1 --height=250)
 | 
	
		
			
			| 236 | 226 |      sel=$?
 | 
	
		
			
			| 237 | 227 |      case $sel in
 | 
	
		
			
			| 238 | 228 |          1) exit 1;;
 | 
	
		
			
			| 239 | 229 |          255) exit 1;;
 | 
	
		
			
			| 240 | 230 |      esac
 | 
	
		
			
			| 241 |  | -    case $(cat $data) in
 | 
	
		
			
			|  | 231 | +    case $data in
 | 
	
		
			
			| 242 | 232 |          1) view_blog;;
 | 
	
		
			
			| 243 | 233 |          2) new_blog;;
 | 
	
		
			
			| 244 | 234 |          3) edit_blog;;
 | 
	
		
			
			| 245 | 235 |          4) delete_blog;;
 | 
	
		
			
			| 246 | 236 |          5) change_theme;;
 | 
	
		
			
			| 247 |  | -        6) break;;
 | 
	
		
			
			| 248 | 237 |      esac
 | 
	
		
			
			| 249 | 238 |  }
 | 
	
		
			
			| 250 | 239 |  
 |