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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user