}
part {
name: "bg";
- mouse_events: 1;
type: RECT;
clip_to: "clipper";
scale: 1;
name: "icon";
type: SWALLOW;
scale: 1;
- mouse_events: 1;
clip_to: "clipper";
description {
state: "default" 0.0;
part {
name: "event";
type: RECT;
- mouse_events: 1;
- repeat_events: 1;
description {
state: "default" 0.0;
color: 0 0 0 0;
transition: ACCEL 0.4;
target: "bg";
}
- program {
- name: "clicked";
- signal: "mouse,clicked,1";
- source: "event";
- action: SIGNAL_EMIT "clicked" "";
- after: "effect_hide";
- }
- program {
- name: "effect_hide";
- signal: "effect,hide";
- source: "elm";
- action: STATE_SET "default" "0.0";
- transition: DECEL 0.4;
- target: "bg";
- after: "hide";
- }
- program {
- name: "hide";
- action: SIGNAL_EMIT "request,hide" "";
- }
}
}
}
name: NAME;\
type: SWALLOW;\
scale: 1;\
- mouse_events: 1;\
repeat_events: 1;\
description {\
state: "default" 0.0;\
name: NAME;\
type: SWALLOW;\
scale: 1;\
- mouse_events: 1;\
repeat_events: 1;\
description {\
state: "default" 0.0;\
name: "base";
type: RECT;
scale: 1;
- mouse_events: 1;
description {
state: "default" 0.0;
visible: 1;
target: "qp.handler.button";
target: "qp.handler.text";
}
- program {
- name: "handler.press";
- signal: "mouse,down,1";
- source: "qp.handler.bg";
- action: STATE_SET "pressed" 0.0;
- target: "qp.handler.bg";
- }
- program {
- name: "handler.release";
- signal: "mouse,up,1";
- source: "qp.handler.bg";
- action: STATE_SET "default" 0.0;
- target: "qp.handler.bg";
- }
}
}
name: "background";
type: SPACER;
scale: 1;
- mouse_events: 1;
description {
state: "default" 0.0;
}
name: "background.touch";
type: SWALLOW;
scale: 1;
- mouse_events:1;
description {
state: "default" 0.0;
fixed: 0 0;
type: SWALLOW;
scale: 1;
repeat_events: 1;
- mouse_events:1;
description {
state: "default" 0.0;
fixed: 0 0;
target: "qp.base.rect.setting";
target: "qp.base.setting.swallow";
}
- program {
- name: "background.touch";
- action: SIGNAL_EMIT "close.quickpanel" "";
- signal: "mouse,down,1";
- source: "background";
- }
}
}
}
return result;
}
-static void _noti_hide_cb(void *data, Evas_Object *obj, const char *emission, const char *source)
-{
- ticker_info_s *ticker_info = NULL;
-
- ret_if(!data);
-
- ticker_info = data;
-
- if (ticker_info->timer) {
- ecore_timer_del(ticker_info->timer);
- ticker_info->timer = NULL;
- }
-
- _destroy_ticker_noti(ticker_info);
-}
-
-static void _mouse_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
-{
- _noti_hide_cb(data, NULL, NULL, NULL);
-}
-
static void _content_changed_size_hints(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Evas_Coord h;
goto_if(ret == EINA_FALSE, ERROR);
- elm_object_signal_callback_add(detail, "request,hide", "", _noti_hide_cb, ticker_info);
- evas_object_event_callback_add(detail, EVAS_CALLBACK_MOUSE_DOWN, _mouse_down_cb, ticker_info);
evas_object_size_hint_min_set(detail, 1, noti_height);
_win_content_set(ad->ticker_win, detail);
{
struct appdata *ad = data;
+ if (ad->ticker_win) {
+ _D("Ticker already exists - it was created before quickpanel run");
+ return INDICATOR_ERROR_NONE;
+ }
+
ad->ticker_win = _create_ticker_window(NULL, ad);
retv_if(!ad->ticker_win, 0);