Commit Graph
1841 Commits
Author SHA1 Message Date
fosero feedfa4be5 gtk-styles.css: adapt to GTK+ 3.21 CSS strictness
GTK+ 3.21 is stricter about CSS values having a unit defined. Fix the
gnome-calendar CSS accordingly.

https://bugzilla.gnome.org/show_bug.cgi?id=765698
2016-05-20 11:20:53 -03:00
Georges Basile Stavracas Neto a83e8dd972 year-view: calculate number of rows on-the-fly
Instead of adding another field to the structure and
do many pointer lookups, calculate the number of rows
on the fly.
2016-05-19 09:57:42 -03:00
Georges Basile Stavracas Neto e6c9ecd7eb month-view: clear the pointer when it's not stored in place
It leaks a reference, but only happens for end date.
2016-05-18 11:57:43 -03:00
Georges Basile Stavracas Neto 12e6de6383 month-view: update comments
Many things changed during the mean time.
2016-05-18 11:51:10 -03:00
Georges Basile Stavracas Neto 266474c1e3 month-view: correctly check if dates are different
The previous commit introduced many changes in the way
the conditions are done. Unfortunately, one of these
conditions was only partially fixed.

Fix that by using the correct function to compare dates.
2016-05-18 11:27:11 -03:00
Georges Basile Stavracas Neto 692a9639a3 month-view: fix various reference issues with GDateTime
The current code does multiple needless unrefs, uses the
GDateTime API in a wrongly manner and leaks references
all around.

This causes the Calendar application to emit multiple warning
messages and in the worst case, crash immediately.

Fix that by rewriting the critical sections of the code that
deals with the start and end mark cells.

https://bugzilla.gnome.org/show_bug.cgi?id=763641
2016-05-18 11:20:00 -03:00
Isaque Galdino 3ead41b83f year-view: show all month's events
User requested when clicking month's name, all month's events are shown
in the sidebar.

https://bugzilla.gnome.org/show_bug.cgi?id=755394
2016-05-17 11:28:08 -03:00
Isaque Galdino 97d8859574 year-view: Remove hardcoded values
Improve year-view code, removing hardcoded values.

year-view have hardcoded values for grid cell sizes (width and height).
Those values need to be recalculated every time a change in font or any
other style are changed.

Sidebar width was also hardcoded instead of getting its value directly
from the ui file. That would prevent it from drawing the content
accordingly when ui file is changed.

This patch fixes those two issues by retrieving those values from CSS or
ui files.

This patch also adds code to resize and redraw the window when
show-week-numbers property is changed.

Popover mode was also changed and now sidebar will always be shown when
show-week-numbers is set or when there is space for only 3 or less
columns.

https://bugzilla.gnome.org/show_bug.cgi?id=753533
2016-05-16 12:03:39 -03:00
Sveinn í Felli 32a3a8f530 Updated Icelandic translation
(cherry picked from commit 05406537bc9825282671ca1f11ef620d9d866996)
2016-05-15 13:54:30 +00:00
Cédric Valmary 365788e7eb Updated Occitan translation 2016-05-09 15:54:50 +00:00
Georges Basile Stavracas Neto b03edc6cd4 theme: drop .views CSS class
The default class for content viewers in Gtk+ is .view and
ideally provided by the theme. Not only that, but it provides
the exact same functionality of ours, but in a way that is
overridable for theme designers.

Fix this issue by removing the class from out CSS.

https://bugzilla.gnome.org/show_bug.cgi?id=765664
2016-05-08 14:45:57 -03:00
Isaque Galdino 5e05f99876 build: define first week day in the build script
Calendar is not handling locale correctly, e.g. user’ set language to
English (en-us) and format to Norwegian (nb-no), but Calendar assumes
English format rather than Norwegian.

Calendar code was ready to use the correct format, just like Shell and
GtkCalendar. The issue was in the build script which was setting the
correct locale variable responsible to make that code work.

This patch fixes the build script.

https://bugzilla.gnome.org/show_bug.cgi?id=762428
2016-05-08 14:30:00 -03:00
Georges Basile Stavracas Neto 48df0903e5 month-view: consider the top padding for the extra events popover
When the mouse button is released, only the bottom padding was being
taken into account to calculate whether the click was in the "Show
N events" area.

This commit fixes this issue by considering the top padding as well.

https://bugzilla.gnome.org/show_bug.cgi?id=765678
2016-05-08 14:14:56 -03:00
Tiago Santos 5d825316d4 Updated Portuguese translation 2016-04-30 15:35:02 +00:00
GNOME Translation Robot 893214c1a1 Updated Scottish Gaelic translation 2016-04-22 09:00:54 +00:00
Thadeu Lima de Souza Cascardo c941326230 source-dialog: protect against NULL user address
e_webdav_discover_sources_finish can discover no user addresses and
return a NULL user_addresses. Check for that before calling
e_source_webdav_set_email_address.

https://bugzilla.gnome.org/show_bug.cgi?id=765170
2016-04-17 10:01:27 -03:00
Arash Mousavi 23bb24edf5 Update Persian translations 2016-04-09 01:46:46 +04:30
Fabio Tomat 5ed524ae4a Updated Friulian translation
(cherry picked from commit 75c9c9bcf8de34d1bbe64f1216c93649963784d0)
2016-04-08 16:17:18 +00:00
fosero 12ad480672 window.ui: Don't destroy GcalSourceDialog on close.
Since the change in d5cd6c7fc9 closing
the source dialog actually destroyed it and could not be used again.

Use gtk_widget_hide_on_delete to handle the delete-event.

https://bugzilla.gnome.org/show_bug.cgi?id=764280
2016-04-07 18:37:17 -03:00
Shi Jing 0fd766edf5 Update zh_CN translation 2016-04-06 21:41:42 +08:00
Milo Casagrande 8602afd99b Updated Italian translation
(cherry picked from commit 34984759c46a806c5665bd999db285e85f812bb7)
2016-04-04 19:26:37 +00:00
Georges Basile Stavracas Neto 4e735ef3ce build: define ABOUT_NLS when configuring
This fixes the various translation issues throughout
Calendar.

https://bugzilla.gnome.org/show_bug.cgi?id=764333
2016-03-29 20:41:04 -03:00
Javier Sánchez Ochando 043cca24b6 window: make Today button insensitive when today is visible
When a view shows the current day, the Today button should be insensitive.
This patch makes today button sensitive only when today is not shown.

https://bugzilla.gnome.org/show_bug.cgi?id=747963
2016-03-27 11:26:39 -03:00
pandusonu2 a3cbaf1e81 month-view: selection across months
In this commit we change the data type of start_mark_cell and end_mark_cell to GDateTime from gint

Currently, the mark_cell's are gint and while moving across months, they cause a problem as they don't take the new month into consideration but the cell value of the selector.

To fix this, we changed the data type of the mark_cell's and modified all the functions dependant on it.

https://bugzilla.gnome.org/show_bug.cgi?id=763641
2016-03-26 17:31:25 -03:00
Dušan Kazik 640b326de6 Updated Slovak translation
(cherry picked from commit 62ddce8c8a83991a8fe6afd9efc4a034b1801ed8)
2016-03-26 10:17:38 +00:00
Andreas Henriksson 724db9973f build: Require GTK+ 3.19.1
Code already uses new API gtk_widget_class_set_css_name which
was introduced in that version.
2016-03-25 08:13:16 +01:00
Cheng-Chia Tseng d5d0bf1223 Updated Chinese (Taiwan) translation
(cherry picked from commit fee79f7f770fa7c2e8a30f6c4716025244286d25)
2016-03-24 17:32:29 +00:00
Muhammet Kara dfb7e7a150 Updated Turkish translation
(cherry picked from commit d07163e19a0e05153e1fb320cd7a52e6282fb25d)
2016-03-23 22:16:14 +00:00
Inaki Larranaga Murgoitio 6871b59ea2 Updated Basque language 2016-03-23 13:42:27 +01:00
Matej Urbančič c5a22bbcfc Updated Slovenian translation 2016-03-22 22:26:41 +01:00
Daniel Korostil 772c04cd98 Updated Ukrainian translation 2016-03-22 22:14:05 +02:00
Dušan Kazik 18c6b7de20 Updated Slovak translation
(cherry picked from commit 6f016d8adeecfa02ec9b6152555c05fb10bc7c21)
2016-03-22 06:54:39 +00:00
Guillaume Bernard 90d6cf7466 Updated French translation 2016-03-21 13:34:39 +00:00
Jiro Matsuzawa 179068aba3 Updated Japanese translation 2016-03-21 12:06:20 +09:00
Ask Hjorth Larsen 15de944657 Updated Danish translation 2016-03-20 23:32:18 +01:00
Fabio Tomat 78fcb8d47b Updated Friulian translation
(cherry picked from commit 9490036aa05b191ea9fd8527cd1966e8d0169ce4)
2016-03-20 21:46:05 +00:00
Hannie Dumoleyn a8bc32b0b0 Updated Dutch translation Master 3.20 2016-03-20 11:05:12 +01:00
Милош Поповић b3a67a2f87 Updated Serbian translation 2016-03-20 08:03:52 +00:00
Ask Hjorth Larsen 7479fed64b Updated Danish translation by scootergrisen 2016-03-19 02:06:34 +01:00
Anders Jonsson 23141b69f2 Updated Swedish translation 2016-03-18 23:17:41 +00:00
Dušan Kazik dafa1e297b Updated Slovak translation
(cherry picked from commit 83dad2b1dc8f4593582e0c830cf9dbe4a7908470)
2016-03-18 06:33:48 +00:00
Milo Casagrande a7682f7412 Updated Italian translation
(cherry picked from commit 71e95e0a42760020887545ff1ef7ceb1132c6670)
2016-03-17 19:43:38 +00:00
Aurimas Černius 12ee1c177b Updated Lithuanian translation 2016-03-17 21:39:54 +02:00
Enrico Nicoletto 9a6f2923ac Updated Brazilian Portuguese translation 2016-03-17 11:17:19 +00:00
Baurzhan Muftakhidinov 5fe2e3abcc Updated Kazakh translation
(cherry picked from commit c62c8d3aabdef2dc487d331c4e4ef5e2af1cdab2)
2016-03-17 03:31:48 +00:00
Seong-ho Cho d22eb47aed Updated Korean translation
(cherry picked from commit 0769049571aeed61d38421a260a42686ca697b57)
2016-03-16 19:53:24 +00:00
Jiri Grönroos 4a2317d271 Updated Finnish translation
(cherry picked from commit f2c54eeee40b82bd32f409fed9eedf45c66c22c7)
2016-03-16 16:27:30 +00:00
Balázs Meskó 094176d88a Updated Hungarian translation
(cherry picked from commit 31c878245b074bdd5d4030fd63bef75615804d02)
2016-03-16 15:12:00 +00:00
Marek Černocký 3b93c608ef Updated Czech translation 2016-03-16 11:13:06 +01:00
Daniel Mustieles f3934a0f62 Updated Spanish translation
(cherry picked from commit 3ff564798354a76f645bfded79b4c6a93b04f743)
2016-03-16 08:46:30 +00:00