subscriber-view: remove is_child_multicell() vfunc

After we added GcalEvent::is_multiday(), there is no need to
wrap it in a vfunc anymore.

To fix it, simply use is_multiday() function and get rid of the
vfunc.
This commit is contained in:
Georges Basile Stavracas Neto
2016-02-17 19:07:50 +01:00
parent 710ee5fc8f
commit 4c2096ec8a
3 changed files with 1 additions and 34 deletions
-11
View File
@@ -161,9 +161,6 @@ static gboolean gcal_month_view_button_release (GtkWidget *wid
static void gcal_month_view_direction_changed (GtkWidget *widget,
GtkTextDirection previous_direction);
static gboolean gcal_month_view_is_child_multiday (GcalSubscriberView *subscriber,
GcalEventWidget *child);
static guint gcal_month_view_get_child_cell (GcalSubscriberView *subscriber,
GcalEventWidget *child);
@@ -781,7 +778,6 @@ gcal_month_view_class_init (GcalMonthViewClass *klass)
widget_class->key_press_event = gcal_month_view_key_press;
subscriber_view_class = GCAL_SUBSCRIBER_VIEW_CLASS (klass);
subscriber_view_class->is_child_multicell = gcal_month_view_is_child_multiday;
subscriber_view_class->get_child_cell = gcal_month_view_get_child_cell;
subscriber_view_class->clear_state = gcal_month_view_clear_state;
@@ -1839,13 +1835,6 @@ gcal_month_view_direction_changed (GtkWidget *widget,
priv->k = 1;
}
static gboolean
gcal_month_view_is_child_multiday (GcalSubscriberView *subscriber,
GcalEventWidget *child)
{
return gcal_event_is_multiday (gcal_event_widget_get_event (child));
}
static guint
gcal_month_view_get_child_cell (GcalSubscriberView *subscriber,
GcalEventWidget *child)