From 6b45cb945f9e109dcf15daa5a88039fb0a7fa0eb Mon Sep 17 00:00:00 2001 From: guinux Date: Fri, 15 Apr 2016 12:50:35 +0200 Subject: [PATCH] fix version display for aur updates --- resources/updater_window.ui | 14 ++++++++++---- src/updater_window.vala | 5 +++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/resources/updater_window.ui b/resources/updater_window.ui index 9dc6604..4338c02 100644 --- a/resources/updater_window.ui +++ b/resources/updater_window.ui @@ -105,13 +105,13 @@ 20 Version - + 2 - + 3 @@ -211,15 +211,21 @@ True fixed - 150 + 200 20 Version - + 2 + + + + 3 + + diff --git a/src/updater_window.vala b/src/updater_window.vala index 685fc1b..b1a2bd4 100644 --- a/src/updater_window.vala +++ b/src/updater_window.vala @@ -64,7 +64,7 @@ namespace Pamac { repos_updates_list = new Gtk.ListStore (6, typeof (bool), typeof (string), typeof (string), typeof (string),typeof (string), typeof (string)); repos_updates_treeview.set_model (repos_updates_list); - aur_updates_list = new Gtk.ListStore (3, typeof (bool), typeof (string), typeof (string)); + aur_updates_list = new Gtk.ListStore (4, typeof (bool), typeof (string), typeof (string), typeof (string)); aur_updates_treeview.set_model (aur_updates_list); transaction = new Transaction (this as Gtk.ApplicationWindow); @@ -187,7 +187,8 @@ namespace Pamac { aur_updates_list.insert_with_values (null, -1, 0, !transaction.temporary_ignorepkgs.contains (infos.name), 1, infos.name, - 2, "%s\t (%s)".printf (infos.new_version, infos.old_version)); + 2, infos.new_version, + 3, "(%s)".printf (infos.old_version)); } uint updates_nb = repos_updates_nb + aur_updates_nb; if (updates_nb == 0) {