devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=41a74fda94321b2164c1048b6465a1f69aad6b69
commit 41a74fda94321b2164c1048b6465a1f69aad6b69 Author: Chris Michael <cp.mich...@samsung.com> Date: Mon Sep 28 09:47:59 2015 -0400 ecore-wl2: Add API function to set window title Signed-off-by: Chris Michael <cp.mich...@samsung.com> --- src/lib/ecore_wl2/Ecore_Wl2.h | 3 +++ src/lib/ecore_wl2/ecore_wl2_window.c | 14 ++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h index 2330af6..fe5731a 100644 --- a/src/lib/ecore_wl2/Ecore_Wl2.h +++ b/src/lib/ecore_wl2/Ecore_Wl2.h @@ -403,6 +403,9 @@ EAPI Eina_Bool ecore_wl2_window_fullscreen_get(Ecore_Wl2_Window *window); /* TODO: doxy */ EAPI void ecore_wl2_window_rotation_set(Ecore_Wl2_Window *window, int rotation); +/* TODO: doxy */ +EAPI void ecore_wl2_window_title_set(Ecore_Wl2_Window *window, const char *title); + /* # ifdef __cplusplus */ /* } */ /* # endif */ diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c index 71a7b02..0e1e527 100644 --- a/src/lib/ecore_wl2/ecore_wl2_window.c +++ b/src/lib/ecore_wl2/ecore_wl2_window.c @@ -611,3 +611,17 @@ ecore_wl2_window_rotation_set(Ecore_Wl2_Window *window, int rotation) window->rotation = rotation; } + +EAPI void +ecore_wl2_window_title_set(Ecore_Wl2_Window *window, const char *title) +{ + EINA_SAFETY_ON_NULL_RETURN(window); + + eina_stringshare_replace(&window->title, title); + if (!window->title) return; + + if (window->xdg_surface) + xdg_surface_set_title(window->xdg_surface, window->title); + else if (window->wl_shell_surface) + wl_shell_surface_set_title(window->wl_shell_surface, window->title); +} --