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);
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,
+++ /dev/null
-/*
- * 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 <efl_extension.h>
-#include <app.h>
-
-#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);
-}
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__ */