color: 0 0 0 0;
}
}
+ part {
+ name : "bg_for_event";
+ type : RECT;
+
+ description {
+ state : "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
part {
name : "bg";
action: STATE_SET "default" 0.0;
target: "bg";
}
+ program{
+ name: "volume_down_for_hide";
+ signal: "mouse,down,1";
+ source: "bg_for_event";
+ action: SIGNAL_EMIT "hide,volume" "hide";
+ }
}
}
}
//@TODO: need to check
volume_view_volume_icon_set(sound_type, sound, vibration, bt_opened);
+ volume_service_region_set(win, false);
+
return EINA_TRUE;
}
}
}
}
+static void _down_for_hide(void *data, Evas_Object *obj, const char* emission, const char* source)
+{
+ LOGD("Down for HIDE");
+
+ volume_control_hide_view();
+}
+
volume_error_e volume_view_layout_create(Evas_Object *win)
{
LOGD("Layout create");
view_info.slider = slider;
elm_object_part_content_set(ly_outer, "sw.slider", slider);
+ /* add callback for hide */
+ elm_object_signal_callback_add(ly_outer, "hide,volume", "hide", _down_for_hide, NULL);
+
return VOLUME_ERROR_OK;
}