add sandbox gadget event to indicate gadget configure

ref T6443
devs/discomfitor/quicklaunch
Mike Blumenkrantz 5 years ago
parent 8bd02aca70
commit c662eab434
  1. 10
      src/bin/e_gadget_loader.c
  2. 9
      src/bin/e_gadget_runner.c
  3. 1
      src/protocol/e-gadget.xml

@ -68,12 +68,22 @@ _gadget_removed(void *data, struct e_gadget *e_gadget EINA_UNUSED)
evas_object_smart_callback_call(win, "gadget_removed", NULL);
}
static void
_gadget_configure(void *data, struct e_gadget *e_gadget EINA_UNUSED)
{
Evas_Object *win;
win = eina_list_data_get(eina_hash_find(wins, &data));
evas_object_smart_callback_call(win, "gadget_configure", NULL);
}
static const struct e_gadget_listener _gadget_listener =
{
_gadget_anchor,
_gadget_orient,
_gadget_gravity,
_gadget_removed,
_gadget_configure,
};
static void

@ -398,7 +398,14 @@ static Evas_Object *
runner_gadget_configure(Evas_Object *g)
{
Instance *inst = evas_object_data_get(g, "runner");
return config_runner(inst->ci, e_comp_object_util_zone_get(g));
if (inst->ci->sandbox)
{
if (inst->gadget_resource)
e_gadget_send_gadget_configure(inst->gadget_resource);
return NULL;
}
else
return config_runner(inst->ci, e_comp_object_util_zone_get(g));
}
static void

@ -31,6 +31,7 @@
<arg name="gravity" type="uint" enum="gravity"/>
</event>
<event name="gadget_removed"/>
<event name="gadget_configure"/>
<request name="open_uri">
<arg name="uri" type="string"/>
</request>

Loading…
Cancel
Save