[gnome-boxes] Update glib-2.0 VAPI and usage
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Update glib-2.0 VAPI and usage
- Date: Mon, 5 Dec 2011 16:12:30 +0000 (UTC)
commit 76cdf83ecc8f370af1ffda39689a68ebb342e1a0
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Dec 2 03:49:18 2011 +0200
Update glib-2.0 VAPI and usage
https://bugzilla.gnome.org/show_bug.cgi?id=665444
src/wizard.vala | 4 ++--
vapi/upstream/glib-2.0.vapi | 5 ++---
2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index c848dd9..6c1167e 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -282,9 +282,9 @@ private class Boxes.Wizard: Boxes.UI {
summary.add_property (_("Password"), media.hidden_password);
}
- var memory = format_size_full (resources.ram, FormatSizeFlags.IEC_UNITS);
+ var memory = format_size (resources.ram, FormatSizeFlags.IEC_UNITS);
summary.add_property (_("Memory"), memory);
- memory = format_size_full (resources.storage, FormatSizeFlags.IEC_UNITS);
+ memory = format_size (resources.storage, FormatSizeFlags.IEC_UNITS);
summary.add_property (_("Disk"), _("%s maximum".printf (memory)));
}
}
diff --git a/vapi/upstream/glib-2.0.vapi b/vapi/upstream/glib-2.0.vapi
index 9b29013..33c38c7 100644
--- a/vapi/upstream/glib-2.0.vapi
+++ b/vapi/upstream/glib-2.0.vapi
@@ -2679,9 +2679,8 @@ namespace GLib {
[Deprecated (replacement = "format_size")]
public string format_size_for_display (int64 size);
- public string format_size (uint64 size);
-
- public string format_size_full (uint64 size, FormatSizeFlags flags);
+ [CCode (cname="g_format_size_full")]
+ public string format_size (uint64 size, FormatSizeFlags flags = FormatSizeFlags.DEFAULT);
[CCode (cprefix = "G_FORMAT_SIZE_", has_type_id = false)]
public enum FormatSizeFlags {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]