~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to src/update.c

  • Committer: Michael Vogt
  • Date: 2007-07-27 21:00:33 UTC
  • Revision ID: michael.vogt@ubuntu.com-20070727210033-bswe0d6tdsmx14x6
* fix crash in leftover from pre-GtkStatusIcon code (LP: #127965)
* consitently use notify_notification_new_with_status_icon()

Show diffs side-by-side

added added

removed removed

Lines of Context:
281
281
      return TRUE;
282
282
   } 
283
283
 
 
284
   // if we are already visible, skip the rest
 
285
   if(gtk_status_icon_get_visible (ta->tray_icon))
 
286
      return TRUE;
 
287
 
284
288
   // update the tooltip
285
289
   update_trayicon_update_tooltip(ta, num_upgrades);
286
290
      
287
 
   // if we are already visible, skip the rest
288
 
   if(gtk_status_icon_get_visible (ta->tray_icon))
289
 
      return TRUE;
290
 
 
291
291
   // show the icon
292
292
   gtk_status_icon_set_visible(ta->tray_icon, TRUE);
293
293
 
299
299
   // show the notification with some delay. otherwise on a login
300
300
   // the origin of the window is 0,0 and that looks ugly
301
301
   g_timeout_add(5000, show_notification, ta);
302
 
      
303
 
 
304
 
   //g_print("upgrades: %i\n", un->num_upgrades);
305
 
 
 
302
   
306
303
   return TRUE;
307
304
}
308
305