change ctxpopup to center popup about share
authorJisung Ahn <jcastle.ahn@samsung.com>
Fri, 18 Jan 2013 09:50:11 +0000 (18:50 +0900)
committerJisung Ahn <jcastle.ahn@samsung.com>
Fri, 18 Jan 2013 09:50:11 +0000 (18:50 +0900)
Change-Id: Ia9f7702722b6ceba96bbf1a00b2c9b31e07775df

main/src/view/ivug-main-view-menu.cpp

index eb268bd..642ef5d 100755 (executable)
@@ -1252,12 +1252,8 @@ void on_btn_share_clicked(void *data, Evas_Object *obj, void *event_info)
        service_set_uri(service, mdata->filepath);
        service_foreach_app_matched(service, _share_pkg_cb, (void *)popup);
 
-       Evas_Coord x, y;
-       Evas_Coord w, h;
-       evas_object_geometry_get(obj, &x, &y, &w, &h);
-       MSG_MAIN_MED("x = %d, y = %d, w = %d, h = %d", x, y, w, h);
-
-       ivug_listpopup_context_show(popup, pMainView->area_obj, x+w/2, y+h/2);
+       ivug_listpopup_button_set(popup, IDS_CLOSE);
+       ivug_listpopup_popup_show(popup);
 }
 #else
 void on_btn_share_clicked(void *data, Evas_Object *obj, void *event_info)
@@ -1324,13 +1320,8 @@ void on_btn_share_clicked(void *data, Evas_Object *obj, void *event_info)
                        // Go through
        }
 
-       Evas_Coord x, y;
-       Evas_Coord w, h;
-
-       evas_object_geometry_get(obj, &x, &y, &w, &h);
-       MSG_MAIN_MED("x = %d, y = %d, w = %d, h = %d", x, y, w, h);
-
-       ivug_listpopup_context_show(popup, pMainView->area_obj, x+w/2, y+h/2);
+       ivug_listpopup_button_set(popup, IDS_CLOSE);
+       ivug_listpopup_popup_show(popup);
 }
 #endif