[gnome-boxes/wip/rishi/rhel: 2/18] os-database: Specify the OS corresponding to each URI
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/rishi/rhel: 2/18] os-database: Specify the OS corresponding to each URI
- Date: Mon, 11 Sep 2017 18:01:35 +0000 (UTC)
commit 76812043348e1f246a7e63582a929281b3559ebb
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Sep 11 19:37:47 2017 +0200
os-database: Specify the OS corresponding to each URI
In the following patch, we will use this to show the OS' logo while
waiting for its image to be downloaded.
https://bugzilla.gnome.org/show_bug.cgi?id=777133
src/os-database.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/os-database.vala b/src/os-database.vala
index d927e29..e5af73d 100644
--- a/src/os-database.vala
+++ b/src/os-database.vala
@@ -135,7 +135,7 @@ private class Boxes.OSDatabase : GLib.Object {
if (!yield ensure_db_loaded ())
throw new OSDatabaseError.DB_LOADING_FAILED ("Failed to load OS database");
- var store = new Gtk.ListStore (1, typeof (string));
+ var store = new Gtk.ListStore (2, typeof (string), typeof (Osinfo.Os));
foreach (var entity in db.get_os_list ().get_elements ()) {
var os = entity as Os;
@@ -146,7 +146,7 @@ private class Boxes.OSDatabase : GLib.Object {
Gtk.TreeIter iter;
store.append (out iter);
- store.set (iter, 0, media.url);
+ store.set (iter, 0, media.url, 1, os);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]