[gnome-boxes] media-manager: Rename a method
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] media-manager: Rename a method
- Date: Tue, 17 Dec 2013 20:03:30 +0000 (UTC)
commit 0da8c8ec120ff6d807390019573a49e947832071
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Dec 17 18:15:39 2013 +0000
media-manager: Rename a method
Rename compare_media() to compare_media_by_label().
https://bugzilla.gnome.org/show_bug.cgi?id=685243
src/media-manager.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/media-manager.vala b/src/media-manager.vala
index 68b0135..fb6259a 100644
--- a/src/media-manager.vala
+++ b/src/media-manager.vala
@@ -125,7 +125,7 @@ private class Boxes.MediaManager : Object {
try {
var media = yield create_installer_media_from_iso_info (path, title, os_id, media_id);
- list.insert_sorted (media, compare_media);
+ list.insert_sorted (media, compare_media_by_label);
} catch (GLib.Error error) {
warning ("Failed to use ISO '%s': %s", path, error.message);
}
@@ -166,7 +166,7 @@ private class Boxes.MediaManager : Object {
}
}
- private static int compare_media (InstallerMedia media_a, InstallerMedia media_b) {
+ private static int compare_media_by_label (InstallerMedia media_a, InstallerMedia media_b) {
return strcmp (media_a.label, media_b.label);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]