The future of GNOME Calendar

Georges Stavracas

Today, the Calendar Team had the first meeting in history. Isaque, Lapo, Renata, Vamsi and I attended it, and the meeting was extremely productive! In fact, we were able to sketch out the general direction that GNOME Calendar will head towards.

What’ll be added

Lets start talking about the additions that Calendar will have.

A New Sidebar

Our design samurai came up with this idea and it was immediately completely welcomed. We want to do a simpler, less cluttered version of this:

The search would behave just like the redesigned GNOME Control Center, and in fact, using a sidebar fixes many issues we currently have with GNOME Calendar, like the search popover and random glitches all around.

The sidebar will be able to be hidden, just like Nautius’ sidebar, so people can have their old Calendar again, behaving just like it used to behave. Stay tuned.

View original post 427 more words


The Begining

Hey all,

GSoC! GUADEC! Summer!! Everything’s done and almost wrapped up.
The best first intern ever 😀

It all started with a simple line
<property name="can_focus">True</property>

For those who have worked with Gtk, they will realize its a simple line in the xml file allowing focus on a widget. And it was then when I realized,

The friendship/relationship with the awesome community of GNOME begins.

What followed after 2 commits into the main branch, one application submission, and the result was the start of the most amazing few months. These months have been a humbling experience, the biggest learning experience, and the most productive time.

The small bursts of joys when you realize what you made will be used by millions of people. The banging of head for the smallest of errors. The delight on seeing it run without any errors. The steady growth of the product from ground zero. All of which were a delight to experience.

What has been done:

  • Clean the previously written code for week-view code, which used deprecated functions and code which wouldn’t comply with the current proposal.
  • Include of week-view into the main stack of the calendar.
  •  Separate the view into – grid and header.
  • Draw the header according to mock-ups
  • Display the events after sorting in the header
  • Expand/Collapse button addition in header
  • Draw the hours bar
  • Draw the grid.

What remains:

  • Display events in grid
  • Make the events clickable

Link of submission –

The week-view, frankly, in its current stage cannot be used in the actual product yet. There is a lot of testing to be done and code to be written. Still quite a way to go before it gets available to general users. Georges(feaneron), my mentor, the gnome sleep-deprived night worker, gave a predicted deadline of a merge to the main branch by December, and availability in the main product by 3.24 version of Calendar. For those who are waiting to use the week-view, wait till 3.24 🙂 Sorry for the delay and thanks for the patience.

Thank you notes:

  • Georges, my mentor, without you nothing would’ve been possible. From ground zero to what I have learned by now, in the past few months, its all thanks to you. You’ve been the best mentor I can imagine. There is still tons of stuff I will be learning from you in the future. Sorry to bother you with so many doubts, and also sorry, that they won’t end anytime soon 😛
  • Lapo, the gnome-design team, thanks for the amazing mockups 😀 They were crisp and clear. Without those mockups, the week-view would’ve been a disaster.
  • GNOME community, this is one heck of a community. Everyone I’ve spoken to are very very friendly and have tons of more knowledge than I do which I would try to learn from them.
  • Fellow GSoC-ers, I thank you for keeping the ball rolling and keeping the environment enthralling with your projects. (I would also like to thank Renata for working on usability test on calendar during her project 🙂 )
  • GOOGLE, for giving the amazing opportunity they have given.


(Translation: The film ain’t finished yet, my friend)

For those of you who thought, with all the thank you notes, that this was the end and that it was an euology, please do read the title of the blog. This is just the beginning of the journey into GNOME. #GoCalendar

With the awesome feaneron and amazing Lapo, things that will be coming soon and are in discussion stages:

  • Day View
  • Recurring events
  • Jump to date
  • Mini Agenda View
  • Natural Language Prcocessing
  • And many more to come 😀

I will be a part of GNOME as long as I can, I’m interested in more than one of the above mentioned list, and super excited to get working on them 😀

Thanks again to everyone involved, but this is just the begining. I’m sure I would be requiring to thank them over and over again in the coming years 🙂 But as far as the begining-GSoC, is concerned



Days Grid

Hey all,

This is for the progress on the calendar. So far, you have seen a zoomed in version of the header of the calendar. So let’s zoom it out a bit.

*insert drum rolls*



Using the same test subjects, ta-da, this is the whole of the week view 🙂

Coming to the features of the, yet unfinished, days-grid.

  • It is a large scrollable window with a solid line after every hour and a dotted line between any two solid lines.
  • The time format can be switched between 12-hr and 24-hr format, it follows the system settings. A pic of the same:twelve
  • It would be used to show events that span for <24 hrs.

There is still a lot of working to be done on it, but this is the update so far 🙂

P.S.-I won’t be making it to GUADEC 😥 I would like to thank the travel committee for the generous sponsorship. Sorry for the trouble. I have emailed the same to the travel-committee.

Last two weeks, the final push starts for the week-view 🙂

Week Header

Today, I would like to introduce to you all, the all new week-header 😀

The week-header is the first half of the week-view which deals with events last greater than or equal to 24h. Basically, events that last for a whole day or multiple days.

First, the events are fetched and stored in a GList. This GList is sorted according to the following criteria’s

  • Multiday events should be placed before all-day events
  • In case of both events being similar events:
    • They are sorted according to the start day first
    • They are sorted according to the end day in case of a tie.

For placing the events themselves, we iterate from the first row and find a perfect fit for the event at hand and add it there. The result- A very neat placement of events. The whole process is like sand flowing inside a jar of golf balls and occupying where it can.


If you noticed, this hides certain events and only shows 3 rows of events. If you further notice, you will see a button at the bottom left. Let’s click it and this happens:


The header also has a feature of expand/collapse which shows/hides events 🙂

The expand mode shows all the events and also introduces a scrollable window to see events further below the current events.
The collapse mode shows only three rows of events and shows label placeholders if there are any events hidden.

Hope you all liked it. 🙂

Let me also remind you that the countdown has begun for this :


One month to go 😀

Calendar Updates

Time of Coding!

Updates on my project as a Google Summer of Code Intern. As you all know, I’m working on the Gnome-Calendar to make the much-required week-view. Here is the proposed mock up for the same:


The week-view already had good amount of code written for it. So the basic files were already existing. My first task was to activate the already written week-view, which after a few changes in the main Application file, resulted in:


Which is pretty far from the mock up.

All of the previously written code for week-view was in a single class, but in my proposal, we divided it into multiple classes.

  • WeekHeader for displaying the week-names, dates and labels of month, week number(s) and year.
  • WeekGrid to display the time periods of the 7 days of the week.

The events would go to each class based on the duration they last.

The initial task was a major clean up of the previously written week-view code, which was a pretty difficult task, given it was 2 years old code, and LOT of things have changed. The code was a sight which one wouldn’t like to see.

The clean up done, it was time to set up new classes and templates.

So here’s how you do it for calendar

  1. Make the ui, c and header file.
  2. For making the calendar use the ui file
    1. Save the ui in the correct place, data/ui/
    2. Convert the file into binary, so that no one messes with it, by including it in the data/calendar.gresource.xml
    3. Include the file(or alias if you’ve set it to anything different) in the data/
  3. For making the calendar use the .c and .h files:
    1. Just include the files in the src/

From week-view, we will be using a separate folder to include the views, which is src/views/ So how do we include headers of files inside a subfolder? Simple enough if you know it- Add -I$(srcdir)/views to the CPPFlags of Makefile.

And there you have it newly introduced classes which are ready to use for coding and testing.

Next blog about the WeekHeader.

P.S.-My hackergotchi is here 😀 , Thanks a lot danielgc for making it 🙂

Bug Fix #2

Last blog of pre-GSoC coding. This is the story which dates back to the application period.

The month view of the calendar is a pretty important aspect of the calendar. The keyboard arrow keys allowed a user to switch between days in a specific month. But on reaching the end of the month, a user couldn’t go any further.


The fix to which was a simple change to the key_press()

The calendar, in the past, used a ‘gint’ variable for locating the present location of the selector. So, on going beyond a date in the calendar, it would go to an invalid cell, which would cause nothing to happen. After the patch for bug #763198, it would go to the next month but since it used the cell position, the selection dates for creating new events went bad.

Next comes,

The simple fix-Make the ‘gint’ variables to ‘GDateTime’ variables to track the date rather than a ‘gint’ variable to track the cell position.

The difficulties- The month-view was heavily dependent on those two variables (start_date_cell and end_date_cell) On changing a variable on gint to GDateTime, a lot of changes had to be made.

The result was a huge patch which changed the code at every position of occurrence of tracking variables-

Segment faults are hard!!!

Thanks to the awesome community, an apparent error in the code was pointed out, resulting in the reopening of the bug #763641.

After much trying and failing, comes feaneron! Who solved the error in a few quick patches.

After all this, what has improved-

  • User can navigate to the next and previous month by navigating to the end of the current month.
  • User can create events spanning across multiple months with just the keyboard

What can still be done: The patch was pretty biased towards a keyboard user, there were no additions made for a mouse user, which should and will be done soon.

Next Up: The long forgotten week-view rises!!

The Chessboard


19 years ago:

‘Everything is like a pattern, Axalia. A repeated score of music.’

The salsa wrap gripped loosely in his firm fingers had grown cold from the winds after an autumnal shower, and the city smelled of wet soil, leaves and a slow evening.

Someone had kept the radio on, far away from the place they were sitting – and it had a strange, old tune playing that he couldn’t really place anywhere in his mind. But it was familiar, he had heard it before. On a day just like this one – after a long, monotonous rain.

Axalia’s clothes still clung to her body, making her look skinnier than she was. His own hair was damp, but there was a strange warmth exploding from his insides.

If only it had rained on and on.

She is rain, if I am summer.

Gerard took another bite of the wrap…

View original post 20,137 more words