* limitations under the License.
*/
-#include <Elementary.h>
-#include <Eina.h>
#include <Ecore.h>
#include <aul.h>
-#include "i18n.h"
+
+#include <AppCommon.h>
#include "define.h"
#include "common.h"
+#include "i18n.h"
#include "Info.h"
-#include "CtxPopup.h"
#include "SortCtxPopup.h"
+#define BTN_ID "BTN_ID"
+
const char *sorttext[] = {
N_("Title A-Z"),
N_("Title Z-A"),
void CSortCtxPopup::t_OnConfiguration(void)
{
t_SetList(sorttext, ARRAY_SIZE(sorttext), (int)CInfo::SortType(),
- CCtxPopup::TOPBTN_SORT,
+ CContextPopup::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);
+ NULL,
+ FBR_STYLE_HOVER_ENTRY, FBR_STYLE_HOVER_ENTRY, FBR_STYLE_HOVER_ENTRY);
}
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;
return;
CInfo::SetSortType(index);
- CCtxPopup::t_OnBtnClicked(obj, ev);
+ CContextPopup::t_OnBtnClicked(obj, ev);
Destroy(); //_destroy_ctxpopup(bd);
}