widget_option: added allow_event option to notify.
This commit is contained in:
parent
40f913bcfb
commit
c077829fc2
|
@ -1428,13 +1428,16 @@ _widget_notify_launch(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
|
|||
o = elm_notify_add(gd->win);
|
||||
evas_object_smart_callback_add(o, "block,clicked",
|
||||
_widget_notify_response_cb, NULL);
|
||||
|
||||
elm_notify_allow_events_set(o, EINA_FALSE);
|
||||
evas_object_show(o);
|
||||
|
||||
//elm_notify_align_set
|
||||
//elm_notify_timeout_set
|
||||
//elm_notify_allow_events_set
|
||||
if (wod)
|
||||
{
|
||||
elm_notify_allow_events_set(o, wod->notify_event);
|
||||
//elm_notify_align_set
|
||||
//elm_notify_timeout_set
|
||||
//elm_notify_allow_events_set
|
||||
|
||||
}
|
||||
|
||||
box = elm_box_add(o);
|
||||
elm_object_content_set(o, box);
|
||||
|
|
|
@ -402,6 +402,17 @@ _widget_option_genlist_create(Evas_Object *box)
|
|||
elm_radio_value_set(rdg, wod->genlist_content_type);
|
||||
}
|
||||
|
||||
// notify
|
||||
WIDGET_OPTION_CHECK_CHANGED_CB(notify_event, wod->notify_event);
|
||||
|
||||
static void
|
||||
_widget_option_notify_create(Evas_Object *box)
|
||||
{
|
||||
Evas_Object *o = NULL;
|
||||
|
||||
WIDGET_OPTION_CHECK_ADD("Allow background events", wod->notify_event, _notify_event_changed_cb);
|
||||
}
|
||||
|
||||
// popup
|
||||
const char *_popup_content_type[] =
|
||||
{
|
||||
|
@ -682,6 +693,7 @@ widget_option_content_update(Widget_Type type)
|
|||
WIDGET_OPTION(entry, ETV_ID_ENTRY)
|
||||
WIDGET_OPTION(gengrid, ETV_ID_GENGRID)
|
||||
WIDGET_OPTION(genlist, ETV_ID_GENLIST)
|
||||
WIDGET_OPTION(notify, ETV_ID_NOTIFY)
|
||||
WIDGET_OPTION(popup, ETV_ID_POPUP)
|
||||
WIDGET_OPTION(progressbar, ETV_ID_PROGRESSBAR)
|
||||
WIDGET_OPTION(radio, ETV_ID_RADIO)
|
||||
|
|
|
@ -36,6 +36,9 @@ struct _Widget_Option_Data
|
|||
int genlist_text_len; // short (0), middle (1), long (2)
|
||||
int genlist_content_type; // icon (0), check (1), button (2)
|
||||
|
||||
// notify
|
||||
Eina_Bool notify_event : 1; // disallow events(0), allow events (1)
|
||||
|
||||
// popup
|
||||
int pop_content_type; // content: short text (0), long text (1), button (2) and etc.
|
||||
int pop_button; // number of popup buttons (1 ~ 3)
|
||||
|
|
Loading…
Reference in New Issue