diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/device.c | 2 | ||||
-rw-r--r-- | src/gui.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c index 4617118..c36a47b 100644 --- a/src/device.c +++ b/src/device.c @@ -186,6 +186,7 @@ gboolean device_sbs_set_iconstate(sbservices_client_t sbc, plist_t iconstate, GE return result; } +#ifdef HAVE_LIBIMOBILEDEVICE_1_1 gboolean device_sbs_save_wallpaper(sbservices_client_t sbc, const char *filename, GError **error) { gboolean res = FALSE; @@ -207,6 +208,7 @@ gboolean device_sbs_save_wallpaper(sbservices_client_t sbc, const char *filename } return res; } +#endif device_info_t device_info_new() { @@ -1113,6 +1113,7 @@ static gboolean wait_icon_load_finished(gpointer user_data) return res; } +#ifdef HAVE_LIBIMOBILEDEVICE_1_1 static void gui_set_wallpaper(const char *wp) { GError *err = NULL; @@ -1132,6 +1133,7 @@ static void gui_set_wallpaper(const char *wp) clutter_actor_lower_bottom(actor); wallpaper = actor; } +#endif static gboolean gui_pages_init_cb(gpointer user_data) { @@ -1157,13 +1159,14 @@ static gboolean gui_pages_init_cb(gpointer user_data) } if (sbc) { +#ifdef HAVE_LIBIMOBILEDEVICE_1_1 if (osversion >= 0x04000000) { /* Load wallpaper if available */ if (device_sbs_save_wallpaper(sbc, "/tmp/wallpaper.png", &error)) { gui_set_wallpaper("/tmp/wallpaper.png"); } } - +#endif /* Load icon data */ if (device_sbs_get_iconstate(sbc, &iconstate, &error)) { gui_set_iconstate(iconstate); |