summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2010-01-13 13:58:13 +0000
committerJason Woodward2010-01-13 13:58:13 +0000
commitbcb4c16b68c29768858523978a277ddfc4c156e5 (patch)
tree4e10af0680f4d0f4aa4228d312b808862e0ff2f0
parent112d4c31a33a0b50c3119ae36756bfe2470bfa82 (diff)
downloadgslapt-bcb4c16b68c29768858523978a277ddfc4c156e5.tar.gz
fixed display bug when viewing installed packages
-rw-r--r--ChangeLog1
-rw-r--r--src/callbacks.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4f9012f..0e2b1f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
0.5.2b Jan 13, 2010
+ * fixed display bug when viewing installed packages
* Added default strings for the dependency, changelog, and files tabs
in the event there is no data (thanks George)
* added "Installed Size" column header to translation files (thanks George)
diff --git a/src/callbacks.c b/src/callbacks.c
index faf3d65..b173b48 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -545,7 +545,7 @@ void build_package_treeviewlist (GtkWidget *treeview)
DESC_COLUMN,short_desc,
SIZE_COLUMN,all->pkgs[i]->size_u,
STATUS_COLUMN,status,
- INST_COLUMN, FALSE,
+ INST_COLUMN, is_inst,
VISIBLE_COLUMN,TRUE,
MARKED_COLUMN, FALSE,
UPGRADEABLE_COLUMN, is_an_upgrade,
@@ -558,6 +558,7 @@ void build_package_treeviewlist (GtkWidget *treeview)
}
for (i = 0; i < installed->pkg_count; ++i) {
+ /* do not duplicate those packages that are still available from the package sources */
if (slapt_get_exact_pkg(all,installed->pkgs[i]->name,installed->pkgs[i]->version) == NULL) {
/* we use this for sorting the status */
/* a=installed,i=install,r=remove,u=upgrade,z=available */