diff options
author | Stephen 'Okra' Houston <smhouston88@gmail.com> | 2017-01-26 09:09:48 -0600 |
---|---|---|
committer | Stephen 'Okra' Houston <smhouston88@gmail.com> | 2017-01-26 09:09:48 -0600 |
commit | f1b0cfcdea44530db581463b941518cd4bfdd792 (patch) | |
tree | 4b3d35ecf69c466155fc4823dc0aedf3a8b9c7a4 | |
parent | 35e9501637e7e14e6508c0c8eebe8a2055fce2d7 (diff) | |
download | enlightenment-f1b0cfcdea44530db581463b941518cd4bfdd792.tar.gz |
Enlightenment - Sysinfo Netstatus Gadget - Use proper data passed to callback to avoid crash.
-rw-r--r-- | src/modules/sysinfo/netstatus/netstatus_config.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/sysinfo/netstatus/netstatus_config.c b/src/modules/sysinfo/netstatus/netstatus_config.c index 00b235ec90..9f8b7cea18 100644 --- a/src/modules/sysinfo/netstatus/netstatus_config.c +++ b/src/modules/sysinfo/netstatus/netstatus_config.c @@ -201,7 +201,7 @@ netstatus_configure(Instance *inst) E_ALIGN(o, 0, 0); elm_object_text_set(o, _("Fast (4 ticks)")); elm_box_pack_end(box, o); - evas_object_smart_callback_add(o, "changed", _poll_changed, inst); + evas_object_smart_callback_add(o, "changed", _poll_changed, nc); evas_object_show(o); group = o; @@ -212,7 +212,7 @@ netstatus_configure(Instance *inst) E_ALIGN(o, 0, 0); elm_object_text_set(o, _("Medium (8 ticks)")); elm_box_pack_end(box, o); - evas_object_smart_callback_add(o, "changed", _poll_changed, inst); + evas_object_smart_callback_add(o, "changed", _poll_changed, nc); evas_object_show(o); o = elm_radio_add(box); @@ -222,7 +222,7 @@ netstatus_configure(Instance *inst) E_ALIGN(o, 0, 0); elm_object_text_set(o, _("Normal (32 ticks)")); elm_box_pack_end(box, o); - evas_object_smart_callback_add(o, "changed", _poll_changed, inst); + evas_object_smart_callback_add(o, "changed", _poll_changed, nc); evas_object_show(o); o = elm_radio_add(box); @@ -231,7 +231,7 @@ netstatus_configure(Instance *inst) E_ALIGN(o, 0, 0); elm_object_text_set(o, _("Slow (64 ticks)")); elm_box_pack_end(box, o); - evas_object_smart_callback_add(o, "changed", _poll_changed, inst); + evas_object_smart_callback_add(o, "changed", _poll_changed, nc); evas_object_show(o); o = elm_radio_add(box); @@ -241,7 +241,7 @@ netstatus_configure(Instance *inst) E_ALIGN(o, 0, 0); elm_object_text_set(o, _("Very Slow (256 ticks)")); elm_box_pack_end(box, o); - evas_object_smart_callback_add(o, "changed", _poll_changed, inst); + evas_object_smart_callback_add(o, "changed", _poll_changed, nc); evas_object_show(o); switch(inst->cfg->netstatus.poll_interval) |