[gnome-boxes] os-database: Rename guess_os_from_install_media
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] os-database: Rename guess_os_from_install_media
- Date: Tue, 19 Feb 2013 20:34:03 +0000 (UTC)
commit b80bb72273ff0593c590bc23ab9a910c0744fbe6
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Feb 19 03:59:23 2013 +0200
os-database: Rename guess_os_from_install_media
Rename OSDatabase.guess_os_from_install_media method to
guess_os_from_install_media_path not only to better represent it but also
to make way for a new function for which this name fits better.
https://bugzilla.gnome.org/show_bug.cgi?id=694141
src/installer-media.vala | 2 +-
src/os-database.vala | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/installer-media.vala b/src/installer-media.vala
index 23dc996..3dc5b5e 100644
--- a/src/installer-media.vala
+++ b/src/installer-media.vala
@@ -58,7 +58,7 @@ private class Boxes.InstallerMedia : GLib.Object {
yield get_media_info_from_device (device, media_manager.os_db);
else {
from_image = true;
- os_media = yield media_manager.os_db.guess_os_from_install_media (device_file, cancellable);
+ os_media = yield media_manager.os_db.guess_os_from_install_media_path (device_file, cancellable);
if (os_media != null)
os = os_media.os;
}
diff --git a/src/os-database.vala b/src/os-database.vala
index e4f1b3b..b946d14 100644
--- a/src/os-database.vala
+++ b/src/os-database.vala
@@ -50,8 +50,8 @@ private class Boxes.OSDatabase : GLib.Object {
db_loaded ();
}
- public async Media? guess_os_from_install_media (string media_path,
- Cancellable? cancellable) throws GLib.Error {
+ public async Media? guess_os_from_install_media_path (string media_path,
+ Cancellable? cancellable) throws GLib.Error {
if (!yield ensure_db_loaded ())
return null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]