aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2018-03-29 09:53:05 -0400
committerChris Michael <cp.michael@samsung.com>2018-03-29 09:55:59 -0400
commitcac8cce54242afe26191532ade55a0ef488eb34d (patch)
tree0f4985f6a97ca882136c41fd168cdceed97df90b
parentwl-drm: remove old randr apply code (diff)
downloadenlightenment-cac8cce54242afe26191532ade55a0ef488eb34d.tar.gz
conf_randr: Use eina_stringshare_replace
Instead of deleteing a stringshare and re-adding it, just use eina_stringshare_replace Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/modules/conf_randr/e_int_config_randr2.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/conf_randr/e_int_config_randr2.c b/src/modules/conf_randr/e_int_config_randr2.c
index 1530c214a..e30cf08b8 100644
--- a/src/modules/conf_randr/e_int_config_randr2.c
+++ b/src/modules/conf_randr/e_int_config_randr2.c
@@ -571,12 +571,11 @@ _cb_rel_to_set(void *data, Evas_Object *obj, void *event)
E_Randr2_Screen *s = _screen_config_id_find(cs2->id);
if (s)
{
- printf("SEt to %p [%s]\n", cs, cs->id);
+ printf("Set to %p [%s]\n", cs, cs->id);
printf("find s = %p\n", s);
printf("s id = %s\n", s->id);
elm_object_text_set(obj, s->info.name);
- eina_stringshare_del(cs->rel_to);
- cs->rel_to = eina_stringshare_add(s->id);
+ eina_stringshare_replace(&cs->rel_to, s->id);
}
}
e_config_dialog_changed_set(cfdata->cfd, EINA_TRUE);