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

« back to all changes in this revision

Viewing changes to src/reboot.c

  • Committer: Michael Vogt
  • Date: 2010-06-01 13:28:36 UTC
  • Revision ID: michael.vogt@ubuntu.com-20100601132836-obv0ou9wph048md2
mergedĀ fromĀ debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
  return has_pending;
182
182
}
183
183
 
184
 
gboolean
185
 
reboot_check (TrayApplet *ta)
186
 
{
187
 
   if (aptdaemon_pending_transactions())
188
 
      g_timeout_add_seconds (5, reboot_check, ta);
189
 
   else
190
 
      do_reboot_check(ta);
191
 
   return FALSE;
192
 
}
193
 
 
194
 
void
 
184
static void
195
185
do_reboot_check (TrayApplet *ta)
196
186
{
197
 
        static gboolean already_asked_for_reboot = FALSE;
198
187
        struct stat statbuf;
199
188
 
200
189
        // if we are not supposed to show the reboot notification
241
230
 
242
231
}
243
232
 
 
233
gboolean
 
234
reboot_check (TrayApplet *ta)
 
235
{
 
236
   if (aptdaemon_pending_transactions())
 
237
      g_timeout_add_seconds (5, (GSourceFunc)reboot_check, ta);
 
238
   else
 
239
      do_reboot_check(ta);
 
240
   return FALSE;
 
241
}
 
242
 
244
243
static gboolean
245
244
button_release_cb (GtkWidget *widget,
246
245
                   TrayApplet *ta)