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

« back to all changes in this revision

Viewing changes to src/livepatch-tray.c

  • Committer: Andrea Azzarone
  • Date: 2019-03-13 10:05:20 UTC
  • mto: This revision was merged to the branch mainline in revision 956.
  • Revision ID: azzaronea@gmail.com-20190313100520-024zyxvlpm81vgrq
Add livepatch status icons.

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
 
114
114
  if (!livepatch_is_running())
115
115
    {
116
 
      tray_applet_ui_set_icon(ta, "gtk-no");
 
116
      tray_applet_ui_set_icon(ta, "livepatch-off");
117
117
      gtk_menu_item_set_label(GTK_MENU_ITEM(priv->menuitem_enabled),
118
118
                              _("Livepatch is off"));
119
119
      gtk_widget_set_visible(priv->menuitem_desc, FALSE);
139
139
      gssize num_fixes;
140
140
      g_autofree gchar *label = NULL;
141
141
 
142
 
      tray_applet_ui_set_icon(ta, "gtk-yes");
 
142
      tray_applet_ui_set_icon(ta, "livepatch-on");
143
143
 
144
144
      num_fixes = livepatch_get_num_fixes(&error);
145
145
      if (num_fixes == -1)
167
167
    }
168
168
  else
169
169
    {
170
 
      tray_applet_ui_set_icon(ta, "dialog-error");
 
170
      tray_applet_ui_set_icon(ta, "livepatch-warning");
171
171
 
172
172
      if (check_state == NULL || !g_strcmp0(check_state, "check-failed"))
173
173
        {