Modification due to the change of CCtxPopup
[profile/tv/apps/native/filebrowser.git] / src / views / BaseView / SortCtxPopup.cpp
index 0145cb7..ba83457 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "Info.h"
 #include "CtxPopup.h"
+#include <app-res-defines.h>
 #include "SortCtxPopup.h"
 
 const char *sorttext[] = {
@@ -47,7 +48,7 @@ const char *sortbtnids[] = {
 void CSortCtxPopup::t_OnConfiguration(void)
 {
        t_SetList(sorttext, ARRAY_SIZE(sorttext), (int)CInfo::SortType(),
-                       CCtxPopup::TOPBTN_SORT,
+                       CCtxPopup::TOPBTN_SORT, sortbtnids,
                        POSITION_SORT_POPUP_X, POSITION_SORT_POPUP_Y,
                        FBR_STYLE_HOVER_ENTRY,
                        FBR_STYLE_HOVER_CTXPOPUP, FBR_STYLE_HOVER_CTXPOPUP, FBR_STYLE_HOVER_CTXPOPUP);
@@ -59,7 +60,7 @@ void CSortCtxPopup::t_OnBtnClicked(Evas_Object* obj, void* ev)
                return;
 
        int index = -1;
-       const char *id = (const char*)evas_object_data_get(obj, FBR_BTN_ID);
+       const char *id = (const char*)evas_object_data_get(obj, BTN_ID);
 
        if (!id)
                return;