summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-03-17 13:16:53 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-03-17 15:15:25 -0400
commit9c4956082a308b45e4f244a02fc67634dcd14616 (patch)
treeabd8bc769ecbf96d729b5214cd166703ed9cbee0
parentea84ae576fb44bad8488f9d1c54576dae5e4a649 (diff)
ecore-evas: handle title_set and name_class_set for buffer engine
-rw-r--r--src/lib/ecore_evas/ecore_evas_buffer.c31
1 files changed, 29 insertions, 2 deletions
diff --git a/src/lib/ecore_evas/ecore_evas_buffer.c b/src/lib/ecore_evas/ecore_evas_buffer.c
index ca84ebe57c..a7e52db2b2 100644
--- a/src/lib/ecore_evas/ecore_evas_buffer.c
+++ b/src/lib/ecore_evas/ecore_evas_buffer.c
@@ -111,6 +111,33 @@ _ecore_evas_show(Ecore_Evas *ee)
111 _ecore_evas_focus_device_set(ee, NULL, EINA_TRUE); 111 _ecore_evas_focus_device_set(ee, NULL, EINA_TRUE);
112} 112}
113 113
114static void
115_ecore_evas_buffer_title_set(Ecore_Evas *ee, const char *t)
116{
117 if (eina_streq(ee->prop.title, t)) return;
118 if (ee->prop.title) free(ee->prop.title);
119 ee->prop.title = NULL;
120 if (!t) return;
121 ee->prop.title = strdup(t);
122}
123
124static void
125_ecore_evas_buffer_name_class_set(Ecore_Evas *ee, const char *n, const char *c)
126{
127 if (!eina_streq(n, ee->prop.name))
128 {
129 free(ee->prop.name);
130 ee->prop.name = NULL;
131 if (n) ee->prop.name = strdup(n);
132 }
133 if (!eina_streq(c, ee->prop.clas))
134 {
135 free(ee->prop.clas);
136 ee->prop.clas = NULL;
137 if (c) ee->prop.clas = strdup(c);
138 }
139}
140
114static int 141static int
115_ecore_evas_buffer_render(Ecore_Evas *ee) 142_ecore_evas_buffer_render(Ecore_Evas *ee)
116{ 143{
@@ -573,8 +600,8 @@ static Ecore_Evas_Engine_Func _ecore_buffer_engine_func =
573 NULL, 600 NULL,
574 NULL, 601 NULL,
575 NULL, 602 NULL,
576 NULL, 603 _ecore_evas_buffer_title_set,
577 NULL, 604 _ecore_evas_buffer_name_class_set,
578 NULL, 605 NULL,
579 NULL, 606 NULL,
580 NULL, 607 NULL,