gui_option: added option save button but not working yet.

This commit is contained in:
Daniel Juyung Seo 2013-08-29 02:57:46 +09:00
parent 2fdc982031
commit 55cb51f0b6
1 changed files with 16 additions and 1 deletions

View File

@ -448,6 +448,13 @@ _option_popup_ok_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
evas_object_del(popup);
}
static void
_option_popup_save_clicked_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
void *event_info EINA_UNUSED)
{
return;
}
static void
_option_popup_cancel_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
void *event_info EINA_UNUSED)
@ -488,8 +495,16 @@ gui_option_create(void)
evas_object_show(btn);
btn = elm_button_add(popup);
elm_object_text_set(btn, "Cancel");
elm_object_text_set(btn, "Save");
elm_object_part_content_set(popup, "button2", btn);
evas_object_smart_callback_add(btn, "clicked",
_option_popup_save_clicked_cb, popup);
elm_object_disabled_set(btn, EINA_TRUE);
evas_object_show(btn);
btn = elm_button_add(popup);
elm_object_text_set(btn, "Cancel");
elm_object_part_content_set(popup, "button3", btn);
evas_object_smart_callback_add(btn, "clicked", _option_popup_cancel_clicked_cb, popup);
evas_object_show(btn);