Added GcalWeekView. Not integrated yet.

Refactoring the code inside GcalMonthView for drawing and for showing child
widgets.
Fixed ref_sink in GcalEditableRemainder. (Don't need it)
Added translation for weekdays abbreviation. (Thxs to ebassi & mclasen)
Passed make distcheck.
This commit is contained in:
Erick Pérez Castellanos
2012-07-11 10:50:28 -04:00
parent f83143050c
commit 1021c7e781
11 changed files with 1201 additions and 74 deletions
+18
View File
@@ -22,6 +22,8 @@
#include <string.h>
#include <glib/gi18n.h>
#include <libedataserver/e-data-server-util.h>
#include <libedataserverui/e-cell-renderer-color.h>
@@ -186,6 +188,22 @@ gcal_get_source_uid (GtkTreeModel *model,
return uid;
}
const gchar*
gcal_get_weekday (gint i)
{
static const char* weekdays [] =
{
N_("Sun"),
N_("Mon"),
N_("Tue"),
N_("Wed"),
N_("Thu"),
N_("Fri"),
N_("Sat")
};
return _(weekdays[i]);
}
/* Function to do a last minute fixup of the AM/PM stuff if the locale
* and gettext haven't done it right. Most English speaking countries
* except the USA use the 24 hour clock (UK, Australia etc). However