ecore-evas-drm: Add support for setting the title of the ecore_evas

@feature: This adds support for setting the title of the ecore_evas
with ecore_evas_title_set

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-03-18 10:33:38 +00:00
parent d42f16a603
commit 69adb7a44e
1 changed files with 10 additions and 1 deletions

View File

@ -38,6 +38,7 @@ static void _ecore_evas_drm_move_resize(Ecore_Evas *ee, int x, int y, int w, int
static void _ecore_evas_drm_rotation_set(Ecore_Evas *ee, int rotation, int resize);
static void _ecore_evas_drm_show(Ecore_Evas *ee);
static void _ecore_evas_drm_hide(Ecore_Evas *ee);
static void _ecore_evas_drm_title_set(Ecore_Evas *ee, const char *title);
static int _ecore_evas_drm_render(Ecore_Evas *ee);
static void _ecore_evas_drm_render_updates(void *data, Evas *evas EINA_UNUSED, void *event);
static int _ecore_evas_drm_render_updates_process(Ecore_Evas *ee, Eina_List *updates);
@ -74,7 +75,7 @@ static Ecore_Evas_Engine_Func _ecore_evas_drm_engine_func =
NULL, //void (*fn_raise) (Ecore_Evas *ee);
NULL, //void (*fn_lower) (Ecore_Evas *ee);
NULL, //void (*fn_activate) (Ecore_Evas *ee);
NULL, //void (*fn_title_set) (Ecore_Evas *ee, const char *t);
_ecore_evas_drm_title_set,
NULL, //void (*fn_name_class_set) (Ecore_Evas *ee, const char *n, const char *c);
NULL, //void (*fn_size_min_set) (Ecore_Evas *ee, int w, int h);
NULL, //void (*fn_size_max_set) (Ecore_Evas *ee, int w, int h);
@ -468,6 +469,14 @@ _ecore_evas_drm_hide(Ecore_Evas *ee)
if (ee->func.fn_hide) ee->func.fn_hide(ee);
}
static void
_ecore_evas_drm_title_set(Ecore_Evas *ee, const char *title)
{
if (ee->prop.title) free(ee->prop.title);
ee->prop.title = NULL;
if (title) ee->prop.title = strdup(title);
}
static int
_ecore_evas_drm_render(Ecore_Evas *ee)
{