EINA_SAFETY_ON_NULL_RETURN(obj);
wd = e_widget_data_get(check);
EINA_SAFETY_ON_NULL_RETURN(wd);
+ if (wd->valptr)
+ e_widget_disabled_set(obj, *wd->valptr);
evas_object_event_callback_add(obj, EVAS_CALLBACK_DEL, _extern_obj_enable_del, wd);
wd->widgets_enable = eina_list_append(wd->widgets_enable, obj);
}
EINA_SAFETY_ON_NULL_RETURN(obj);
wd = e_widget_data_get(check);
EINA_SAFETY_ON_NULL_RETURN(wd);
+ if (wd->valptr)
+ e_widget_disabled_set(obj, !(*wd->valptr));
evas_object_event_callback_add(obj, EVAS_CALLBACK_DEL, _extern_obj_disable_del, wd);
wd->widgets_disable = eina_list_append(wd->widgets_disable, obj);
}
ob = e_widget_check_add(evas, _("Slide pointer to a new window which is focused"),
&(cfdata->pointer_slide));
e_widget_framelist_object_append(of, ob);
- e_widget_disabled_set(ob, cfdata->disable_all_pointer_warps);
e_widget_check_widget_disable_on_checked_add(obp, ob);
ob = e_widget_label_add(evas, _("Warp speed"));
e_widget_check_widget_disable_on_checked_add(obp, ob);
- e_widget_disabled_set(ob, cfdata->disable_all_pointer_warps);
e_widget_framelist_object_append(of, ob);
ob = e_widget_slider_add(evas, 1, 0, _("%1.2f"), 0.0, 1.0, 0.01, 0,
&(cfdata->pointer_warp_speed), NULL, 100);
- e_widget_disabled_set(ob, cfdata->disable_all_pointer_warps);
e_widget_check_widget_disable_on_checked_add(obp, ob);
e_widget_framelist_object_append(of, ob);
e_widget_list_object_append(ol, of, 1, 0, 0.5);