summaryrefslogtreecommitdiffstats
path: root/src/device.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-12-18 18:40:01 +0100
committerGravatar Martin Szulecki2010-12-19 21:23:46 +0100
commitecc8ade211b346856f789b688cd67259cfe76b1e (patch)
tree0f3fc6e76b6510fd139f8f9be958c058e20d3dc8 /src/device.c
parent0986d833ec566f52a4d2c41d33217db6f0d49dfa (diff)
downloadsbmanager-ecc8ade211b346856f789b688cd67259cfe76b1e.tar.gz
sbmanager-ecc8ade211b346856f789b688cd67259cfe76b1e.tar.bz2
Set default values for home screen and icon folders in device_info_new()
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c15
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)