recurrence: add GcalRecurrenceModType

Instead of reusing the ECalObjModType and mixing the
prefixes all around, do this small cleanup and add a
gcal-prefixed enum.
This commit is contained in:
Georges Basile Stavracas Neto
2017-09-07 00:02:40 -03:00
parent edce0ab076
commit 3b6b536663
11 changed files with 43 additions and 36 deletions
+4 -4
View File
@@ -149,8 +149,8 @@ struct _GcalWindow
NewEventData *event_creation_data;
GcalEvent *event_to_delete;
ECalObjModType event_to_delete_mod;
GcalEvent *event_to_delete;
GcalRecurrenceModType event_to_delete_mod;
/* calendar management */
GtkWidget *calendar_popover;
@@ -1081,12 +1081,12 @@ edit_dialog_closed (GtkDialog *dialog,
gint response,
gpointer user_data)
{
GcalRecurrenceModType mod;
GcalWindow *window;
GcalEditDialog *edit_dialog;
GcalEvent *event;
GcalView *view;
GList *widgets;
ECalObjModType mod;
ESource *source;
GCAL_ENTRY;
@@ -1095,7 +1095,7 @@ edit_dialog_closed (GtkDialog *dialog,
edit_dialog = GCAL_EDIT_DIALOG (dialog);
event = gcal_edit_dialog_get_event (edit_dialog);
view = GCAL_VIEW (window->views[window->active_view]);
mod = E_CAL_OBJ_MOD_THIS;
mod = GCAL_RECURRENCE_MOD_THIS_ONLY;
source = gcal_event_get_source (event);
if (!gcal_edit_dialog_get_recurrence_changed (edit_dialog) &&