Improving GcalView API.
Added GcalView::update signal for when the view will change it's date range Added GcalView::create-event signal for when the view wants to create a new event Added GcalView::clear_selection method for clearing new-event mark. Note: The views can choose to mark before send a ::create-event signal the range over which they will create the new event. This will be called new-event mark.
This commit is contained in:
+9
-1
@@ -40,6 +40,10 @@ struct _GcalViewIface
|
||||
{
|
||||
GTypeInterface parent_iface;
|
||||
|
||||
/* signals */
|
||||
void (*create_event) (GcalView *view, icaltimetype *start_span, icaltimetype *end_span, gdouble x, gdouble y);
|
||||
void (*updated) (GcalView *view, icaltimetype *date);
|
||||
|
||||
/* pure virtual methods */
|
||||
icaltimetype* (*get_initial_date) (GcalView *view);
|
||||
icaltimetype* (*get_final_date) (GcalView *view);
|
||||
@@ -47,6 +51,8 @@ struct _GcalViewIface
|
||||
gboolean (*contains) (GcalView *view, icaltimetype *date);
|
||||
void (*remove_by_uuid) (GcalView *view, const gchar *uuid);
|
||||
GtkWidget* (*get_by_uuid) (GcalView *view, const gchar *uuid);
|
||||
|
||||
void (*clear_selection) (GcalView *view);
|
||||
};
|
||||
|
||||
GType gcal_view_get_type (void);
|
||||
@@ -60,7 +66,7 @@ icaltimetype* gcal_view_get_initial_date (GcalView *view);
|
||||
|
||||
icaltimetype* gcal_view_get_final_date (GcalView *view);
|
||||
|
||||
gboolean gcal_view_contains (GcalView *view,
|
||||
gboolean gcal_view_contains (GcalView *view,
|
||||
icaltimetype *date);
|
||||
|
||||
void gcal_view_remove_by_uuid (GcalView *view,
|
||||
@@ -69,6 +75,8 @@ void gcal_view_remove_by_uuid (GcalView *view,
|
||||
GtkWidget* gcal_view_get_by_uuid (GcalView *view,
|
||||
const gchar *uuid);
|
||||
|
||||
void gcal_view_clear_selection (GcalView *view);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GCAL_MONTH_VIEW_H__ */
|
||||
|
||||
Reference in New Issue
Block a user