~ubuntu-branches/ubuntu/precise/indicator-session/precise

« back to all changes in this revision

Viewing changes to src/apt-watcher.c

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2012-03-06 16:06:57 UTC
  • Revision ID: package-import@ubuntu.com-20120306160657-wenbva5fs20lhhxs
Tags: 0.3.92-0ubuntu2
* Backport r243 and r244, should fix the restart required status update
  once aptdaemon is fixed to correctly emit signals (lp: #942104)
* debian/patches/restore_session_lock.patch, debian/rules:
  - replace by a backport of the official commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
    g_debug ("updates changed signal received");
116
116
    apt_watcher_check_for_updates (self);
117
117
  }
118
 
  else if (g_strcmp0(signal_name, "RestartScheduled") == 0) {
 
118
  else if (g_strcmp0(signal_name, "RestartSchedule") == 0) {
119
119
    g_debug ("RestartScheduled signal received");
120
120
    dbusmenu_menuitem_property_set (self->apt_item,
121
121
                                    DBUSMENU_MENUITEM_PROP_LABEL,
122
122
                                    _("Restart to Complete Updates…"));
123
123
    dbusmenu_menuitem_property_set (self->apt_item,
124
124
                                    DBUSMENU_MENUITEM_PROP_DISPOSITION,
125
 
                                    DBUSMENU_MENUITEM_DISPOSITION_ALERT);     
126
 
  } 
 
125
                                    DBUSMENU_MENUITEM_DISPOSITION_ALERT); 
 
126
    session_dbus_restart_required (self->session_dbus_interface);
 
127
  }
127
128
}
128
129
 
129
130
static void