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

« back to all changes in this revision

Viewing changes to src/hooks.c

  • Committer: Brian Murray
  • Date: 2013-06-03 20:55:52 UTC
  • Revision ID: brian@canonical.com-20130603205552-cmsdkfwtbf24sz55
* Remove support for choosing not to auto-launch applications (LP: #947008)
* Remove reboot required notification as update-manager itself indicates
  when a reboot is required and it only appeared when auto-launch was set to
  false.

Show diffs side-by-side

added added

removed removed

Lines of Context:
776
776
   //g_debug_hooks("hooks: %i (new: %i)", g_list_length(hook_files), unseen_count);
777
777
 
778
778
   if (unseen_count > 0) {
779
 
      // check if we do a notification or a dialog
780
 
      if(g_settings_get_boolean(ta->un->settings, SETTINGS_KEY_AUTO_LAUNCH)) {
781
 
         g_debug_hooks("showing hooks with focus on map == FALSE");
782
 
         show_hooks(ta, FALSE);
783
 
         return TRUE;
784
 
      }
785
 
 
786
 
      // no dialog, do the notification
787
 
      if(!tray_applet_ui_get_visible (ta))
788
 
         g_timeout_add_seconds(5, show_notification, ta);
789
 
 
790
 
      tray_applet_ui_ensure (ta);
791
 
      tray_applet_ui_set_single_action(ta, _("Information available"),
792
 
                                       G_CALLBACK (button_release_cb), ta);
793
 
      tray_applet_ui_set_visible (ta, TRUE);
 
779
      // we only do a dialog
 
780
      g_debug_hooks("showing hooks with focus on map == FALSE");
 
781
      show_hooks(ta, FALSE);
 
782
      return TRUE;
794
783
   } else
795
784
      tray_applet_ui_destroy (ta);
796
785