summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJee-Yong Um <jc9.um@samsung.com>2015-12-24 13:46:17 +0900
committerHermet Park <hermet@hermet.pe.kr>2015-12-24 13:46:17 +0900
commitec5cf083566c2e6773fb6e626121df7e344d852e (patch)
tree672ad833b0406b9083c7ec416a3977f3c233bb3e
parentb8e15ef9d9819759c2724fe712b0b32188f8cd44 (diff)
elm: fix the default value for size_hint_min
Summary: The default value of size_hint_min is 0, but in sizing_eval of some elm widgets, default min value is set to -1. Reviewers: cedric, Hermet Reviewed By: Hermet Subscribers: Hermet Differential Revision: https://phab.enlightenment.org/D3451
-rw-r--r--src/lib/elc_naviframe.c2
-rw-r--r--src/lib/elm_mapbuf.c2
-rw-r--r--src/lib/elm_panel.c2
-rw-r--r--src/lib/elm_photo.c2
-rw-r--r--src/lib/elm_photocam.c2
-rw-r--r--src/lib/elm_table.c2
-rw-r--r--src/lib/elm_video.c2
7 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c
index 541a221ab..dd53d8747 100644
--- a/src/lib/elc_naviframe.c
+++ b/src/lib/elc_naviframe.c
@@ -925,7 +925,7 @@ _elm_naviframe_item_elm_widget_item_signal_emit(Eo *eo_it EINA_UNUSED,
925EOLIAN static void 925EOLIAN static void
926_elm_naviframe_elm_layout_sizing_eval(Eo *obj, Elm_Naviframe_Data *sd) 926_elm_naviframe_elm_layout_sizing_eval(Eo *obj, Elm_Naviframe_Data *sd)
927{ 927{
928 Evas_Coord minw = -1, minh = -1; 928 Evas_Coord minw = 0, minh = 0;
929 Elm_Naviframe_Item_Data *it, *top; 929 Elm_Naviframe_Item_Data *it, *top;
930 Evas_Coord x, y, w, h; 930 Evas_Coord x, y, w, h;
931 931
diff --git a/src/lib/elm_mapbuf.c b/src/lib/elm_mapbuf.c
index 12dfb7968..3d7ef6a7d 100644
--- a/src/lib/elm_mapbuf.c
+++ b/src/lib/elm_mapbuf.c
@@ -18,7 +18,7 @@
18static void 18static void
19_sizing_eval(Evas_Object *obj) 19_sizing_eval(Evas_Object *obj)
20{ 20{
21 Evas_Coord minw = -1, minh = -1; 21 Evas_Coord minw = 0, minh = 0;
22 Evas_Coord maxw = -1, maxh = -1; 22 Evas_Coord maxw = -1, maxh = -1;
23 23
24 ELM_MAPBUF_DATA_GET(obj, sd); 24 ELM_MAPBUF_DATA_GET(obj, sd);
diff --git a/src/lib/elm_panel.c b/src/lib/elm_panel.c
index a0f84163c..2492eb4bc 100644
--- a/src/lib/elm_panel.c
+++ b/src/lib/elm_panel.c
@@ -51,7 +51,7 @@ _mirrored_set(Evas_Object *obj,
51EOLIAN static void 51EOLIAN static void
52_elm_panel_elm_layout_sizing_eval(Eo *obj, Elm_Panel_Data *sd) 52_elm_panel_elm_layout_sizing_eval(Eo *obj, Elm_Panel_Data *sd)
53{ 53{
54 Evas_Coord mw = -1, mh = -1; 54 Evas_Coord mw = 0, mh = 0;
55 55
56 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); 56 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
57 57
diff --git a/src/lib/elm_photo.c b/src/lib/elm_photo.c
index e91149b23..df3615404 100644
--- a/src/lib/elm_photo.c
+++ b/src/lib/elm_photo.c
@@ -27,7 +27,7 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
27static void 27static void
28_sizing_eval(Evas_Object *obj) 28_sizing_eval(Evas_Object *obj)
29{ 29{
30 Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1; 30 Evas_Coord minw = 0, minh = 0, maxw = -1, maxh = -1;
31 double scale; 31 double scale;
32 32
33 ELM_PHOTO_DATA_GET(obj, sd); 33 ELM_PHOTO_DATA_GET(obj, sd);
diff --git a/src/lib/elm_photocam.c b/src/lib/elm_photocam.c
index b2bc793d3..991de5a32 100644
--- a/src/lib/elm_photocam.c
+++ b/src/lib/elm_photocam.c
@@ -104,7 +104,7 @@ _photocam_image_file_set(Evas_Object *obj, Elm_Photocam_Data *sd)
104static void 104static void
105_sizing_eval(Evas_Object *obj) 105_sizing_eval(Evas_Object *obj)
106{ 106{
107 Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1; 107 Evas_Coord minw = 0, minh = 0, maxw = -1, maxh = -1;
108 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); 108 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
109 109
110 evas_object_size_hint_max_get 110 evas_object_size_hint_max_get
diff --git a/src/lib/elm_table.c b/src/lib/elm_table.c
index ed1a9061e..c86ed36ea 100644
--- a/src/lib/elm_table.c
+++ b/src/lib/elm_table.c
@@ -121,7 +121,7 @@ _elm_table_elm_widget_theme_apply(Eo *obj, void *sd EINA_UNUSED)
121static void 121static void
122_sizing_eval(Evas_Object *obj) 122_sizing_eval(Evas_Object *obj)
123{ 123{
124 Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1; 124 Evas_Coord minw = 0, minh = 0, maxw = -1, maxh = -1;
125 Evas_Coord w, h; 125 Evas_Coord w, h;
126 126
127 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); 127 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
diff --git a/src/lib/elm_video.c b/src/lib/elm_video.c
index a855938be..5766e69f4 100644
--- a/src/lib/elm_video.c
+++ b/src/lib/elm_video.c
@@ -144,7 +144,7 @@ _elm_video_elm_layout_sizing_eval(Eo *obj, Elm_Video_Data *sd)
144{ 144{
145 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); 145 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
146 146
147 Evas_Coord minw = -1, minh = -1; 147 Evas_Coord minw = 0, minh = 0;
148 Evas_Coord w = 0, h = 0; 148 Evas_Coord w = 0, h = 0;
149 149
150 evas_object_size_hint_request_get(sd->emotion, &minw, &minh); 150 evas_object_size_hint_request_get(sd->emotion, &minw, &minh);