summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2015-03-10 22:41:44 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2015-03-10 22:41:44 +0900
commit1cb2e7d43ad413f675cdc0b81562183e656b407e (patch)
tree38b41b915143db20e9a0b4263d9d89c45fb62db7
parentd18e0c938ad141a47b073ccaac82b62c3b336196 (diff)
elm: Clean up elm_win_resize_object_add caller.
- Do not need to call align_set for window resize object. - Call weight_set before adding an object to a window's resize object.
-rw-r--r--src/lib/elc_fileselector_button.c2
-rw-r--r--src/lib/elm_cnp.c2
-rw-r--r--src/lib/els_tooltip.c1
3 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/elc_fileselector_button.c b/src/lib/elc_fileselector_button.c
index 52b2a2a18..985c430e5 100644
--- a/src/lib/elc_fileselector_button.c
+++ b/src/lib/elc_fileselector_button.c
@@ -92,8 +92,8 @@ _new_window_add(Elm_Fileselector_Button_Data *sd)
92 evas_object_smart_callback_add(win, "delete,request", _selection_done, sd); 92 evas_object_smart_callback_add(win, "delete,request", _selection_done, sd);
93 93
94 bg = elm_bg_add(win); 94 bg = elm_bg_add(win);
95 elm_win_resize_object_add(win, bg);
96 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 95 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
96 elm_win_resize_object_add(win, bg);
97 evas_object_show(bg); 97 evas_object_show(bg);
98 98
99 evas_object_resize(win, sd->w, sd->h); 99 evas_object_resize(win, sd->w, sd->h);
diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index 5f15461a8..5096e4aea 100644
--- a/src/lib/elm_cnp.c
+++ b/src/lib/elm_cnp.c
@@ -2329,7 +2329,6 @@ _x11_elm_drag_start(Evas_Object *obj, Elm_Sel_Format format, const char *data,
2329 { 2329 {
2330 icon = elm_icon_add(dragwin); 2330 icon = elm_icon_add(dragwin);
2331 evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 2331 evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
2332 evas_object_size_hint_align_set(icon, EVAS_HINT_FILL, EVAS_HINT_FILL);
2333 // need to resize 2332 // need to resize
2334 } 2333 }
2335 elm_win_resize_object_add(dragwin, icon); 2334 elm_win_resize_object_add(dragwin, icon);
@@ -2982,7 +2981,6 @@ _wl_elm_drag_start(Evas_Object *obj, Elm_Sel_Format format EINA_UNUSED, const ch
2982 icon = elm_icon_add(dragwin); 2981 icon = elm_icon_add(dragwin);
2983 evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, 2982 evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND,
2984 EVAS_HINT_EXPAND); 2983 EVAS_HINT_EXPAND);
2985 evas_object_size_hint_align_set(icon, EVAS_HINT_FILL, EVAS_HINT_FILL);
2986 } 2984 }
2987 2985
2988 elm_win_resize_object_add(dragwin, icon); 2986 elm_win_resize_object_add(dragwin, icon);
diff --git a/src/lib/els_tooltip.c b/src/lib/els_tooltip.c
index 08cf9c9b6..6bf2b6dec 100644
--- a/src/lib/els_tooltip.c
+++ b/src/lib/els_tooltip.c
@@ -148,7 +148,6 @@ _elm_tooltip_show(Elm_Tooltip *tt)
148 tt->tt_evas = evas_object_evas_get(tt->tt_win); 148 tt->tt_evas = evas_object_evas_get(tt->tt_win);
149 tt->tooltip = edje_object_add(tt->tt_evas); 149 tt->tooltip = edje_object_add(tt->tt_evas);
150 evas_object_size_hint_weight_set(tt->tooltip, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 150 evas_object_size_hint_weight_set(tt->tooltip, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
151 evas_object_size_hint_align_set(tt->tooltip, EVAS_HINT_FILL, EVAS_HINT_FILL);
152 elm_win_resize_object_add(tt->tt_win, tt->tooltip); 151 elm_win_resize_object_add(tt->tt_win, tt->tooltip);
153 } 152 }
154 else 153 else