Assign the file url to the file path
authorDoHyun Pyun <dh79.pyun@samsung.com>
Fri, 24 Aug 2012 08:20:27 +0000 (17:20 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Fri, 24 Aug 2012 08:20:27 +0000 (17:20 +0900)
[Issue] Internal bug in RSA binary

[Problem] The file sending is fail in the file viewer

[Cause] In file view, store the file path without URL info. (file://)
        So we get the file path to NULL using g_filename_from_uri

[Solution] 1. Request to add URL info (To the viewer part)
           2. Add the protect codes in our code

debian/changelog
packaging/ug-bluetooth-efl.spec
src/ui/bt-main-view.c

index b8f4fa5..141b6f1 100644 (file)
@@ -1,3 +1,11 @@
+ug-setting-bluetooth-efl (0.2.108) unstable; urgency=low
+
+  * Upload the package
+  * Git: magnolia/apps/home/ug-bluetooth-efl
+  * Tag: ug-setting-bluetooth-efl_0.2.108
+
+ -- DoHyun Pyun <dh79.pyun@samsung.com>  Thu, 23 Aug 2012 13:06:50 +0900
+
 ug-setting-bluetooth-efl (0.2.107) unstable; urgency=low
 
   * Upload the package
index 6ebbf51..bd88ac6 100644 (file)
@@ -5,7 +5,7 @@
 
 Name:       ug-bluetooth-efl
 Summary:    UI gadget about the bluetooth
-Version: 0.2.107
+Version: 0.2.108
 Release:    1
 Group:      TO_BE/FILLED_IN
 License:    TO BE FILLED IN
index 37f910b..11c2e5f 100644 (file)
@@ -2045,25 +2045,28 @@ Elm_Object_Item *_bt_main_add_paired_device(bt_ug_data *ugd, bt_dev_t *dev)
 {
        FN_START;
 
-       Elm_Object_Item *git = NULL;
-       Elm_Object_Item *base_item = NULL;
+       Elm_Object_Item *git;
 
        retvm_if(ugd == NULL, NULL, "Invalid argument: ugd is NULL\n");
        retvm_if(dev == NULL, NULL, "Invalid argument: dev is NULL\n");
 
-       if (ugd->visible_item)
-               base_item = ugd->visible_item;
-       else
-               base_item = ugd->status_item;
-
        /* Paired device Title */
        if (ugd->paired_title == NULL) {
-               git = elm_genlist_item_insert_after(ugd->main_genlist,
-                                       ugd->paired_title_itc,
-                                       (void *)ugd, NULL,
-                                       base_item,
-                                       ELM_GENLIST_ITEM_NONE,
-                                       NULL, NULL);
+               if (ugd->searched_title == NULL) {
+                       git = elm_genlist_item_append(ugd->main_genlist,
+                                               ugd->paired_title_itc,
+                                               (void *)ugd, NULL,
+                                               ELM_GENLIST_ITEM_NONE,
+                                               NULL, NULL);
+
+               } else {
+                       git = elm_genlist_item_insert_before(ugd->main_genlist,
+                                               ugd->paired_title_itc,
+                                               (void *)ugd, NULL,
+                                               ugd->searched_title,
+                                               ELM_GENLIST_ITEM_NONE,
+                                               NULL, NULL);
+               }
 
                elm_genlist_item_select_mode_set(git, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
                ugd->paired_title = git;
@@ -2881,8 +2884,10 @@ void __bt_main_parse_service(bt_ug_data *ugd, service_h service)
 
                file_path = g_filename_from_uri(file_url, NULL, NULL);
 
-               if (file_path == NULL)
-                       goto done;
+               if (file_path == NULL) {
+                       BT_DBG("Not include URI info");
+                       file_path = strdup(file_url);
+               }
 
                /* In now, we support only 1 file by AppControl */
                if (service_add_extra_data(service, "filecount", "1") < 0)