aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2018-03-29 09:53:05 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-08-02 09:53:50 -0400
commit25c2f3ab5c58c1e07b935f63474db7efd8f5b898 (patch)
tree289e75ef3c0c66ff0edd60c7ba2c8ad5c28903d6
parente mouse bindings - fix wheel conflict check to check only dir 0 (diff)
downloadenlightenment-25c2f3ab5c58c1e07b935f63474db7efd8f5b898.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);