From: Hermet Park Date: Tue, 18 Sep 2018 11:14:53 +0000 (+0900) Subject: floatingbutton: remove vg debug code. X-Git-Tag: submit/tizen/20180919.084736~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3eb64a37966e8768cd0a5d15fceddf17b4d505b;p=platform%2Fcore%2Fuifw%2Fefl-ext.git floatingbutton: remove vg debug code. This does not helpful enough to leave code here. If you can't see floatingbutton, please just go inform to the maintainer. Change-Id: I3514254e469cdf65aa074df210d67f91524fc4b7 --- diff --git a/src/mobile/eext_floatingbutton.c b/src/mobile/eext_floatingbutton.c index 0cbfc48..1f1f2ff 100644 --- a/src/mobile/eext_floatingbutton.c +++ b/src/mobile/eext_floatingbutton.c @@ -43,7 +43,6 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = { {NULL, NULL} }; -#define EEXT_FLOATINGBUTTON_USE_VG 1 #define FLOATINGBUTTON_LAYOUT_LR_WIDTH 64 #define FLOATINGBUTTON_LR_WIDTH 50 #define FLOATINGBUTTON_MID_WIDTH 20 @@ -195,12 +194,10 @@ _vg_resize_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_inf evas_object_geometry_get(obj, &x, &y, &w, &h); -#if EEXT_FLOATINGBUTTON_USE_VG evas_vg_shape_reset(fbd->base_shape); evas_vg_shape_append_rect(fbd->base_shape, 0, 0, w, h, EEXT_SCALE_SIZE(FLOATINGBUTTON_LAYOUT_LR_WIDTH, fbd->obj), (EEXT_SCALE_SIZE(FLOATINGBUTTON_HEIGHT, fbd->obj)/2)); -#endif } static Eina_Bool @@ -521,17 +518,11 @@ _eext_floatingbutton_efl_object_constructor(Eo *obj, Eext_Floatingbutton_Data *s elm_layout_signal_callback_add(obj, "mouse,up,1", DRAGABLE_PART, _on_mouse_up, sd); elm_layout_signal_callback_add(obj, "mouse,move", DRAGABLE_PART, _on_mouse_move, sd); -#if EEXT_FLOATINGBUTTON_USE_VG sd->vg = evas_object_vg_add(evas_object_evas_get(obj)); Efl_VG *base_root = evas_vg_container_add(sd->vg); evas_object_vg_root_node_set(sd->vg, base_root); sd->base_shape = evas_vg_shape_add(base_root); evas_vg_node_color_set(sd->base_shape, 255, 255, 255, 255); -#else - sd->vg = evas_object_rectangle_add(evas_object_evas_get(obj)); - sd->base_shape = NULL; - evas_object_color_set(sd->vg, 255, 255, 255, 255); -#endif elm_layout_content_set(obj, "elm.swallow.vg", sd->vg); evas_object_event_callback_add(sd->vg, EVAS_CALLBACK_RESIZE, _vg_resize_cb, sd);