Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maya does not build due to an API change in evolution data server #18

Closed
wshearn opened this issue Apr 13, 2015 · 1 comment
Closed

Comments

@wshearn
Copy link

wshearn commented Apr 13, 2015

As the title says evolution data server had an API change in connect_sync.

Here is a simple hackish bzr diff that fixes it.

=== modified file 'core/Model/CalendarModel.vala'
--- core/Model/CalendarModel.vala   2015-01-16 23:38:19 +0000
+++ core/Model/CalendarModel.vala   2015-04-13 09:11:12 +0000
@@ -362,7 +362,7 @@
         try {
             var cancellable = new GLib.Cancellable ();
             connecting (source, cancellable);
-            var client = new E.CalClient.connect_sync (source, E.CalClientSourceType.EVENTS, cancellable);
+            var client = new E.CalClient.connect_sync (source, E.CalClientSourceType.EVENTS, 30, cancellable);
             source_client.insert (source.dup_uid (), client);
         } catch (Error e) {
             error_received (e.message);

=== modified file 'vapi/libecalendar-1.2.vapi'
--- vapi/libecalendar-1.2.vapi  2014-12-31 16:11:57 +0000
+++ vapi/libecalendar-1.2.vapi  2015-04-13 09:13:20 +0000
@@ -24,7 +24,7 @@
        public CalClient (E.Source source, E.CalClientSourceType source_type) throws GLib.Error;
        public virtual async void connect (E.Source source, E.CalClientSourceType source_type, GLib.Cancellable? cancellable) throws GLib.Error;
        [CCode (has_construct_function = false, cname = "e_cal_client_connect_sync")]
-       public CalClient.connect_sync (E.Source source, E.CalClientSourceType source_type, GLib.Cancellable? cancellable = null) throws GLib.Error;
+       public CalClient.connect_sync (E.Source source, E.CalClientSourceType source_type, int32 wait_for_connected_seconds, GLib.Cancellable? cancellable = null) throws GLib.Error;
        public async bool add_timezone (iCal.TimeZone zone, GLib.Cancellable cancellable) throws GLib.Error;
        public bool add_timezone_sync (iCal.TimeZone zone, GLib.Cancellable cancellable) throws GLib.Error;
        public bool check_one_alarm_only ();

@alucryd
Copy link
Owner

alucryd commented Apr 14, 2015

Thx for the patch, added it to the tarball. You should probably submit it upstream as well.

@alucryd alucryd closed this as completed Apr 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants