calendar-management-page: Pass GcalCalendar

This commit is contained in:
Georges Basile Stavracas Neto
2019-06-25 14:16:47 -03:00
parent 47bed7bc77
commit 33fc75ca01
6 changed files with 20 additions and 26 deletions
@@ -304,19 +304,15 @@ gcal_edit_calendar_page_get_title (GcalCalendarManagementPage *page)
static void
gcal_edit_calendar_page_activate (GcalCalendarManagementPage *page,
gpointer data)
GcalCalendar *calendar)
{
GcalEditCalendarPage *self;
GtkHeaderBar *headerbar;
GcalCalendar *calendar;
g_assert (GCAL_IS_CALENDAR (data));
self = GCAL_EDIT_CALENDAR_PAGE (page);
headerbar = gcal_calendar_management_page_get_titlebar (page);
gtk_header_bar_pack_start (headerbar, self->back_button);
calendar = GCAL_CALENDAR (data);
setup_calendar (self, calendar);
}