From 0a4c7ef62b3ebb349f142fd91e3b848b84c4d3a5 Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Thu, 11 Oct 2012 17:39:19 +0900 Subject: [PATCH] Set the SIZE info for creating a new livebox. Requested by the OSP (to open this feature like android) Change-Id: I6c87256cf4ebbb6db093ad0ab737683b30252e85 --- src/client.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/client.c b/src/client.c index c3c4e75..81ab6c6 100644 --- a/src/client.c +++ b/src/client.c @@ -53,8 +53,18 @@ static int method_new(struct event_arg *arg, int *width, int *height, double *pr &arg->info.lb_create.out_content, &arg->info.lb_create.out_title); - if (ret == 0) + if (ret == 0) { + if (arg->info.lb_create.width > 0 && arg->info.lb_create.height > 0) { + if (*width != arg->info.lb_create.width || *height != arg->info.lb_create.height) { + int tmp; + tmp = livebox_resize(arg->pkgname, arg->id, arg->info.lb_create.width, arg->info.lb_create.height); + DbgPrint("Resize[%dx%d] returns: %d\n", arg->info.lb_create.width, arg->info.lb_create.height, tmp); + } + } + + arg->info.lb_create.out_is_pinned_up = (livebox_is_pinned_up(arg->pkgname, arg->id) == 1); + } return ret; } -- 2.7.4