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:
Erick Pérez Castellanos
2012-12-01 15:29:02 -05:00
committed by Rene A. Viant Moran
parent 72278de44b
commit c72b37433c
2 changed files with 11 additions and 0 deletions
+8
View File
@@ -174,3 +174,11 @@ gcal_view_clear_selection (GcalView *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);
}
+3
View File
@@ -61,6 +61,8 @@ struct _GcalViewIface
void (*reposition_child) (GcalView *view, const gchar *uuid);
void (*clear_selection) (GcalView *view);
void (*create_event_on_current_unit) (GcalView *view);
};
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_create_event_on_current_unit (GcalView *view);
G_END_DECLS