From 9bff178fb35977e0804fdee9298cf10e9b7dd60d Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Thu, 8 Nov 2012 16:02:33 +0900 Subject: [PATCH] Handling the font change event. Call the update_content of all liveboxes Change-Id: I36678c85d97e0d1e936049c41c9b3ff8dbec8bf6 --- packaging/com.samsung.data-provider-slave.spec | 2 +- src/livebox.c | 4 ++-- src/main.c | 9 ++++++++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/packaging/com.samsung.data-provider-slave.spec b/packaging/com.samsung.data-provider-slave.spec index 6c5f585..a3bc58b 100644 --- a/packaging/com.samsung.data-provider-slave.spec +++ b/packaging/com.samsung.data-provider-slave.spec @@ -1,6 +1,6 @@ Name: com.samsung.data-provider-slave Summary: Slave data provider -Version: 0.7.2 +Version: 0.7.3 Release: 1 Group: main/app License: Samsung Proprietary License diff --git a/src/livebox.c b/src/livebox.c index a4e6f21..3bf1fd2 100644 --- a/src/livebox.c +++ b/src/livebox.c @@ -865,10 +865,10 @@ int livebox_update_all(const char *pkgname, const char *cluster, const char *cat if (item->deleteme) continue; - if (strcasecmp(item->inst->cluster, cluster)) + if (cluster && strcasecmp(item->inst->cluster, cluster)) continue; - if (strcasecmp(item->inst->category, category)) + if (category && strcasecmp(item->inst->category, category)) continue; if (pkgname && strlen(pkgname)) { diff --git a/src/main.c b/src/main.c index 2e77918..2ed3a5e 100644 --- a/src/main.c +++ b/src/main.c @@ -14,6 +14,7 @@ #include #include #include +#include #include @@ -24,6 +25,7 @@ #include "update_monitor.h" #include "client.h" #include "util.h" +#include "livebox.h" static bool ctx_changed_cb(context_type_e type, void *user_data) { @@ -101,6 +103,11 @@ static void app_resume(void *data) return; } +static void app_language_changed(void *data) +{ + livebox_update_all(NULL, NULL, NULL); +} + static void app_service(service_h service, void *data) { int ret; @@ -193,7 +200,7 @@ int main(int argc, char *argv[]) event_callback.low_memory = NULL; event_callback.low_battery = NULL; event_callback.device_orientation = NULL; - event_callback.language_changed = NULL; + event_callback.language_changed = app_language_changed; ret = app_efl_main(&argc, &argv, &event_callback, NULL); critical_log_fini(); return ret; -- 2.7.4