diff options
author | Martin Szulecki | 2010-12-18 18:40:01 +0100 |
---|---|---|
committer | Martin Szulecki | 2012-03-18 18:41:15 +0100 |
commit | 7f123ba88de9b3b65b18a7c0cfadc80edbac7bdb (patch) | |
tree | 614b8546ca037cc15c5cb6267c1ed0268175669e /src | |
parent | 8d6d1ca3d39386953b047b75b1f10452b30c9578 (diff) | |
download | sbmanager-7f123ba88de9b3b65b18a7c0cfadc80edbac7bdb.tar.gz sbmanager-7f123ba88de9b3b65b18a7c0cfadc80edbac7bdb.tar.bz2 |
Set default values for home screen and icon folders in device_info_new()
Diffstat (limited to 'src')
-rw-r--r-- | src/device.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c index ddd6d53..9148404 100644 --- a/src/device.c +++ b/src/device.c @@ -246,7 +246,20 @@ char *device_sbs_save_wallpaper(sbservices_client_t sbc, const char *uuid, GErro device_info_t device_info_new() { - return g_new0(struct device_info_int, 1); + device_info_t device_info = g_new0(struct device_info_int, 1); + + /* initialize default values */ + device_info->home_screen_icon_columns = 4; + device_info->home_screen_icon_dock_max_count = 4; + device_info->home_screen_icon_height = 57; + device_info->home_screen_icon_rows = 4; + device_info->home_screen_icon_width = 57; + device_info->icon_folder_columns = 4; + device_info->icon_folder_max_pages = 1; + device_info->icon_folder_rows = 3; + device_info->icon_state_saves = 1; + + return device_info; } void device_info_free(device_info_t device_info) |