princeamd pushed a commit to branch enlightenment-0.17.
commit bc99da4a2642490f4dfaf65c63e3366a74f8ce57
Author: Christopher Michael <[email protected]>
Date: Tue Feb 19 10:57:06 2013 +0000
Backport: 58b68ab :: Add private functions for setting monitor position and
resolution text.
Signed-off-by: Christopher Michael <[email protected]>
SVN revision: 84157
Signed-off-by: Deon Thomas <[email protected]>
---
src/modules/conf_randr/e_smart_monitor.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/src/modules/conf_randr/e_smart_monitor.c
b/src/modules/conf_randr/e_smart_monitor.c
index cf0b7a2..3372398 100644
--- a/src/modules/conf_randr/e_smart_monitor.c
+++ b/src/modules/conf_randr/e_smart_monitor.c
@@ -75,6 +75,8 @@ static void _e_smart_monitor_modes_fill(E_Smart_Data *sd);
static int _e_smart_monitor_modes_sort(const void *data1, const void *data2);
static void _e_smart_monitor_background_set(E_Smart_Data *sd, int dx, int dy);
static Eina_Bool _e_smart_monitor_background_update(void *data, int type
EINA_UNUSED, void *event);
+static void _e_smart_monitor_position_set(E_Smart_Data *sd, Evas_Coord x,
Evas_Coord y);
+static void _e_smart_monitor_resolution_set(E_Smart_Data *sd, Evas_Coord w,
Evas_Coord h);
/* external functions exposed by this widget */
Evas_Object *
@@ -570,3 +572,21 @@ _e_smart_monitor_background_update(void *data, int type
EINA_UNUSED, void *event
return ECORE_CALLBACK_PASS_ON;
}
+
+static void
+_e_smart_monitor_position_set(E_Smart_Data *sd, Evas_Coord x, Evas_Coord y)
+{
+ char buff[1024];
+
+ snprintf(buff, sizeof(buff), "%d + %d", x, y);
+ edje_object_part_text_set(sd->o_frame, "e.text.position", buff);
+}
+
+static void
+_e_smart_monitor_resolution_set(E_Smart_Data *sd, Evas_Coord w, Evas_Coord h)
+{
+ char buff[1024];
+
+ snprintf(buff, sizeof(buff), "%d x %d", w, h);
+ edje_object_part_text_set(sd->o_frame, "e.text.resolution", buff);
+}
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev