fix version display for aur updates
This commit is contained in:
parent
6dc6bda00c
commit
6b45cb945f
@ -105,13 +105,13 @@
|
||||
<property name="min_width">20</property>
|
||||
<property name="title" translatable="yes">Version</property>
|
||||
<child>
|
||||
<object class="GtkCellRendererText" id="repos_new_update_version"/>
|
||||
<object class="GtkCellRendererText" id="repos_update_new_version"/>
|
||||
<attributes>
|
||||
<attribute name="text">2</attribute>
|
||||
</attributes>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkCellRendererText" id="repos_old_update_version"/>
|
||||
<object class="GtkCellRendererText" id="repos_update_old_version"/>
|
||||
<attributes>
|
||||
<attribute name="text">3</attribute>
|
||||
</attributes>
|
||||
@ -211,15 +211,21 @@
|
||||
<object class="GtkTreeViewColumn" id="treeviewcolumn8">
|
||||
<property name="resizable">True</property>
|
||||
<property name="sizing">fixed</property>
|
||||
<property name="fixed_width">150</property>
|
||||
<property name="fixed_width">200</property>
|
||||
<property name="min_width">20</property>
|
||||
<property name="title" translatable="yes">Version</property>
|
||||
<child>
|
||||
<object class="GtkCellRendererText" id="aur_update_version"/>
|
||||
<object class="GtkCellRendererText" id="aur_update_new_version"/>
|
||||
<attributes>
|
||||
<attribute name="text">2</attribute>
|
||||
</attributes>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkCellRendererText" id="aur_update_old_version"/>
|
||||
<attributes>
|
||||
<attribute name="text">3</attribute>
|
||||
</attributes>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user