We can now detect recurrent events in GNOME Calendar

Yes! We cleared the first hurdle in adding recurrence support to GNOME Calendar.

Now GNOME Calendar is smart enough to detect if an event has recurrences or not.

We added a new property – ‘has-recurrence‘ – to GcalEvent. Evolution API took most of the load off our shoulders as it already had a function ‘e_cal_component_has_recurrences()‘ which served our purpose.

The property ‘has-recurrence is a gboolean (or boolean, in general) and is assigned TRUE when an event has recurrence property, otherwise FALSE. This is the simplest of properties with more complex ones yet to come.

To test out this newly added patch, I decided to import a recurrent event from Google Calendar to GNOME Calendar. To my benefit, our weekly GSoC meeting was already a recurrent event and therefore served as a perfect test case. So after successfully importing that event in GNOME Calendar, I used GtkInspector to enlist the properties of the event.

And Voilà! As you can see below, the has-recurrence property was automatically set to TRUE.

aaNQTnM

You can find more about GtkInspector here.

For those of you who are new to GObject. Here are the relevant links.

You can check out my patch here.

Feel free to say hi or drop suggestions.

Advertisements

One thought on “We can now detect recurrent events in GNOME Calendar

Add yours

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: