summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--NEWS1
-rw-r--r--src/lib/elm_thumb.c20
3 files changed, 24 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 527e7da04..1280d9426 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -920,3 +920,6 @@
920 920
921 * allocate conformant part dummy objects only when the swallow parts are existed actually. since these parts are really dependent on the platform, in most case they don't need all parts at the same time. 921 * allocate conformant part dummy objects only when the swallow parts are existed actually. since these parts are really dependent on the platform, in most case they don't need all parts at the same time.
922 922
9232013-01-16 Daniel Juyung Seo (SeoZ)
924
925 * Fix thumb theme hook.
diff --git a/NEWS b/NEWS
index d62e7c6e5..d7a7fcb42 100644
--- a/NEWS
+++ b/NEWS
@@ -125,6 +125,7 @@ Fixes:
125 * Fix omitting signal emission when customized text parts change the text. 125 * Fix omitting signal emission when customized text parts change the text.
126 * Fix "changed" signal being sent twice in case of toggle style when check is clicked. 126 * Fix "changed" signal being sent twice in case of toggle style when check is clicked.
127 * Fix index refill bug when autohide disabled. 127 * Fix index refill bug when autohide disabled.
128 * Fix thumb theme hook.
128 129
129Removals: 130Removals:
130 131
diff --git a/src/lib/elm_thumb.c b/src/lib/elm_thumb.c
index c4c45e8e6..f6697bb26 100644
--- a/src/lib/elm_thumb.c
+++ b/src/lib/elm_thumb.c
@@ -520,6 +520,24 @@ _elm_thumb_dnd_cb(void *data __UNUSED__,
520 return EINA_TRUE; 520 return EINA_TRUE;
521} 521}
522 522
523static void
524_elm_thumb_smart_theme(Eo *obj, void *_pd __UNUSED__, va_list *list)
525{
526 Eina_Bool *ret = va_arg(*list, Eina_Bool *);
527 if (ret) *ret = EINA_FALSE;
528 Eina_Bool int_ret = EINA_FALSE;
529 Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
530
531 eo_do_super(obj, elm_wdg_theme(&int_ret));
532 if (!int_ret) return;
533
534 elm_layout_theme_set
535 (wd->resize_obj, "thumb", "base",
536 elm_widget_style_get(obj));
537
538 if (ret) *ret = EINA_TRUE;
539}
540
523EAPI Eina_Bool 541EAPI Eina_Bool
524elm_need_ethumb(void) 542elm_need_ethumb(void)
525{ 543{
@@ -848,6 +866,8 @@ _class_constructor(Eo_Class *klass)
848 const Eo_Op_Func_Description func_desc[] = { 866 const Eo_Op_Func_Description func_desc[] = {
849 EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_CONSTRUCTOR), _constructor), 867 EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_CONSTRUCTOR), _constructor),
850 868
869 EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_THEME), _elm_thumb_smart_theme),
870
851 EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_ADD), _elm_thumb_smart_add), 871 EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_ADD), _elm_thumb_smart_add),
852 EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_DEL), _elm_thumb_smart_del), 872 EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_DEL), _elm_thumb_smart_del),
853 EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_SHOW), _elm_thumb_smart_show), 873 EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_SHOW), _elm_thumb_smart_show),