views/view: Remove "context" property
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/702>
This commit is contained in:
@@ -54,18 +54,6 @@ gcal_view_default_init (GcalViewInterface *iface)
|
||||
G_TYPE_DATE_TIME,
|
||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
/**
|
||||
* GcalView:context:
|
||||
*
|
||||
* The context of the view.
|
||||
*/
|
||||
g_object_interface_install_property (iface,
|
||||
g_param_spec_object ("context",
|
||||
"The context",
|
||||
"The context of the view",
|
||||
GCAL_TYPE_CONTEXT,
|
||||
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
/**
|
||||
* GcalView:time-direction:
|
||||
*
|
||||
@@ -140,27 +128,6 @@ gcal_view_set_date (GcalView *view,
|
||||
GCAL_VIEW_GET_IFACE (view)->set_date (view, date);
|
||||
}
|
||||
|
||||
/**
|
||||
* gcal_view_get_context:
|
||||
* @self: a #GcalView
|
||||
*
|
||||
* Retrieves the #GcalContext instance from @self.
|
||||
*
|
||||
* Returns: (transfer none): a #GcalContext
|
||||
*/
|
||||
GcalContext*
|
||||
gcal_view_get_context (GcalView *self)
|
||||
{
|
||||
GcalContext *context;
|
||||
|
||||
g_return_val_if_fail (GCAL_IS_VIEW (self), NULL);
|
||||
|
||||
g_object_get (self, "context", &context, NULL);
|
||||
g_object_unref (context);
|
||||
|
||||
return context;
|
||||
}
|
||||
|
||||
/**
|
||||
* gcal_view_get_time_direction:
|
||||
* @self: a #GcalView
|
||||
|
||||
@@ -64,8 +64,6 @@ void gcal_view_set_date (GcalView
|
||||
|
||||
GDateTime* gcal_view_get_date (GcalView *view);
|
||||
|
||||
GcalContext* gcal_view_get_context (GcalView *self);
|
||||
|
||||
GtkOrientation gcal_view_get_time_direction (GcalView *self);
|
||||
|
||||
void gcal_view_clear_marks (GcalView *view);
|
||||
|
||||
Reference in New Issue
Block a user