diff options
author | Jannis Pohlmann <jannis@xfce.org> | 2010-12-04 16:40:35 +0100 |
---|---|---|
committer | Jannis Pohlmann <jannis@xfce.org> | 2010-12-04 16:40:35 +0100 |
commit | 6b4711a7c749d0ae5eaaac5b613e29c908635af0 (patch) | |
tree | eac11aabc1fa37ced793e0ef2604b6cb7b94e4cf /src/xfdesktop-file-utils.c | |
parent | a40bbb2d8ed4a247895f83a5ed2584d0e21ea8cc (diff) | |
download | xfdesktop-6b4711a7c749d0ae5eaaac5b613e29c908635af0.tar.gz |
Guard GIO 2.20 function calls, provide alternatives to GTK+ 2.18 calls.
Diffstat (limited to 'src/xfdesktop-file-utils.c')
-rw-r--r-- | src/xfdesktop-file-utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xfdesktop-file-utils.c b/src/xfdesktop-file-utils.c index 7a69e39c..644b26c1 100644 --- a/src/xfdesktop-file-utils.c +++ b/src/xfdesktop-file-utils.c @@ -165,7 +165,9 @@ xfdesktop_file_utils_volume_is_present(GVolume *volume) gboolean has_media = FALSE; gboolean is_shadowed = FALSE; GDrive *drive; +#if GLIB_CHECK_VERSION (2, 20, 0) GMount *mount; +#endif g_return_val_if_fail(G_IS_VOLUME(volume), FALSE); @@ -175,11 +177,13 @@ xfdesktop_file_utils_volume_is_present(GVolume *volume) g_object_unref(drive); } +#if GLIB_CHECK_VERSION (2, 20, 0) mount = g_volume_get_mount(volume); if(mount) { is_shadowed = g_mount_is_shadowed(mount); g_object_unref(mount); } +#endif return has_media && !is_shadowed; } |