diff options
author | jinwoo.shin <jw0227.shin@samsung.com> | 2015-08-31 20:47:52 +0900 |
---|---|---|
committer | jinwoo.shin <jw0227.shin@samsung.com> | 2015-09-08 17:20:53 +0900 |
commit | bc5cf34863009de78a24864551c093921ff139e6 (patch) | |
tree | 128a9b85ed8199cf8c938055a76fc7f6c7f7aced | |
parent | 530255c68466aab4e856b06b4b3fd81b99ac069b (diff) | |
download | air_infosquare-bc5cf34863009de78a24864551c093921ff139e6.tar.gz air_infosquare-bc5cf34863009de78a24864551c093921ff139e6.tar.bz2 air_infosquare-bc5cf34863009de78a24864551c093921ff139e6.zip |
Add to store notification readed time
Change-Id: I7440895ea29041203c2af2a9d5163d0c2c764747
Signed-off-by: jinwoo.shin <jw0227.shin@samsung.com>
-rw-r--r-- | CMakeLists.txt | 3 | ||||
-rw-r--r-- | include/util.h | 1 | ||||
-rw-r--r-- | packaging/org.tizen.infosquare.spec | 1 | ||||
-rw-r--r-- | src/notification_view.c | 2 | ||||
-rw-r--r-- | src/util.c | 10 |
5 files changed, 14 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 399f7f3..cb2efd5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,8 +61,7 @@ pkg_check_modules(PKGS REQUIRED edje capi-appfw-application app-utils - notification - vconf) + notification) FOREACH(flag ${PKGS_CFLAGS}) SET(EXTRA_CFLGAS "${EXTRA_CFLGAS} ${flag}") diff --git a/include/util.h b/include/util.h index f48ef25..97dc643 100644 --- a/include/util.h +++ b/include/util.h @@ -25,5 +25,6 @@ Evas_Object *util_add_icon(Evas_Object *parent, const char *file, const char *part); Evas_Object *util_add_button(Evas_Object *parent, const char *part, const char *text, const char *style); +void util_set_last_viewed(void); #endif diff --git a/packaging/org.tizen.infosquare.spec b/packaging/org.tizen.infosquare.spec index 84b88fd..634693c 100644 --- a/packaging/org.tizen.infosquare.spec +++ b/packaging/org.tizen.infosquare.spec @@ -13,7 +13,6 @@ BuildRequires: pkgconfig(ecore) BuildRequires: pkgconfig(edje) BuildRequires: pkgconfig(app-utils) BuildRequires: pkgconfig(notification) -BuildRequires: pkgconfig(vconf) BuildRequires: gettext-devel BuildRequires: edje-bin diff --git a/src/notification_view.c b/src/notification_view.c index cd81959..395cd87 100644 --- a/src/notification_view.c +++ b/src/notification_view.c @@ -336,6 +336,8 @@ static void _update_list(struct _priv *priv) if (it) elm_object_item_focus_set(it, EINA_TRUE); } + + util_set_last_viewed(); } static char *_grid_label_get(void *data, @@ -18,6 +18,7 @@ #include <app_debug.h> #include <notification.h> #include <inputmgr.h> +#include <app_contents.h> #include "define.h" @@ -168,3 +169,12 @@ Evas_Object *util_add_button(Evas_Object *parent, const char *part, return btn; } + +void util_set_last_viewed(void) +{ + int r; + + r = app_contents_set_basis_time(CONTENTS_NOTI); + if (r != APP_CONTENTS_ERROR_NONE) + _ERR("failed to set basis time"); +} |