summaryrefslogtreecommitdiff
path: root/src/lib/elm_diskselector.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elm_diskselector.c')
-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));