summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-08-15 11:13:12 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-08-16 10:58:51 -0400
commit3271efaba44ec1efc5b1a3ddbd55b3dacb7bc1f1 (patch)
tree637c7df8a035d5e90d345c22d64eb2d35250c216
parentb6759a8c272cabb4c8734dd4016c1d482ac20a9c (diff)
downloadenlightenment-3271efaba44ec1efc5b1a3ddbd55b3dacb7bc1f1.tar.gz
capture zone for newly-added bryces based on name
the last number is always the zone number
-rw-r--r--src/bin/e_bryce.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/e_bryce.c b/src/bin/e_bryce.c
index e253a7fc66..5387466a47 100644
--- a/src/bin/e_bryce.c
+++ b/src/bin/e_bryce.c
@@ -1052,10 +1052,13 @@ E_API Evas_Object *
e_bryce_add(Evas_Object *parent, const char *name, E_Gadget_Site_Orient orient, E_Gadget_Site_Anchor an)
{
Bryce *b;
+ const char *z;
b = E_NEW(Bryce, 1);
b->size = 48;
b->name = eina_stringshare_add(name);
+ z = strrchr(name, '_');
+ b->zone = strtoul(z + 1, NULL, 10);
b->anchor = an;
b->orient = orient;
b->layer = DEFAULT_LAYER;