aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/meeting-time-sel/e-meeting-time-sel.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-12-07 02:46:31 +0800
committerChris Lahey <clahey@src.gnome.org>2000-12-07 02:46:31 +0800
commita8463d6703469a525fc9192af521f5048e0957ae (patch)
tree86435b79ff5ace8fc7e1e0c74e319215074c0ae8 /widgets/meeting-time-sel/e-meeting-time-sel.c
parentc847cac2be25b11319d615dded3f71eee46cd60f (diff)
downloadgsoc2013-evolution-a8463d6703469a525fc9192af521f5048e0957ae.tar
gsoc2013-evolution-a8463d6703469a525fc9192af521f5048e0957ae.tar.gz
gsoc2013-evolution-a8463d6703469a525fc9192af521f5048e0957ae.tar.bz2
gsoc2013-evolution-a8463d6703469a525fc9192af521f5048e0957ae.tar.lz
gsoc2013-evolution-a8463d6703469a525fc9192af521f5048e0957ae.tar.xz
gsoc2013-evolution-a8463d6703469a525fc9192af521f5048e0957ae.tar.zst
gsoc2013-evolution-a8463d6703469a525fc9192af521f5048e0957ae.zip
Added a GalViewCollection argument to the new function here.
2000-12-06 Christopher James Lahey <clahey@helixcode.com> * menus/gal-view-menus.c, menus/gal-view-menus.h: Added a GalViewCollection argument to the new function here. From meeting-time-sel/ChangeLog: 2000-12-06 Christopher James Lahey <clahey@helixcode.com> * e-meeting-time-sel.c: Fixed a bunch of warnings. svn path=/trunk/; revision=6816
Diffstat (limited to 'widgets/meeting-time-sel/e-meeting-time-sel.c')
-rw-r--r--widgets/meeting-time-sel/e-meeting-time-sel.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/widgets/meeting-time-sel/e-meeting-time-sel.c b/widgets/meeting-time-sel/e-meeting-time-sel.c
index 0cb9e4e8b9..2130b14bc2 100644
--- a/widgets/meeting-time-sel/e-meeting-time-sel.c
+++ b/widgets/meeting-time-sel/e-meeting-time-sel.c
@@ -2421,7 +2421,7 @@ e_meeting_time_selector_recalc_date_format (EMeetingTimeSelector *mts)
23, 20, 17, 22, 19, 24 };
GDate date;
gint max_date_width, longest_weekday_width, longest_month_width, width;
- gint day, weekday, longest_weekday, month, longest_month;
+ gint day, longest_weekday, month, longest_month;
gchar buffer[128];
GdkFont *font;
@@ -2432,9 +2432,10 @@ e_meeting_time_selector_recalc_date_format (EMeetingTimeSelector *mts)
/* Find the biggest full weekday name. We start on a particular
Monday and go through seven days. */
- longest_weekday_width = 0;
g_date_clear (&date, 1);
g_date_set_dmy (&date, 3, 1, 2000); /* Monday 3rd Jan 2000. */
+ longest_weekday_width = 0;
+ longest_weekday = G_DATE_MONDAY;
for (day = G_DATE_MONDAY; day <= G_DATE_SUNDAY; day++) {
g_date_strftime (buffer, sizeof (buffer), "%A", &date);
width = gdk_string_width (font, buffer);
@@ -2447,6 +2448,7 @@ e_meeting_time_selector_recalc_date_format (EMeetingTimeSelector *mts)
/* Now find the biggest month name. */
longest_month_width = 0;
+ longest_month = G_DATE_JANUARY;
for (month = G_DATE_JANUARY; month <= G_DATE_DECEMBER; month++) {
g_date_set_month (&date, month);
g_date_strftime (buffer, sizeof (buffer), "%B", &date);
@@ -2477,12 +2479,13 @@ e_meeting_time_selector_recalc_date_format (EMeetingTimeSelector *mts)
/* Now try it with abbreviated weekday names. */
longest_weekday_width = 0;
+ longest_weekday = G_DATE_MONDAY;
g_date_set_dmy (&date, 3, 1, 2000); /* Monday 3rd Jan 2000. */
for (day = G_DATE_MONDAY; day <= G_DATE_SUNDAY; day++) {
g_date_strftime (buffer, sizeof (buffer), "%a", &date);
width = gdk_string_width (font, buffer);
if (width > longest_weekday_width) {
- longest_weekday = weekday;
+ longest_weekday = day;
longest_weekday_width = width;
}
g_date_add_days (&date, 1);