elm thumb: Fixed thumb theme hook.
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Wed, 16 Jan 2013 11:49:31 +0000 (11:49 +0000)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Wed, 16 Jan 2013 11:49:31 +0000 (11:49 +0000)
SVN revision: 82882

ChangeLog
NEWS
src/lib/elm_thumb.c

index 527e7da..1280d94 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 
         * 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.
 
+2013-01-16  Daniel Juyung Seo (SeoZ)
+
+           * Fix thumb theme hook.
diff --git a/NEWS b/NEWS
index d62e7c6..d7a7fcb 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -125,6 +125,7 @@ Fixes:
    * Fix omitting signal emission when customized text parts change the text.
    * Fix "changed" signal being sent twice in case of toggle style when check is clicked.
    * Fix index refill bug when autohide disabled.
+   * Fix thumb theme hook.
 
 Removals:
 
index c4c45e8..f6697bb 100644 (file)
@@ -520,6 +520,24 @@ _elm_thumb_dnd_cb(void *data __UNUSED__,
    return EINA_TRUE;
 }
 
+static void
+_elm_thumb_smart_theme(Eo *obj, void *_pd __UNUSED__, va_list *list)
+{
+   Eina_Bool *ret = va_arg(*list, Eina_Bool *);
+   if (ret) *ret = EINA_FALSE;
+   Eina_Bool int_ret = EINA_FALSE;
+   Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS);
+
+   eo_do_super(obj, elm_wdg_theme(&int_ret));
+   if (!int_ret) return;
+
+   elm_layout_theme_set
+     (wd->resize_obj, "thumb", "base",
+     elm_widget_style_get(obj));
+
+   if (ret) *ret = EINA_TRUE;
+}
+
 EAPI Eina_Bool
 elm_need_ethumb(void)
 {
@@ -848,6 +866,8 @@ _class_constructor(Eo_Class *klass)
    const Eo_Op_Func_Description func_desc[] = {
         EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_CONSTRUCTOR), _constructor),
 
+        EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_THEME), _elm_thumb_smart_theme),
+
         EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_ADD), _elm_thumb_smart_add),
         EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_DEL), _elm_thumb_smart_del),
         EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_SHOW), _elm_thumb_smart_show),