[california] Display month name on first of month in month view: Bug #732037



commit 5548415c34a64acf69c153d75613f041f2761f98
Author: Jim Nelson <jim yorba org>
Date:   Wed Jul 23 15:23:10 2014 -0700

    Display month name on first of month in month view: Bug #732037

 src/view/month/month-cell.vala |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/view/month/month-cell.vala b/src/view/month/month-cell.vala
index ef76d81..67a3c2e 100644
--- a/src/view/month/month-cell.vala
+++ b/src/view/month/month-cell.vala
@@ -72,7 +72,10 @@ internal class Cell : Common.EventsCell {
     }
     
     private void update_top_line() {
-        top_line_text = date.day_of_month.informal_number;
+        // include abbreviate month name on first of the month
+        top_line_text = (date.day_of_month.value == 1)
+            ? "%s %s".printf(date.month.abbrev_name, date.day_of_month.informal_number)
+            : date.day_of_month.informal_number;
         top_line_rgba = (date in owner.month_of_year)
             ? palette.day_in_range
             : palette.day_outside_range;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]