[gnome-boxes] vapi/upstream: use vala 0.16 glib bindings
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] vapi/upstream: use vala 0.16 glib bindings
- Date: Thu, 9 Aug 2012 13:59:22 +0000 (UTC)
commit 7977f7a7456fc3470c891a596b4e1d88a51e7aaa
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Thu Aug 9 15:42:41 2012 +0200
vapi/upstream: use vala 0.16 glib bindings
Fix deprecated Vala GLib bindings usage
configure.ac | 2 +-
src/app.vala | 2 +-
src/installer-media.vala | 2 +-
src/util.vala | 2 +-
vapi/upstream/Makefile.am | 2 -
vapi/upstream/gio-2.0.vapi | 3229 ------------------------------
vapi/upstream/glib-2.0.vapi | 4607 -------------------------------------------
7 files changed, 4 insertions(+), 7842 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2535c49..e5961bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -73,7 +73,7 @@ PKG_CHECK_MODULES(BOXES, [
VALA_ADD_CHECKFILE([src/gnome_boxes_vala.stamp])
VALA_ADD_CHECKFILE([libgd/gd-1.0.vapi])
-VALA_CHECK([0.14.0], [
+VALA_CHECK([0.16.0], [
clutter-gtk-1.0
cogl-1.0
gdk-pixbuf-2.0
diff --git a/src/app.vala b/src/app.vala
index 77afad3..02c44fd 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -307,7 +307,7 @@ private class Boxes.App: Boxes.UI {
private async void get_sources_from_dir (File dir) {
try {
- var enumerator = yield dir.enumerate_children_async (FILE_ATTRIBUTE_STANDARD_NAME, 0);
+ var enumerator = yield dir.enumerate_children_async (FileAttribute.STANDARD_NAME, 0);
while (true) {
var files = yield enumerator.next_files_async (10);
if (files == null)
diff --git a/src/installer-media.vala b/src/installer-media.vala
index 4bebb61..c13d543 100644
--- a/src/installer-media.vala
+++ b/src/installer-media.vala
@@ -112,7 +112,7 @@ private class Boxes.InstallerMedia : GLib.Object {
var root_dir = mount.get_root ();
if (root_dir.get_path () == mount_dir.get_path ()) {
var volume = mount.get_volume ();
- device_file = volume.get_identifier (VOLUME_IDENTIFIER_KIND_UNIX_DEVICE);
+ device_file = volume.get_identifier (VolumeIdentifier.UNIX_DEVICE);
mount_point = path;
} else
// Assume direct path to device node/image
diff --git a/src/util.vala b/src/util.vala
index 5e60620..1ddefba 100644
--- a/src/util.vala
+++ b/src/util.vala
@@ -507,7 +507,7 @@ namespace Boxes {
public delegate void RunInThreadFunc () throws GLib.Error;
public async void run_in_thread (RunInThreadFunc func, Cancellable? cancellable = null) throws GLib.Error {
GLib.Error e = null;
- GLib.g_io_scheduler_push_job ((job, cancellable) => {
+ GLib.IOSchedulerJob.push ((job, cancellable) => {
try {
func ();
} catch (GLib.Error err) {
diff --git a/vapi/upstream/Makefile.am b/vapi/upstream/Makefile.am
index 3a2153a..047b6b4 100644
--- a/vapi/upstream/Makefile.am
+++ b/vapi/upstream/Makefile.am
@@ -8,8 +8,6 @@ EXTRA_DIST = \
clutter-gtk-1.0.vapi \
cogl-1.0.deps \
cogl-1.0.vapi \
- gio-2.0.vapi \
- glib-2.0.vapi \
gdk-3.0.deps \
gdk-3.0.vapi \
gtk+-3.0.deps \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]