summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcnook <kimcinoo@gmail.com>2011-07-29 06:47:45 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-07-29 06:47:45 +0000
commitbffa681e4aa7b971d51aa4d74eba4be1a0c9c3c8 (patch)
treeabaf1eb6a5fadd3a4c1547d440c16ab6bd4b025b
parent58b02304fb5bbbb48c14ac7ff130290fc746bd0e (diff)
From: cnook <kimcinoo@gmail.com>
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. SVN revision: 61883
-rw-r--r--src/lib/elm_diskselector.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/elm_diskselector.c b/src/lib/elm_diskselector.c
index ffe7836f1..da8416d1a 100644
--- a/src/lib/elm_diskselector.c
+++ b/src/lib/elm_diskselector.c
@@ -153,7 +153,6 @@ static void
153_theme_data_get(Widget_Data *wd) 153_theme_data_get(Widget_Data *wd)
154{ 154{
155 const char* str; 155 const char* str;
156 Evas_Object *parent;
157 str = edje_object_data_get(wd->right_blank, "len_threshold"); 156 str = edje_object_data_get(wd->right_blank, "len_threshold");
158 if (str) wd->len_threshold = MAX(0, atoi(str)); 157 if (str) wd->len_threshold = MAX(0, atoi(str));
159 else wd->len_threshold = 0; 158 else wd->len_threshold = 0;
@@ -167,12 +166,7 @@ _theme_data_get(Widget_Data *wd)
167 166
168 str = edje_object_data_get(wd->right_blank, "min_width"); 167 str = edje_object_data_get(wd->right_blank, "min_width");
169 if (str) wd->minw = MAX(-1, atoi(str)); 168 if (str) wd->minw = MAX(-1, atoi(str));
170 else 169 else wd->minw = -1;
171 {
172 parent = elm_widget_parent_widget_get(wd->self);
173 if (!parent) wd->minw = -1;
174 else evas_object_geometry_get(parent, NULL, NULL, &wd->minw, NULL);
175 }
176 170
177 str = edje_object_data_get(wd->right_blank, "min_height"); 171 str = edje_object_data_get(wd->right_blank, "min_height");
178 if (str) wd->minh = MAX(-1, atoi(str)); 172 if (str) wd->minh = MAX(-1, atoi(str));