Commit Graph
1781 Commits
Author SHA1 Message Date
fosero 2ac228a9b8 quick-add-popover: adjust end date properly
Subtracting 1 from the first day of the month leads to an invalid date
being shown: use a proper function to adjust the date.

https://bugzilla.gnome.org/show_bug.cgi?id=763015
2016-03-14 16:54:54 -03:00
fosero c67d52092c month-view: fix date adjust mishap
https://bugzilla.gnome.org/show_bug.cgi?id=763015
2016-03-14 16:54:53 -03:00
Stas Solovey f20e6b041c Updated Russian translation 2016-03-13 21:23:11 +00:00
Jiri Grönroos 5f186608e4 Updated Finnish translation 2016-03-13 10:50:04 +00:00
fosero 8a72bf0ce7 month-view: add selection background fill
https://bugzilla.gnome.org/show_bug.cgi?id=763217
2016-03-12 21:58:22 -03:00
fosero 0ce85f6072 month-view: cleanup multi-row selection drawing
The selection mode was drawing a number of boxes on multi-row
selections, resulting in unwanted outlines within the selection area.
This patch adds a multirow mode that just draws the outline of a
selection.

Make cell_{width,height} integers so divison lines always get drawn on
exact grid coordinates, otherwise line calculations could result in
fuzzy lines.

https://bugzilla.gnome.org/show_bug.cgi?id=763217
2016-03-12 21:58:22 -03:00
fosero 0fce5babcf month-view: fix line width inconsistencies
The line width used for the grid changed over time, resulting in
different values used at different places. Introduce a LINE_WIDTH
definition and use it consistently throughout when drawing.

https://bugzilla.gnome.org/show_bug.cgi?id=763217
2016-03-12 21:58:22 -03:00
Matej Urbančič ea5352bf87 Updated Slovenian translation 2016-03-12 22:03:37 +01:00
Georges Basile Stavracas Neto c9499b6f7b utils: better compare datetimes by date
By multiplying the year difference by 360 and
month difference by 30, we have a much better
idea of how far the dates are.
2016-03-11 22:55:00 -03:00
pandusonu2 a738acb462 month-view: wrap around months for selector
In this commit, we modify the position of the selector in the month view when the selector is out of bound of the present month

Presently, the selector in the month view doesn't move when it reaches the border of the month.

To fix this, whenever the keyboard_cell is less than first index of the month, we reduce the value of month by 1 and in the case it is greater than the max key cell, we are increasing the value of month by 1.

https://bugzilla.gnome.org/show_bug.cgi?id=763198
2016-03-11 22:44:15 -03:00
fosero 97704c3390 month-view: fix last day+1 selectable
It was possible to select the cell after the last day of the month by
clicking on it.

The days variable is the first day of the month cell + the number of
days in the month, so only cells less than this cell should be
considered actual month days.

https://bugzilla.gnome.org/show_bug.cgi?id=763495
2016-03-11 11:05:33 -03:00
Isaque Galdino 8af0e6f84e year-view: Week numbers shown in big dark squares
Design team testing with GNOME continuous, complained about week numbers
being shown in big dark squares. According to them, these wreck the
layout of the view.

Design team listed the issues, comparing to gnome-shell calendar as:
 * The containing boxes are larger in Calendar.
 * The background of the boxes has more contrast with the background (it
should be a lot lighter in Calendar).
 * Week numbers are an option in the shell, and are off by default.

This patches fixes the two first items: week numbers box' size and
color. Option to set on/off week numbers will be implemented in a future
patch.

https://bugzilla.gnome.org/show_bug.cgi?id=763251
2016-03-10 23:29:06 -03:00
Georges Basile Stavracas Neto 1f021f8da2 month-view: fix one more child context issue
The code for multiday events was broken as well.
2016-03-09 17:42:21 -03:00
Georges Basile Stavracas Neto 34a6ac389a view: update interface code
This commit updates GcalView interface to use
modern GLib API and, consequently, removes tons
of obsolete code.
2016-03-09 14:19:04 -03:00
Georges Basile Stavracas Neto 042a9b34ab month-view: emit dates in local timezone 2016-03-09 12:22:06 -03:00
Georges Basile Stavracas Neto 7d3e125012 event-widget: remove obsolete comment 2016-03-09 12:07:05 -03:00
Georges Basile Stavracas Neto 1c52e36c71 month-view: match style context state from child
We were mistakenly using the style context of the view
to retrieve the child's margin.

Fix that by retrieving the child margin from the child's
style context.
2016-03-09 12:04:28 -03:00
Isaque Galdino d7daa8fe29 year-view: Week numbers overlapping view edge
In some conditions when window is narrower than taller, week numbers
overlaps the view edge. That problem started after we added a
background to week numbers and moved it a little farther from the days.
The whole drawing function didn't take in account the space used by the
week numbers.

To fix that we had to move the whole drawing area and start to count the
space for the week numbers. We also had to change the logic to find the
day and month based on x,y coordinates.

https://bugzilla.gnome.org/show_bug.cgi?id=763251
2016-03-09 11:19:52 -03:00
Georges Basile Stavracas Neto fef23f1243 search-view: don't load events with no dtstart 2016-03-09 11:19:52 -03:00
Duarte Loreto a0fdcf5d2c Updated Portuguese translation 2016-03-09 01:52:15 +00:00
Marek Černocký 2e0e418c49 Updated Czech translation 2016-03-08 18:07:29 +01:00
Iain Lane ace87328a9 event: If no end date is given, make the event be all_day explicitly
Previously we were synthesising an end date of "start + 1 day", but this
isn't necessary. RFC 2445 tells us that no end date already means an all
day event.

Check this case directly.

https://bugzilla.gnome.org/show_bug.cgi?id=762985
2016-03-08 16:36:41 +00:00
fosero ba78e54916 month-view: initial selection on current day
Create the month view with the initial selection on the current day.

https://bugzilla.gnome.org/show_bug.cgi?id=763149
2016-03-08 12:59:48 -03:00
Marcos Lans b123ceabe8 Updated Galician translation 2016-03-08 09:40:32 +00:00
Monique Faria e48c585c94 event: fix crash when no end date is given
In this commit, we fixed a crash report that occurred when an event had no end date.

Events with no end dates are all-day, 1-day length events. But, when an event with no end date set was synchronized with calendar (happened mostly with birthdays), it caused crashes, because the function responsible for getting the end date received NULL.

To correct this, we considered that end = start + 1day when no end date is set. With this, the mistake was corrected. Another thing that was correct along with this were two memory leaks, caused by the allocation of both end and start date that were not been freed.

https://bugzilla.gnome.org/show_bug.cgi?id=762985
2016-03-08 00:48:16 -03:00
Марко М. Костић 948b11fb1c Updated Serbian translation 2016-03-07 10:39:48 +01:00
pandusonu2 69e1fdd5f3 window: add can_focus property to GcalMonthView
In the commit, we made the initial value of can_focus for month-view to be set true, which was by default taken to be false.

The problem is that when we open the month-view in gnome calendar, the input focus is not set to the month view which resulted in the failue of navigation keys initially.

To fix this, the default value of the focus is set to true in the window.ui file.

https://bugzilla.gnome.org/show_bug.cgi?id=763160
2016-03-06 20:15:20 -03:00
fosero 2244503a52 edit-dialog: don't try to update locked events
https://bugzilla.gnome.org/show_bug.cgi?id=763187
2016-03-06 19:27:32 -03:00
fosero e464eb6415 event: handle different tzid formats
tzid can have different formats depending on where it originates from:
regular or prefixed by a libical specific identifier. Use the
right icaltimezone_get_builtin_timezone* for each case.

https://bugzilla.gnome.org/show_bug.cgi?id=763180
2016-03-06 17:03:00 -03:00
Daniel Mustieles 681ec191f0 Updated Spanish translation 2016-03-06 20:02:16 +01:00
Bernd Homuth b24743cf3b Updated German translation 2016-03-06 18:33:14 +00:00
Seong-ho Cho 9d1c1e9c51 Updated Korean translation 2016-03-06 14:42:08 +00:00
Dušan Kazik fcdea4bbe2 Updated Slovak translation 2016-03-06 08:14:49 +00:00
Matej Urbančič 7858d1ae4d Updated Slovenian translation 2016-03-05 22:32:27 +01:00
Aurimas Černius c85652811d Updated Lithuanian translation 2016-03-05 21:17:57 +02:00
Efstathios Iosifidis e2cdde34bc Updated Greek translation 2016-03-05 13:59:46 +00:00
Rūdolfs Mazurs 0c274b05aa Update Latvian translation 2016-03-05 15:45:01 +02:00
Anders Jonsson 45f7ffd632 Updated Swedish translation 2016-03-04 19:09:09 +00:00
Balázs Úr ffdd484a3c Updated Hungarian translation 2016-03-04 18:23:18 +00:00
Dušan Kazik e4de4e8f13 Updated Slovak translation 2016-03-03 18:09:40 +00:00
Piotr Drąg a34f9cc2a5 Updated Polish translation 2016-03-03 17:00:26 +01:00
Seong-ho Cho 19279f24db Updated Korean translation 2016-03-03 07:18:47 +00:00
Baurzhan Muftakhidinov 4b7c185b3a Updated Kazakh translation 2016-03-03 05:58:38 +00:00
Enrico Nicoletto 382c0ccd96 Updated Brazilian Portuguese translation 2016-03-03 01:35:45 +00:00
Georges Basile Stavracas Neto 09b79e1cc8 Bump 3.19.91 release 2016-03-02 22:28:53 -03:00
Jiri Grönroos b895f0e656 Updated Finnish translation 2016-03-02 20:41:37 +00:00
Yosef Or Boczko 2a5123d206 Updated Hebrew translation 2016-03-02 12:57:35 +02:00
hanniedu beb00450fe Updated Dutch translation Master 3.20 2016-03-02 10:20:55 +01:00
Isaque Galdino 03b2ac9845 year-view: today button not working
Today button in the headerbar was not working when pressed in the
current year.

Button logic to update side panel was only triggered if there was a
change in the chosen year.

Fixed to update side panel whenever date is changed.

https://bugzilla.gnome.org/show_bug.cgi?id=762463
2016-03-02 01:06:52 -03:00
Rūdolfs Mazurs 10ef10b59a Update Latvian translation 2016-03-01 21:31:22 +02:00