aboutsummaryrefslogtreecommitdiffstats
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
parenttheme: make bryce vertical clipping work as expected (diff)
downloadefl-9c4956082a308b45e4f244a02fc67634dcd14616.tar.gz
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)
_ecore_evas_focus_device_set(ee, NULL, EINA_TRUE);
}
+static void
+_ecore_evas_buffer_title_set(Ecore_Evas *ee, const char *t)
+{
+ if (eina_streq(ee->prop.title, t)) return;
+ if (ee->prop.title) free(ee->prop.title);
+ ee->prop.title = NULL;
+ if (!t) return;
+ ee->prop.title = strdup(t);
+}
+
+static void
+_ecore_evas_buffer_name_class_set(Ecore_Evas *ee, const char *n, const char *c)
+{
+ if (!eina_streq(n, ee->prop.name))
+ {
+ free(ee->prop.name);
+ ee->prop.name = NULL;
+ if (n) ee->prop.name = strdup(n);
+ }
+ if (!eina_streq(c, ee->prop.clas))
+ {
+ free(ee->prop.clas);
+ ee->prop.clas = NULL;
+ if (c) ee->prop.clas = strdup(c);
+ }
+}
+
static int
_ecore_evas_buffer_render(Ecore_Evas *ee)
{
@@ -573,8 +600,8 @@ static Ecore_Evas_Engine_Func _ecore_buffer_engine_func =
NULL,
NULL,
NULL,
- NULL,
- NULL,
+ _ecore_evas_buffer_title_set,
+ _ecore_evas_buffer_name_class_set,
NULL,
NULL,
NULL,