Added GcalView::create_event_on_current_unit.
this method is to be called whenever someone click on the "New Event" button of the toolbar. It will instruct the active view to generate a GcalView::create-event signal with the parametes of the current unit (a month for GcalYearView, a day for GcalMonthView, etc) It will allow the view to mark the current unit cell for the event creation.
This commit is contained in:
committed by
Rene A. Viant Moran
parent
72278de44b
commit
c72b37433c
@@ -174,3 +174,11 @@ gcal_view_clear_selection (GcalView *view)
|
|||||||
|
|
||||||
GCAL_VIEW_GET_INTERFACE (view)->clear_selection (view);
|
GCAL_VIEW_GET_INTERFACE (view)->clear_selection (view);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
gcal_view_create_event_on_current_unit (GcalView *view)
|
||||||
|
{
|
||||||
|
g_return_if_fail (GCAL_IS_VIEW (view));
|
||||||
|
|
||||||
|
GCAL_VIEW_GET_INTERFACE (view)->create_event_on_current_unit (view);
|
||||||
|
}
|
||||||
|
|||||||
@@ -61,6 +61,8 @@ struct _GcalViewIface
|
|||||||
void (*reposition_child) (GcalView *view, const gchar *uuid);
|
void (*reposition_child) (GcalView *view, const gchar *uuid);
|
||||||
|
|
||||||
void (*clear_selection) (GcalView *view);
|
void (*clear_selection) (GcalView *view);
|
||||||
|
|
||||||
|
void (*create_event_on_current_unit) (GcalView *view);
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gcal_view_get_type (void);
|
GType gcal_view_get_type (void);
|
||||||
@@ -89,6 +91,7 @@ void gcal_view_reposition_child (GcalView *view,
|
|||||||
|
|
||||||
void gcal_view_clear_selection (GcalView *view);
|
void gcal_view_clear_selection (GcalView *view);
|
||||||
|
|
||||||
|
void gcal_view_create_event_on_current_unit (GcalView *view);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user