aboutsummaryrefslogtreecommitdiffstats
path: root/mail/evolution
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2009-03-06 11:03:33 +0800
committermarcus <marcus@FreeBSD.org>2009-03-06 11:03:33 +0800
commitcb6d8fb2cbb31a5917a47379d90bc18faaec200a (patch)
tree3c3dc2e60ce6a3820485875fa4893963a48a17b6 /mail/evolution
parent3cb22c6f75f569284f7890c76e90b889ce7d02e5 (diff)
downloadfreebsd-ports-gnome-cb6d8fb2cbb31a5917a47379d90bc18faaec200a.tar.gz
freebsd-ports-gnome-cb6d8fb2cbb31a5917a47379d90bc18faaec200a.tar.zst
freebsd-ports-gnome-cb6d8fb2cbb31a5917a47379d90bc18faaec200a.zip
Fix a GNUism with the calendar month view. It was previously displaying
"Id" for each digit instead of the digit itself. Reported by: Jeff Racine <jracine@maxwell.syr.edu>
Diffstat (limited to 'mail/evolution')
-rw-r--r--mail/evolution/Makefile1
-rw-r--r--mail/evolution/files/patch-widgets_misc_e-calendar-item.c41
2 files changed, 42 insertions, 0 deletions
diff --git a/mail/evolution/Makefile b/mail/evolution/Makefile
index 29d506388857..a94c35a474e5 100644
--- a/mail/evolution/Makefile
+++ b/mail/evolution/Makefile
@@ -8,6 +8,7 @@
PORTNAME= evolution
PORTVERSION= 2.24.5
+PORTREVISION= 1
CATEGORIES= mail gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
diff --git a/mail/evolution/files/patch-widgets_misc_e-calendar-item.c b/mail/evolution/files/patch-widgets_misc_e-calendar-item.c
new file mode 100644
index 000000000000..9959443a918d
--- /dev/null
+++ b/mail/evolution/files/patch-widgets_misc_e-calendar-item.c
@@ -0,0 +1,41 @@
+--- widgets/misc/e-calendar-item.c.orig 2009-03-04 22:45:32.000000000 -0500
++++ widgets/misc/e-calendar-item.c 2009-03-04 22:50:13.000000000 -0500
+@@ -1505,12 +1505,12 @@ e_calendar_item_draw_day_numbers (ECalen
+ if (week_num >= 10) {
+ digit = week_num / 10;
+ text_x -= calitem->week_number_digit_widths[digit];
+- num_chars += sprintf (&buffer[num_chars], "%Id", digit);
++ num_chars += sprintf (&buffer[num_chars], "%d", digit);
+ }
+
+ digit = week_num % 10;
+ text_x -= calitem->week_number_digit_widths[digit] + 6;
+- num_chars += sprintf (&buffer[num_chars], "%Id", digit);
++ num_chars += sprintf (&buffer[num_chars], "%d", digit);
+
+ cairo_save (cr);
+ gdk_cairo_set_source_color (cr, &style->text[GTK_STATE_ACTIVE]);
+@@ -1618,12 +1618,12 @@ e_calendar_item_draw_day_numbers (ECalen
+ if (day_num >= 10) {
+ digit = day_num / 10;
+ day_x -= calitem->digit_widths[digit];
+- num_chars += sprintf (&buffer[num_chars], "%Id", digit);
++ num_chars += sprintf (&buffer[num_chars], "%d", digit);
+ }
+
+ digit = day_num % 10;
+ day_x -= calitem->digit_widths[digit];
+- num_chars += sprintf (&buffer[num_chars], "%Id", digit);
++ num_chars += sprintf (&buffer[num_chars], "%d", digit);
+
+ cairo_save (cr);
+ if (fg_color) {
+@@ -1958,7 +1958,7 @@ e_calendar_item_recalc_sizes (ECalendar
+ gchar locale_digit[5];
+ int locale_digit_len;
+
+- locale_digit_len = sprintf (locale_digit, "%Id", digit);
++ locale_digit_len = sprintf (locale_digit, "%d", digit);
+
+ pango_layout_set_text (layout, locale_digit, locale_digit_len);
+ pango_layout_get_pixel_size (layout, &width, NULL);