calendar-management/page: Remove unused vfuncs
This commit is contained in:
@@ -55,24 +55,6 @@ gcal_calendar_management_page_default_init (GcalCalendarManagementPageInterface
|
|||||||
GCAL_TYPE_CALENDAR);
|
GCAL_TYPE_CALENDAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
const gchar*
|
|
||||||
gcal_calendar_management_page_get_name (GcalCalendarManagementPage *self)
|
|
||||||
{
|
|
||||||
g_return_val_if_fail (GCAL_IS_CALENDAR_MANAGEMENT_PAGE (self), NULL);
|
|
||||||
g_return_val_if_fail (GCAL_CALENDAR_MANAGEMENT_PAGE_GET_IFACE (self)->get_name, NULL);
|
|
||||||
|
|
||||||
return GCAL_CALENDAR_MANAGEMENT_PAGE_GET_IFACE (self)->get_name (self);
|
|
||||||
}
|
|
||||||
|
|
||||||
const gchar*
|
|
||||||
gcal_calendar_management_page_get_title (GcalCalendarManagementPage *self)
|
|
||||||
{
|
|
||||||
g_return_val_if_fail (GCAL_IS_CALENDAR_MANAGEMENT_PAGE (self), NULL);
|
|
||||||
g_return_val_if_fail (GCAL_CALENDAR_MANAGEMENT_PAGE_GET_IFACE (self)->get_title, NULL);
|
|
||||||
|
|
||||||
return GCAL_CALENDAR_MANAGEMENT_PAGE_GET_IFACE (self)->get_title (self);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
gcal_calendar_management_page_activate (GcalCalendarManagementPage *self,
|
gcal_calendar_management_page_activate (GcalCalendarManagementPage *self,
|
||||||
GcalCalendar *calendar)
|
GcalCalendar *calendar)
|
||||||
|
|||||||
@@ -34,10 +34,6 @@ struct _GcalCalendarManagementPageInterface
|
|||||||
{
|
{
|
||||||
GTypeInterface parent;
|
GTypeInterface parent;
|
||||||
|
|
||||||
const gchar* (*get_name) (GcalCalendarManagementPage *self);
|
|
||||||
|
|
||||||
const gchar* (*get_title) (GcalCalendarManagementPage *self);
|
|
||||||
|
|
||||||
void (*activate) (GcalCalendarManagementPage *self,
|
void (*activate) (GcalCalendarManagementPage *self,
|
||||||
GcalCalendar *calendar);
|
GcalCalendar *calendar);
|
||||||
|
|
||||||
@@ -48,10 +44,6 @@ struct _GcalCalendarManagementPageInterface
|
|||||||
GcalCalendar *calendar);
|
GcalCalendar *calendar);
|
||||||
};
|
};
|
||||||
|
|
||||||
const gchar* gcal_calendar_management_page_get_name (GcalCalendarManagementPage *self);
|
|
||||||
|
|
||||||
const gchar* gcal_calendar_management_page_get_title (GcalCalendarManagementPage *self);
|
|
||||||
|
|
||||||
void gcal_calendar_management_page_activate (GcalCalendarManagementPage *self,
|
void gcal_calendar_management_page_activate (GcalCalendarManagementPage *self,
|
||||||
GcalCalendar *calendar);
|
GcalCalendar *calendar);
|
||||||
|
|
||||||
|
|||||||
@@ -331,18 +331,6 @@ on_toast_dismissed_cb (AdwToast *toast,
|
|||||||
* GcalCalendarManagementPage iface
|
* GcalCalendarManagementPage iface
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static const gchar*
|
|
||||||
gcal_calendars_page_get_name (GcalCalendarManagementPage *page)
|
|
||||||
{
|
|
||||||
return "calendars";
|
|
||||||
}
|
|
||||||
|
|
||||||
static const gchar*
|
|
||||||
gcal_calendars_page_get_title (GcalCalendarManagementPage *page)
|
|
||||||
{
|
|
||||||
return _("Calendars");
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gcal_calendars_page_activate (GcalCalendarManagementPage *page,
|
gcal_calendars_page_activate (GcalCalendarManagementPage *page,
|
||||||
GcalCalendar *calendar)
|
GcalCalendar *calendar)
|
||||||
@@ -386,8 +374,6 @@ gcal_calendars_page_activate (GcalCalendarManagementPage *page,
|
|||||||
static void
|
static void
|
||||||
gcal_calendar_management_page_iface_init (GcalCalendarManagementPageInterface *iface)
|
gcal_calendar_management_page_iface_init (GcalCalendarManagementPageInterface *iface)
|
||||||
{
|
{
|
||||||
iface->get_name = gcal_calendars_page_get_name;
|
|
||||||
iface->get_title = gcal_calendars_page_get_title;
|
|
||||||
iface->activate = gcal_calendars_page_activate;
|
iface->activate = gcal_calendars_page_activate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -277,20 +277,6 @@ on_settings_button_clicked_cb (GtkWidget *button,
|
|||||||
* GcalCalendarManagementPage iface
|
* GcalCalendarManagementPage iface
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static const gchar*
|
|
||||||
gcal_edit_calendar_page_get_name (GcalCalendarManagementPage *page)
|
|
||||||
{
|
|
||||||
return "edit-calendar";
|
|
||||||
}
|
|
||||||
|
|
||||||
static const gchar*
|
|
||||||
gcal_edit_calendar_page_get_title (GcalCalendarManagementPage *page)
|
|
||||||
{
|
|
||||||
GcalEditCalendarPage *self = GCAL_EDIT_CALENDAR_PAGE (page);
|
|
||||||
|
|
||||||
return self->calendar ? gcal_calendar_get_name (self->calendar) : "";
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gcal_edit_calendar_page_activate (GcalCalendarManagementPage *page,
|
gcal_edit_calendar_page_activate (GcalCalendarManagementPage *page,
|
||||||
GcalCalendar *calendar)
|
GcalCalendar *calendar)
|
||||||
@@ -325,8 +311,6 @@ gcal_edit_calendar_page_deactivate (GcalCalendarManagementPage *page)
|
|||||||
static void
|
static void
|
||||||
gcal_calendar_management_page_iface_init (GcalCalendarManagementPageInterface *iface)
|
gcal_calendar_management_page_iface_init (GcalCalendarManagementPageInterface *iface)
|
||||||
{
|
{
|
||||||
iface->get_name = gcal_edit_calendar_page_get_name;
|
|
||||||
iface->get_title = gcal_edit_calendar_page_get_title;
|
|
||||||
iface->activate = gcal_edit_calendar_page_activate;
|
iface->activate = gcal_edit_calendar_page_activate;
|
||||||
iface->deactivate = gcal_edit_calendar_page_deactivate;
|
iface->deactivate = gcal_edit_calendar_page_deactivate;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -504,18 +504,6 @@ on_web_description_label_link_activated_cb (GtkLabel *label,
|
|||||||
* GcalCalendarManagementPage iface
|
* GcalCalendarManagementPage iface
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static const gchar*
|
|
||||||
gcal_new_calendar_page_get_name (GcalCalendarManagementPage *page)
|
|
||||||
{
|
|
||||||
return "new-calendar";
|
|
||||||
}
|
|
||||||
|
|
||||||
static const gchar*
|
|
||||||
gcal_new_calendar_page_get_title (GcalCalendarManagementPage *page)
|
|
||||||
{
|
|
||||||
return _("New Calendar");
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gcal_new_calendar_page_deactivate (GcalCalendarManagementPage *page)
|
gcal_new_calendar_page_deactivate (GcalCalendarManagementPage *page)
|
||||||
{
|
{
|
||||||
@@ -540,8 +528,6 @@ gcal_new_calendar_page_deactivate (GcalCalendarManagementPage *page)
|
|||||||
static void
|
static void
|
||||||
gcal_calendar_management_page_iface_init (GcalCalendarManagementPageInterface *iface)
|
gcal_calendar_management_page_iface_init (GcalCalendarManagementPageInterface *iface)
|
||||||
{
|
{
|
||||||
iface->get_name = gcal_new_calendar_page_get_name;
|
|
||||||
iface->get_title = gcal_new_calendar_page_get_title;
|
|
||||||
iface->deactivate = gcal_new_calendar_page_deactivate;
|
iface->deactivate = gcal_new_calendar_page_deactivate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user