[gnome-calendar] Minor fixes and comments review.
- From: Erick PÃrez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] Minor fixes and comments review.
- Date: Sat, 1 Dec 2012 20:33:50 +0000 (UTC)
commit 1b0312f65335360cf2b5dd83385b39441add0025
Author: Erick PÃrez Castellanos <erick red gmail com>
Date: Wed Nov 21 22:28:44 2012 -0500
Minor fixes and comments review.
src/gcal-month-view.c | 14 ++++----------
src/gcal-week-view.c | 2 +-
2 files changed, 5 insertions(+), 11 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index 4b9d606..4a2f73c 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -911,7 +911,7 @@ gcal_month_view_draw_header (GcalMonthView *view,
gtk_style_context_restore (context);
/* Here translators should put the widgest letter in their alphabet, this
- * taken to make it align with week-view header */
+ * taken to make it align with week-view header, which is the larger for now */
pango_layout_set_text (layout, _("WWW 99 - WWW 99"), -1);
pango_cairo_update_layout (cr, layout);
pango_layout_get_pixel_size (layout, &layout_width, &layout_height);
@@ -1329,15 +1329,9 @@ gcal_month_view_contains (GcalView *view,
if (priv->date == NULL)
return FALSE;
- if (priv->date->month == date->month &&
- priv->date->year == date->year)
- {
- return TRUE;
- }
- else
- {
- return FALSE;
- }
+
+ return (priv->date->month == date->month &&
+ priv->date->year == date->year);
}
static void
diff --git a/src/gcal-week-view.c b/src/gcal-week-view.c
index 15c1ef9..97ee526 100644
--- a/src/gcal-week-view.c
+++ b/src/gcal-week-view.c
@@ -1076,7 +1076,7 @@ gcal_week_view_draw_header (GcalWeekView *view,
gtk_style_context_get_font (context, state));
/* Here translators should put the widgest letter in their alphabet, this
- * taken to make it align with week-view header */
+ * taken to make it align with week-view header, which is the larger for now */
pango_layout_set_text (layout, _("WWW 99 - WWW 99"), -1);
pango_cairo_update_layout (cr, layout);
pango_layout_get_pixel_size (layout, &layout_width, &layout_height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]