From: cnook <kimcinoo@gmail.com>
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 29 Jul 2011 06:47:45 +0000 (06:47 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 29 Jul 2011 06:47:45 +0000 (06:47 +0000)
Subject: [E-devel] [Patch] elm_diskselector

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.

also with fixes from me to not do silly things with parent geometry.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@61883 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_diskselector.c

index ffe7836..da8416d 100644 (file)
@@ -153,7 +153,6 @@ static void
 _theme_data_get(Widget_Data *wd)
 {
    const char* str;
-   Evas_Object *parent;
    str = edje_object_data_get(wd->right_blank, "len_threshold");
    if (str) wd->len_threshold = MAX(0, atoi(str));
    else wd->len_threshold = 0;
@@ -167,12 +166,7 @@ _theme_data_get(Widget_Data *wd)
 
    str = edje_object_data_get(wd->right_blank, "min_width");
    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);
-     }
+   else wd->minw = -1;
 
    str = edje_object_data_get(wd->right_blank, "min_height");
    if (str) wd->minh = MAX(-1, atoi(str));