princeamd pushed a commit to branch enlightenment-0.17.
commit 14a8acad61acbf20b3c7a6bfd36f1492b8a6bb39
Author: Christopher Michael <[email protected]>
Date: Wed Feb 27 12:01:25 2013 +0000
Backport: eca3475 :: Fix incorrect monitor position text on some startup
cases.
When we call "grid_set" (as a result of the grid object moving or
resizing), we should update the monitor position text.
Signed-off-by: Christopher Michael <[email protected]>
Signed-off-by: Deon Thomas <[email protected]>
---
src/modules/conf_randr/e_smart_monitor.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/modules/conf_randr/e_smart_monitor.c
b/src/modules/conf_randr/e_smart_monitor.c
index d3814fe..de9c6f6 100644
--- a/src/modules/conf_randr/e_smart_monitor.c
+++ b/src/modules/conf_randr/e_smart_monitor.c
@@ -399,6 +399,12 @@ e_smart_monitor_grid_set(Evas_Object *obj, Evas_Object
*grid, Evas_Coord gx, Eva
sd->grid.y = gy;
sd->grid.w = gw;
sd->grid.h = gh;
+
+ /* set monitor position text */
+ _e_smart_monitor_position_set(sd, sd->current.x, sd->current.y);
+
+ evas_object_grid_pack(sd->grid.obj, obj, sd->current.x,
+ sd->current.y, sd->current.w, sd->current.h);
}
void
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev