aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2007-12-06 04:50:15 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2007-12-06 04:50:15 +0800
commit7fef4ba1e95a25b78600434b2a71ce0762db47f1 (patch)
tree37ff545517f4afe21db534a1bff3c2fbe59643f0 /widgets
parentdbc59d48bea9da7292c7a30e37f2f086adb76c2d (diff)
downloadgsoc2013-evolution-7fef4ba1e95a25b78600434b2a71ce0762db47f1.tar.gz
gsoc2013-evolution-7fef4ba1e95a25b78600434b2a71ce0762db47f1.tar.zst
gsoc2013-evolution-7fef4ba1e95a25b78600434b2a71ce0762db47f1.zip
** Fixes bug #392747 (extra cleanup work)
2007-12-05 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #392747 (extra cleanup work) * calendar/gui/e-day-view.c (e_day_view_style_set): * calendar/gui/e-week-view-titles-item.c (e_week_view_titles_item_draw): * calendar/gui/e-week-view.c (e_week_view_style_set): * calendar/gui/print.c (print_month_summary): * calendar/gui/e-meeting-time-sel.c (e_meeting_time_selector_recalc_date_form): Call e_get_month_name() or e_get_weekday_name() instead of e_utf8_strftime() or g_date_strftime(). e_utf8_strftime() or g_date_strftime(). * widgets/misc/e-calendar-item.c (e_calendar_item_show_popup_menu): Call e_get_month_name() instead of e_utf8_strftime(). svn path=/trunk/; revision=34659
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/ChangeLog7
-rw-r--r--widgets/misc/e-calendar-item.c12
2 files changed, 10 insertions, 9 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index a4b449c7d9..78e8a29da4 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,10 @@
+2007-12-05 Matthew Barnes <mbarnes@redhat.com>
+
+ ** Fixes part of bug #392747 (extra cleanup work)
+
+ * e-calendar-item.c (e_calendar_item_show_popup_menu):
+ Call e_get_month_name() instead of e_utf8_strftime().
+
2007-12-03 Matthew Barnes <mbarnes@redhat.com>
** Fixes part of bug #392747
diff --git a/widgets/misc/e-calendar-item.c b/widgets/misc/e-calendar-item.c
index f023e89850..4e8fb50a18 100644
--- a/widgets/misc/e-calendar-item.c
+++ b/widgets/misc/e-calendar-item.c
@@ -3724,8 +3724,8 @@ e_calendar_item_show_popup_menu (ECalendarItem *calitem,
{
GtkWidget *menu, *submenu, *menuitem, *label;
gint year, month;
+ const gchar *name;
gchar buffer[64];
- struct tm tmp_tm;
menu = gtk_menu_new ();
@@ -3744,19 +3744,13 @@ e_calendar_item_show_popup_menu (ECalendarItem *calitem,
GINT_TO_POINTER (month_offset));
for (month = 0; month < 12; month++) {
- memset (&tmp_tm, 0, sizeof (tmp_tm));
- tmp_tm.tm_year = year - 1900;
- tmp_tm.tm_mon = month;
- tmp_tm.tm_mday = 1;
- tmp_tm.tm_isdst = -1;
- mktime (&tmp_tm);
- e_utf8_strftime (buffer, sizeof (buffer), "%B", &tmp_tm);
+ name = e_get_month_name (month + 1, FALSE);
menuitem = gtk_menu_item_new ();
gtk_widget_show (menuitem);
gtk_container_add (GTK_CONTAINER (submenu), menuitem);
- label = gtk_label_new (buffer);
+ label = gtk_label_new (name);
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_widget_show (label);
gtk_container_add (GTK_CONTAINER (menuitem), label);