Fix the text type box parsing bug.
authorSung-jae Park <nicesj.park@samsung.com>
Thu, 10 Jan 2013 11:25:32 +0000 (20:25 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Fri, 11 Jan 2013 11:16:56 +0000 (20:16 +0900)
Use the kept_in_safe function to get the filename of the text data
Without that function, the parser couldn't find the correct data file.

Change-Id: If4aea2a0445192664523dfd3cab914f01c15614a

packaging/liblivebox-viewer.spec
src/client.c
src/fb.c
src/livebox.c

index 82c93d6..dc9ba15 100644 (file)
@@ -1,6 +1,6 @@
 Name: liblivebox-viewer
 Summary: Library for the development of a livebox viewer
-Version: 0.8.10
+Version: 0.8.11
 Release: 1
 Group: main/app
 License: Flora License
index 93dceaf..119ec55 100644 (file)
@@ -241,7 +241,7 @@ static struct packet *master_lb_updated(pid_t pid, int handle, const struct pack
 
        if (lb_text_lb(handler)) {
                lb_set_size(handler, lb_w, lb_h);
-               ret = parse_desc(handler, util_uri_to_path(id), 0);
+               ret = parse_desc(handler, livebox_filename(handler), 0);
                /*!
                 * \note
                 * DESC parser will call the "text event callback".
index 76d8081..1e687ef 100644 (file)
--- a/src/fb.c
+++ b/src/fb.c
@@ -158,7 +158,7 @@ static inline int sync_for_file(struct fb_info *info)
        return 0;
 }
 
-static inline int sync_for_pixmap(struct fb_info *info)
+static inline __attribute__((always_inline)) int sync_for_pixmap(struct fb_info *info)
 {
        struct buffer *buffer;
        XShmSegmentInfo si;
index 9ec8c4a..ae5ac41 100644 (file)
@@ -110,7 +110,7 @@ static inline void default_pd_destroyed_cb(struct livebox *handler, int ret, voi
        DbgPrint("Default PD destroyed event handler: %d\n", ret);
 }
 
-static inline struct cb_info *create_cb_info(ret_cb_t cb, void *data)
+static inline __attribute__((always_inline)) struct cb_info *create_cb_info(ret_cb_t cb, void *data)
 {
        struct cb_info *info;