[folks] Remove use of deprecated GLib API in Vala 0.12
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Remove use of deprecated GLib API in Vala 0.12
- Date: Sun, 12 Dec 2010 17:20:27 +0000 (UTC)
commit e6227d18e16b2aafe4f176b562504117980d0dd8
Author: Philip Withnall <philip withnall collabora co uk>
Date: Sun Dec 12 16:18:01 2010 +0000
Remove use of deprecated GLib API in Vala 0.12
folks/backend-store.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/folks/backend-store.vala b/folks/backend-store.vala
index d6e13d0..7ab934f 100644
--- a/folks/backend-store.vala
+++ b/folks/backend-store.vala
@@ -425,7 +425,11 @@ public class Folks.BackendStore : Object {
* aliases */
var is_symlink = info.get_is_symlink ();
+#if VALA_0_12
+ string mime = ContentType.get_mime_type (content_type);
+#else
string mime = g_content_type_get_mime_type (content_type);
+#endif
if (file_type == FileType.DIRECTORY)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]