project: Make time format a first-class citizen
The current code deals with 12/24h clock formats almost like a workaround of the issue. This commit adds proper support to different clock formats.
This commit is contained in:
@@ -53,7 +53,6 @@ struct _GcalWeekGrid
|
||||
GdkWindow *event_window;
|
||||
|
||||
gint first_weekday;
|
||||
gboolean use_24h_format : 1;
|
||||
|
||||
icaltimetype *active_date;
|
||||
|
||||
@@ -1154,15 +1153,6 @@ gcal_week_grid_set_first_weekday (GcalWeekGrid *self,
|
||||
self->first_weekday = nr_day;
|
||||
}
|
||||
|
||||
void
|
||||
gcal_week_grid_set_use_24h_format (GcalWeekGrid *self,
|
||||
gboolean use_24h_format)
|
||||
{
|
||||
g_return_if_fail (GCAL_IS_WEEK_GRID (self));
|
||||
|
||||
self->use_24h_format = use_24h_format;
|
||||
}
|
||||
|
||||
void
|
||||
gcal_week_grid_add_event (GcalWeekGrid *self,
|
||||
GcalEvent *event)
|
||||
|
||||
Reference in New Issue
Block a user