projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bff5545
)
Fix forgotten attribution of max year on elm calendar widget
author
Bruno Dilly
<bdilly@profusion.mobi>
Wed, 5 Jan 2011 14:23:39 +0000
(14:23 +0000)
committer
Bruno Dilly
<bdilly@profusion.mobi>
Wed, 5 Jan 2011 14:23:39 +0000
(14:23 +0000)
This bug was always setting the displayed year to min year
when the function elm_calendar_min_max_set is called.
SVN revision: 55881
src/lib/elm_calendar.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_calendar.c
b/src/lib/elm_calendar.c
index
a4a8487
..
3c2ff39
100644
(file)
--- a/
src/lib/elm_calendar.c
+++ b/
src/lib/elm_calendar.c
@@
-901,6
+901,7
@@
elm_calendar_min_max_year_set(Evas_Object *obj, int min, int max)
max -= 1900;
if ((wd->year_min == min) && (wd->year_max == max)) return;
wd->year_min = min > 2 ? min : 2;
+ wd->year_max = max;
if (wd->selected_time.tm_year > wd->year_max)
wd->selected_time.tm_year = wd->year_max;
if (wd->selected_time.tm_year < wd->year_min)