diff options
author | Nikias Bassen | 2010-07-09 17:34:12 +0200 |
---|---|---|
committer | Nikias Bassen | 2010-07-09 17:34:12 +0200 |
commit | 113022dbed485bec83b359677874d06230c15edf (patch) | |
tree | 67d76b30daf688975dd014ee6e5aeeb494cd43f0 /src/gui.c | |
parent | 445026e4728feef1295d6d47ba8e873e87fdec41 (diff) | |
download | sbmanager-113022dbed485bec83b359677874d06230c15edf.tar.gz sbmanager-113022dbed485bec83b359677874d06230c15edf.tar.bz2 |
Only try to load wallpaper for iOS 4.0+
Diffstat (limited to 'src/gui.c')
-rw-r--r-- | src/gui.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1136,6 +1136,7 @@ static void gui_set_wallpaper(const char *wp) static gboolean gui_pages_init_cb(gpointer user_data) { const char *uuid = (const char*)user_data; + uint32_t osversion = 0; GError *error = NULL; plist_t iconstate = NULL; @@ -1147,7 +1148,7 @@ static gboolean gui_pages_init_cb(gpointer user_data) /* connect to sbservices */ if (!sbc) - sbc = device_sbs_new(uuid, &error); + sbc = device_sbs_new(uuid, &osversion, &error); if (error) { g_printerr("%s", error->message); @@ -1156,9 +1157,11 @@ static gboolean gui_pages_init_cb(gpointer user_data) } if (sbc) { - /* Load wallpaper if available */ - if (device_sbs_save_wallpaper(sbc, "/tmp/wallpaper.png", &error)) { - gui_set_wallpaper("/tmp/wallpaper.png"); + if (osversion >= 0x04000000) { + /* Load wallpaper if available */ + if (device_sbs_save_wallpaper(sbc, "/tmp/wallpaper.png", &error)) { + gui_set_wallpaper("/tmp/wallpaper.png"); + } } /* Load icon data */ |