From c3b363ca32bf3b18a50ec7f529bba72267ac35df Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Sun, 11 Jul 2010 12:29:30 +0200 Subject: Compile with stable libimobiledevice release without 1.1.0 API requirement --- src/gui.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui.c') diff --git a/src/gui.c b/src/gui.c index 0ab2ac7..1c88591 100644 --- a/src/gui.c +++ b/src/gui.c @@ -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); -- cgit v1.1-32-gdbae