[gnome-calendar] manager: setup default calendar on event creation
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] manager: setup default calendar on event creation
- Date: Wed, 28 Sep 2016 01:36:10 +0000 (UTC)
commit 10391ae6a98992f3a8de2316f870c85809690c17
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Sep 27 22:35:48 2016 -0300
manager: setup default calendar on event creation
When an event is successfully created, make that the default source.
https://bugzilla.gnome.org/show_bug.cgi?id=771570
src/gcal-manager.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-manager.c b/src/gcal-manager.c
index 57d3920..4f96634 100644
--- a/src/gcal-manager.c
+++ b/src/gcal-manager.c
@@ -461,7 +461,11 @@ on_event_created (GObject *source_object,
g_warning ("Error creating object: %s", error->message);
g_error_free (error);
}
- g_debug ("Event: %s created successfully", new_uid);
+ else
+ {
+ gcal_manager_set_default_source (data->manager, gcal_event_get_source (data->event));
+ g_debug ("Event: %s created successfully", new_uid);
+ }
g_free (new_uid);
free_async_ops_data (data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]