From 4a98815eb3a32720cdf0be9881ca185cf211e86d Mon Sep 17 00:00:00 2001 From: Tomasz Jeschke Date: Wed, 6 Mar 2019 12:47:57 +0100 Subject: [PATCH] Remove unused source file - setting-common-draw-widget.cpp Change-Id: I839dac41f700053a29db99d9a6eceb882bfcbb39 --- src/setting-common-draw-genlist.cpp | 6 ++++-- src/setting-common-draw-widget.cpp | 32 -------------------------------- src/setting-common-draw-widget.h | 5 ++--- 3 files changed, 6 insertions(+), 37 deletions(-) delete mode 100644 src/setting-common-draw-widget.cpp diff --git a/src/setting-common-draw-genlist.cpp b/src/setting-common-draw-genlist.cpp index 8f75e9f..3199d53 100644 --- a/src/setting-common-draw-genlist.cpp +++ b/src/setting-common-draw-genlist.cpp @@ -165,7 +165,8 @@ static Evas_Object *__add_left_default(GenGroupItemData *item_data, if (SwallowType::ICON_IMAGE == item_data->swallow_type) { Evas_Object *icon = elm_icon_add(parent); - setting_decorate_image_RGBA(icon, 15, 41, 73, 255); + if (icon) + evas_object_color_set(icon, 15, 41, 73, 255); elm_image_file_set(icon, item_data->l_swallow_path.c_str(), NULL); evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1); @@ -174,7 +175,8 @@ static Evas_Object *__add_left_default(GenGroupItemData *item_data, Evas_Object *c = elm_image_add(parent); elm_image_file_set(c, item_data->l_swallow_path.c_str(), NULL); - setting_decorate_image_RGBA(c, 14, 41, 73, 255); + if (c) + evas_object_color_set(c, 14, 41, 73, 255); evas_object_size_hint_align_set(c, EVAS_HINT_FILL, EVAS_HINT_FILL); evas_object_size_hint_weight_set(c, EVAS_HINT_EXPAND, diff --git a/src/setting-common-draw-widget.cpp b/src/setting-common-draw-widget.cpp deleted file mode 100644 index 73f0cfb..0000000 --- a/src/setting-common-draw-widget.cpp +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2018 Samsung Electronics Co., Ltd - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "setting-common-draw-widget.h" -#include -#include - -#define DEMO_STEP 0.8 -typedef struct _setting_gif_data { - Ecore_Timer *update_timer; - const char **png_list; -} setting_gif_data; - -void -setting_decorate_image_RGBA(Evas_Object *obj, int r, int g, int b, int a) -{ - if (obj) - evas_object_color_set(obj, r, g, b, a); -} diff --git a/src/setting-common-draw-widget.h b/src/setting-common-draw-widget.h index ca2fbf7..0977344 100755 --- a/src/setting-common-draw-widget.h +++ b/src/setting-common-draw-widget.h @@ -49,10 +49,9 @@ GenGroupItemData *createGendialGroupItem( void *sel_data, SwallowType swallow_type, int chk_status, const std::string &keyStr, const std::string &sub_desc, SettingCallback chk_change_cb); +/* TODO remove setting_update_gl_item_chk_status after setting-common-draw-genlist.cpp is removed */ + extern void setting_update_gl_item_chk_status( GenGroupItemData *item_data, int status); -extern void setting_decorate_image_RGBA(Evas_Object *obj, int r, int g, int b, - int a); - #endif /* __SETTING_COMMON_DRAW_WIDGET_H__ */ -- 2.7.4