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

« back to all changes in this revision

Viewing changes to src/livepatch-tray.c

  • Committer: Balint Reczey
  • Author(s): Brian Murray
  • Date: 2019-09-11 15:29:50 UTC
  • Revision ID: balint.reczey@canonical.com-20190911152950-azcvu0oborg4t9xq
Tags: 3.192.26
data/apt_check.py: modify wording and output regarding ESM support.
(LP: #1842508)

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
  if (!g_strcmp0(check_state, "checked") &&
129
129
      (!g_strcmp0(state, "applied") || !g_strcmp0(state, "nothing-to-apply")))
130
130
    {
131
 
      gssize num_fixes;
 
131
      ssize_t num_fixes;
132
132
      g_autofree gchar *label = NULL;
133
133
 
134
134
      tray_applet_ui_set_icon(ta, "livepatch-on");
145
145
      if (num_fixes == 0)
146
146
        label = g_strdup(_("No current updates"));
147
147
      else
148
 
        label = g_strdup_printf(ngettext("%" G_GSSIZE_FORMAT " current update",
149
 
                                         "%" G_GSSIZE_FORMAT " current updates",
 
148
        label = g_strdup_printf(ngettext("%zd current update",
 
149
                                         "%zd current updates",
150
150
                                         num_fixes), num_fixes);
151
151
 
152
152
      gtk_menu_item_set_label(GTK_MENU_ITEM(priv->menuitem_desc), label);