summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyuan Choi <ryuan.choi@gmail.com>2013-10-17 16:31:06 +0900
committerRyuan Choi <ryuan.choi@gmail.com>2013-10-17 16:34:15 +0900
commit73f7ec95bcc069fb38479983dd8d5722e0fffc90 (patch)
tree998eb0743a9926dd5a12764ed83fbf3874c6475f
parent5bba0feba91144e58d773be243b17e47f76e0e24 (diff)
elm_calendar: Reorder few members of _Elm_Calendar_Smart_Data to reduce size
After reordered, sizeof(Elm_Calendar_Smart_Data) is little bit reduced from 560 to 544 on 64bit system.
-rw-r--r--src/lib/elm_widget_calendar.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/elm_widget_calendar.h b/src/lib/elm_widget_calendar.h
index 8925c3bf5..f98e96f43 100644
--- a/src/lib/elm_widget_calendar.h
+++ b/src/lib/elm_widget_calendar.h
@@ -33,21 +33,23 @@ struct _Elm_Calendar_Smart_Data
33 double interval, first_interval; 33 double interval, first_interval;
34 int year_min, year_max, spin_speed; 34 int year_min, year_max, spin_speed;
35 int today_it, selected_it, first_day_it; 35 int today_it, selected_it, first_day_it;
36 Elm_Calendar_Weekday first_week_day;
37 Ecore_Timer *spin_month, *spin_year, *update_timer; 36 Ecore_Timer *spin_month, *spin_year, *update_timer;
38 Elm_Calendar_Format_Cb format_func; 37 Elm_Calendar_Format_Cb format_func;
39 const char *weekdays[ELM_DAY_LAST]; 38 const char *weekdays[ELM_DAY_LAST];
40 struct tm current_time, selected_time, shown_time; 39 struct tm current_time, selected_time, shown_time;
41 Day_Color day_color[42]; // EINA_DEPRECATED 40 Day_Color day_color[42]; // EINA_DEPRECATED
42 Elm_Calendar_Select_Mode select_mode;
43 Evas_Object *inc_btn_month_access; 41 Evas_Object *inc_btn_month_access;
44 Evas_Object *dec_btn_month_access; 42 Evas_Object *dec_btn_month_access;
45 Evas_Object *month_access; 43 Evas_Object *month_access;
46 Evas_Object *inc_btn_year_access; 44 Evas_Object *inc_btn_year_access;
47 Evas_Object *dec_btn_year_access; 45 Evas_Object *dec_btn_year_access;
48 Evas_Object *year_access; 46 Evas_Object *year_access;
49 Eina_Bool selected : 1; 47
48 Elm_Calendar_Weekday first_week_day;
49 Elm_Calendar_Select_Mode select_mode;
50 Elm_Calendar_Selectable selectable; 50 Elm_Calendar_Selectable selectable;
51
52 Eina_Bool selected : 1;
51 Eina_Bool double_spinners : 1; 53 Eina_Bool double_spinners : 1;
52}; 54};
53 55