~ubuntu-branches/ubuntu/maverick/dradio/maverick

« back to all changes in this revision

Viewing changes to src/gui.c

  • Committer: Bazaar Package Importer
  • Author(s): Alejandro Garrido Mota
  • Date: 2009-10-12 19:48:55 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20091012194855-v8z7tmaqlkh3spv6
Tags: 3.6-1
New upstream release 

Show diffs side-by-side

added added

removed removed

Lines of Context:
337
337
 
338
338
/** update xterm title with name of current stream/podcast */
339
339
 
340
 
void update_xterm_title(MAIN_WIN *w)
 
340
void update_xterm_title(MAIN_WIN *w, ITEM *item)
341
341
{
342
342
   if (w->update_xterm_title)
343
343
   {
344
 
      if (w->cur_item)
345
 
         printf("%c]0;%s - %s%c", '\033', item_name(w->cur_item), "DRadio", '\007');
 
344
      if (item)
 
345
         printf("%c]0;%s - %s%c", '\033', item_name(item), "DRadio", '\007');
346
346
      else
347
347
         printf("%c]0;%s%c", '\033', "DRadio", '\007');
348
348
   }