* If isn't required that users could select a day on calendar,
* only interacting going through months, disabling days selection
* could be a good idea to avoid confusion. For that:
- * @skipline elm_calendar_day_selection_enabled_set
+ * @skipline elm_calendar_day_selection_disabled_set
*
* Also, regarding days selection, you could be interested to set a
* date to be highlighted on calendar from your code, maybe when
* Periodicity is how frequently the mark will be displayed over the
* calendar. Can be a unique mark (that don't repeat), or it can repeat
* daily, weekly, monthly or annually. It's enumerated by
- * @c Elm_Calendar_Mark_Repeat.
+ * @c Elm_Calendar_Mark_Repeat_Type.
*
* So let's add some marks to our calendar. We will add christmas holiday,
* set Sundays as holidays, and check current day and day after that.
cal = elm_calendar_add(win);
evas_object_size_hint_weight_set(cal, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(cal, EVAS_HINT_FILL, EVAS_HINT_FILL);
- elm_calendar_day_selection_enabled_set(cal, EINA_FALSE);
+ elm_calendar_day_selection_disabled_set(cal, EINA_TRUE);
evas_object_show(cal);
elm_box_pack_end(bx, cal);
if (max) *max = wd->year_max + 1900;
}
-EINA_DEPRECATED EAPI void
-elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled)
-{
- elm_calendar_day_selection_disabled_set(obj, !enabled);
-}
-
EAPI void
elm_calendar_day_selection_disabled_set(Evas_Object *obj, Eina_Bool disabled)
{
_unselect(wd, wd->selected_it);
}
-EINA_DEPRECATED EAPI Eina_Bool
-elm_calendar_day_selection_enabled_get(const Evas_Object *obj)
-{
- return (!elm_calendar_day_selection_disabled_get(obj));
-}
-
EAPI Eina_Bool
elm_calendar_day_selection_disabled_get(const Evas_Object *obj)
{