Hi All,
I have attached elm_diskselector patch for resolving dynamic theme change
issue.
Previously, the item label did not display when them theme had changed while
elm_diskselector displayed.
Sincerely,
Shinwoo Kim.
Index: src/lib/elm_diskselector.c
===================================================================
--- src/lib/elm_diskselector.c (revision 61687)
+++ src/lib/elm_diskselector.c (working copy)
@@ -15,6 +15,7 @@
struct _Widget_Data
{
+ Evas_Object *parent;
Evas_Object *self;
Evas_Object *scroller;
Evas_Object *main_box;
@@ -169,9 +170,8 @@
if (str) wd->minw = MAX(-1, atoi(str));
else
{
- parent = elm_widget_parent_widget_get(wd->self);
- if (!parent) wd->minw = -1;
- else evas_object_geometry_get(parent, NULL, NULL, &wd->minw, NULL);
+ if (!wd->parent) wd->minw = -1;
+ else evas_object_geometry_get(wd->parent, NULL, NULL, &wd->minw, NULL);
}
str = edje_object_data_get(wd->right_blank, "min_height");
@@ -274,6 +274,7 @@
{
_elm_theme_object_set(obj, it->base.view, "diskselector", "item",
elm_widget_style_get(obj));
+ edje_object_part_text_set(it->base.view, "elm.text", it->label);
}
}
else
@@ -282,6 +283,7 @@
{
_elm_theme_object_set(obj, it->base.view, "diskselector", "item",
elm_widget_style_get(obj));
+ edje_object_part_text_set(it->base.view, "elm.text", it->label);
}
}
_elm_theme_object_set(obj, wd->right_blank, "diskselector", "item",
@@ -772,6 +774,7 @@
elm_widget_on_focus_hook_set(obj, _on_focus_hook, NULL);
elm_widget_event_hook_set(obj, _event_hook);
+ wd->parent = parent;
wd->self = obj;
wd->item_count = 0;
wd->round = EINA_FALSE;
------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide. Store less, Store more with what you own, Move data to
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel