summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-11-18 10:56:47 -0800
committerCedric BAIL <cedric@osg.samsung.com>2016-11-18 10:56:47 -0800
commite317099426f4f0e83ef37bb3622564c634bdde41 (patch)
tree570bf15d08d002789681bdf01cf2321ae60a9520
parent3f2881a458ebdbc10e0dd233982ea2207085922c (diff)
elm/calendar: fix legacy API use.
-rw-r--r--src/lib/elementary/elm_calendar.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_calendar.c b/src/lib/elementary/elm_calendar.c
index 587f9935b0..b0fcc580b7 100644
--- a/src/lib/elementary/elm_calendar.c
+++ b/src/lib/elementary/elm_calendar.c
@@ -1715,8 +1715,13 @@ _elm_calendar_interval_get(Eo *obj EINA_UNUSED, Elm_Calendar_Data *sd)
1715} 1715}
1716 1716
1717EAPI void 1717EAPI void
1718_elm_calendar_min_max_year_set(Eo *obj, Elm_Calendar_Data *sd, int min, int max) 1718elm_calendar_min_max_year_set(Elm_Calendar *obj, int min, int max)
1719{ 1719{
1720 Elm_Calendar_Data *sd;
1721
1722 if (!efl_isa(obj, ELM_CALENDAR_CLASS)) return ;
1723 sd = efl_data_scope_get(obj, ELM_CALENDAR_CLASS);
1724
1720 min -= 1900; 1725 min -= 1900;
1721 max -= 1900; 1726 max -= 1900;
1722 if ((sd->date_min.tm_year == min) && (sd->date_max.tm_year == max)) return; 1727 if ((sd->date_min.tm_year == min) && (sd->date_max.tm_year == max)) return;
@@ -1739,8 +1744,13 @@ _elm_calendar_min_max_year_set(Eo *obj, Elm_Calendar_Data *sd, int min, int max)
1739} 1744}
1740 1745
1741EAPI void 1746EAPI void
1742_elm_calendar_min_max_year_get(Eo *obj EINA_UNUSED, Elm_Calendar_Data *sd, int *min, int *max) 1747elm_calendar_min_max_year_get(const Elm_Calendar *obj, int *min, int *max)
1743{ 1748{
1749 Elm_Calendar_Data *sd;
1750
1751 if (!efl_isa(obj, ELM_CALENDAR_CLASS)) return ;
1752 sd = efl_data_scope_get(obj, ELM_CALENDAR_CLASS);
1753
1744 if (min) *min = sd->date_min.tm_year + 1900; 1754 if (min) *min = sd->date_min.tm_year + 1900;
1745 if (max) *max = sd->date_max.tm_year + 1900; 1755 if (max) *max = sd->date_max.tm_year + 1900;
1746} 1756}