diff options
author | Daniel Juyung Seo <seojuyung2@gmail.com> | 2013-01-16 11:49:31 +0000 |
---|---|---|
committer | Daniel Juyung Seo <seojuyung2@gmail.com> | 2013-01-16 11:49:31 +0000 |
commit | e52a6f9eef18ab649dd680a1dd88b32dee328019 (patch) | |
tree | 76e89aba7212b398f9bf07e886f46a1320915109 | |
parent | 3c1415f7a14a0d07b209e1ab3e43a5135d828866 (diff) |
elm thumb: Fixed thumb theme hook.
SVN revision: 82882
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | src/lib/elm_thumb.c | 20 |
3 files changed, 24 insertions, 0 deletions
@@ -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 | ||
923 | 2013-01-16 Daniel Juyung Seo (SeoZ) | ||
924 | |||
925 | * Fix thumb theme hook. | ||
@@ -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 | ||
129 | Removals: | 130 | Removals: |
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 | ||
523 | static 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 | |||
523 | EAPI Eina_Bool | 541 | EAPI Eina_Bool |
524 | elm_need_ethumb(void) | 542 | elm_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), |