projects
/
apps
/
core
/
preloaded
/
calculator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
dcf42e5
)
Merge "workaround: hardcoding size to display nicely on tizen/generic should be propo...
accepted/tizen_3.0.2014.q3_common
tizen_3.0.2014.q3_common
submit/tizen_common/20140528.164225
submit/tizen_mobile/20141120.000000
tizen_3.0.2014.q3_common_release
author
Dominig ar Foll
<dominig.arfoll@fridu.net>
Wed, 28 May 2014 16:39:42 +0000
(09:39 -0700)
committer
Gerrit Code Review
<gerrit@review.vlan103.tizen.org>
Wed, 28 May 2014 16:39:42 +0000
(09:39 -0700)
src/calc-main.c
patch
|
blob
|
history
diff --git
a/src/calc-main.c
b/src/calc-main.c
index
dd54fff
..
2561237
100644
(file)
--- a/
src/calc-main.c
+++ b/
src/calc-main.c
@@
-49,6
+49,10
@@
Evas_Object *load_edj(Evas_Object * parent, const char *file, const char *group)
}
evas_object_size_hint_weight_set(eo, EVAS_HINT_EXPAND,
EVAS_HINT_EXPAND);
+ {
+ static const int h=2*300,w=2*200;
+ evas_object_size_hint_min_set(eo, w, h);
+ }
}
CALC_FUN_END();
return eo;
@@
-237,6
+241,11
@@
static Evas_Object *_create_win(const char *name)
evas_object_smart_callback_add(eo, "delete,request", _win_del,
NULL);
elm_win_screen_size_get(eo, NULL, NULL, &w, &h);
+ {
+ h /=2;
+ int t = h * 3. / 4.;
+ w = ( t < w ) ? t : w;
+ }
evas_object_resize(eo, w, h);
}
CALC_FUN_END();