Commit Graph
2500 Commits
Author SHA1 Message Date
Yash Singh b7de0f3e1f edit-dialog: set proper limits for number of occurrences
Set the lower value as 1 and upper value as G_MAXDOUBLE
to make sure that any negative number, or a number greater
than G_MAXDOUBLE is not accepted.

https://bugzilla.gnome.org/show_bug.cgi?id=782755
2017-08-10 07:12:10 -03:00
Fran Dieguez 843a30beba Update Galician translation 2017-08-08 22:00:21 +00:00
Marek Cernocky 09229f7561 Updated Czech translation 2017-08-03 10:52:59 +02:00
Balázs Meskó f2f39f6d11 Update Hungarian translation 2017-08-01 13:30:17 +00:00
Kjartan Maraas a9264cd572 Updated Norwegian bokmål translation 2017-07-31 10:39:46 +02:00
Georges Basile Stavracas Neto d11ed85a7f month-view: grey out invalid days
It should be very clear that days outside the current
month are actually not valid. The current drawing
algorithm does not differentiate that, thought, and
draws everything at the same color.

Fix that by greying out the days outside the current
month.

https://bugzilla.gnome.org/show_bug.cgi?id=763771
2017-07-30 16:03:39 +01:00
Matej Urbančič 24919cb81a Updated Slovenian translation 2017-07-28 13:59:57 +02:00
Emin Tufan Çetin a4812d66a0 Update Turkish translation 2017-07-28 10:00:37 +00:00
Baurzhan Muftakhidinov 34e5aa69f8 Update Kazakh translation 2017-07-27 05:54:25 +00:00
Pawan Chitrakar fb5bc31fa1 Add Nepali translation 2017-07-26 05:58:42 +00:00
Daniel Mustieles 82169faf52 Updated Spanish translation 2017-07-25 20:12:22 +02:00
gogo bfb107cba4 Update Croatian translation 2017-07-25 17:06:39 +00:00
Aurimas Černius c771dfb3d9 Updated Lithuanian translation 2017-07-24 22:57:45 +03:00
Yash Singh 9a4b7087d7 edit-dialog: hide/show repeat_limits_box
Instead of hiding the individual children of the
repeat_limits_box, hiding the repeat_limits_box
solves alignment issues, where an undesired gap
was visible below the repeat_combo upon opening
the edit-dialog for the first time.

https://bugzilla.gnome.org/show_bug.cgi?id=782755
2017-07-24 11:44:37 -03:00
Yash Singh 81ce012ed7 edit-dialog: remove unused spin_button_set_value
The number_of_occurrences was forcefully set to 0,
due to spin_button_set_value being placed incorrectly.
When a recurring event with limit_type as
GCAL_RECURRENCE_COUNT, having some 'x' number of
recurrences was opened in the edit-dialog, it showed
'0' as number_of_occurrences in place of 'x', which
is incorrect.

This patch removes this unnecessary line of code
and leads to correct assignment of number_of_occurrences.

https://bugzilla.gnome.org/show_bug.cgi?id=782755
2017-07-24 11:44:37 -03:00
Yash Singh a22bec6de3 edit-dialog: set correct value for repeat_combo
repeat_combo was assigned a value after repeat_duration
combo was assigned a value, which changed the value of the
repeat_duration combo due to the repeat_option_changed
function.

This patch fixes this issue by assigning the value to
repeat_combo prior to repeat_duration_combo.

https://bugzilla.gnome.org/show_bug.cgi?id=782755
2017-07-24 11:44:37 -03:00
Yash Singh 22fca75548 edit-dialog: show/hide Repeat widgets correctly
Currently, the repeat widgets - repeat_duration stack
and combobox are visible even when 'No Repeat' is
selected in repeat combobox.

This patch ensures that the repeat widgets are hidden
when 'No Repeat' is selected. When not selected,
repeat_duration_combo becomes visible which itself takes
care of the visibilty of the stack.

https://bugzilla.gnome.org/show_bug.cgi?id=782755
2017-07-24 11:44:37 -03:00
Yash Singh 6db25eacd6 edit-dialog: remove unnecessary condition check
An unnecessary condition check for assigning recurrence-changed
property of edit-dialog was causing a segmentation fault.

This patch removes this condition check and assigns the
recurrence-changed property correctly.

https://bugzilla.gnome.org/show_bug.cgi?id=782755
2017-07-24 11:44:10 -03:00
Jordi Mas e1429fa6b7 Update Catalan translation 2017-07-23 14:50:31 +02:00
Fabio Tomat 72bdee2199 Update Friulian translation 2017-07-20 15:51:00 +00:00
Daniel Mustieles d0fda154a8 Update Spanish translation 2017-07-20 08:09:55 +00:00
Fabio Tomat d0787df330 Update Friulian translation 2017-07-17 10:06:53 +00:00
Christian Kirbach c7f3ecc225 Update German translation 2017-07-16 16:30:11 +00:00
Dušan Kazik c92e3f7933 Update Slovak translation 2017-07-14 19:46:09 +00:00
Kukuh Syafaat c80c712ca4 Update Indonesian translation 2017-07-14 11:36:25 +00:00
Piotr Drąg e9fc3aa2f8 edit-dialog: replace hyphen with an en dash in ranges
See https://developer.gnome.org/hig/stable/typography.html

https://bugzilla.gnome.org/show_bug.cgi?id=772263
2017-07-13 19:24:26 +02:00
Yash Singh 16bce2425e window: pop up recurrence-dialog only when required
Earlier, the recurrence-dialog would pop up even when user only
wanted to change the recurrence-property of an already recurring
event. This is incorrect behavior.

This patch fixes this issue by making sure that recurrence-dialog
doesn't pop up when the new recurrence-property chosen by the
user is different from what the event already has. In this case,
the user only wants to change the recurence-property of the event
and there's no use of the recurrence-dialog.

https://bugzilla.gnome.org/show_bug.cgi?id=782755
2017-07-13 13:32:55 -03:00
Yash Singh 067e8ae765 edit-dialog: add 'Repeat' options for simple recurrences
Currently, creating recurring events is not supported
in gnome-calendar.

This patch adds a Repeat combobox with a list of
simple recurrences such as:

 * Monday - Friday events
 * Daily events
 * Weekly events
 * Monthly events
 * Yearly events

and also a list of recurrence-duration-types such as:

 * If an event should repeat forever
 * A date until which the event should repeat
 * Number of times an event should repeat

It enables the user to create simple recurring events and
even modify the recurrence-property of an already
recurring event.

https://bugzilla.gnome.org/show_bug.cgi?id=782755
2017-07-13 13:32:53 -03:00
Yash Singh 2c75e72582 event: add recurrence property
Earlier, an event had no recurrence property. Hence, the event's
recurrence pattern etc. could not be analysed, and as a result
could not be changed by the user. gnome-calendar just displayed
all the recurrences of a recurring event but had no 'readable'
knowledge regarding the characteristics of those recurrences.

This patch adds the recurrence property, which is basically
a GcalRecurrence structure linked to the event.

https://bugzilla.gnome.org/show_bug.cgi?id=782755
2017-07-13 13:32:52 -03:00
Yash Singh 59fcd01192 recurrence: add a function to check equality of recurrences
The gcal_recurrence_is_equal function checks if two recurrences are
equal or not. When a user is trying to modify the recurrence-rules
of an already recurring event, this function tells us if the
recurrence-dialog should pop up or not.

This patch also removes some unused code.

https://bugzilla.gnome.org/show_bug.cgi?id=782755
2017-07-13 13:32:49 -03:00
Dušan Kazik f58561fc4b Update Slovak translation 2017-07-13 10:50:19 +00:00
Jordi Mas f05a400360 Update Catalan translation 2017-07-11 19:20:32 +02:00
Georges Basile Stavracas Neto 72a3bb4168 quick-add-popover, event-widget: add translator comments
https://bugzilla.gnome.org/show_bug.cgi?id=784645
2017-07-10 22:57:00 -03:00
Abdullahi Usman 1360fe01e8 week-grid : seperate week's events overlaps.
The week view can display mutilple events that can partly or fully span
same time ranges.

But week view fails to make correct assumption about the width of events when
two or more events span some time ranges in which these events also span some
time ranges with other events, and whereby the number of these other events
that they span time ranges with does not coincide with the number of the events
that the other event also span.  Week view ended up calculating cells that
appears horizontally jointed up.  Also int16_compare() does not dereference the
pointer from g_ptr_array_sort() correctly and that makes it sort events
incorrectly and hence making events appears vertically jointed up.

If an event have other events in which they span some time, we calcuate its width
by taking into consideration of all the events that the other event may span
time with.  The event that has the higher number of time spans is considered.
We also save and retrieve our positions using UINT_TO_POINTER and POINTER_TO_UINT()
respectively, and then dereference the pointer from g_ptr_array_sort() correctly.

https://bugzilla.gnome.org/show_bug.cgi?id=777416
2017-07-10 22:44:43 -03:00
Yash Singh 7ab4036335 recurrence: fix GDateTime to icaltime conversion
The month and year values extracted from until-date
of recurrences were accidentally interchanged.

This patch fixes that issue by making the correct assignment.

https://bugzilla.gnome.org/show_bug.cgi?id=782755
2017-07-10 22:37:26 -03:00
Kukuh Syafaat 1c710769d7 Update Indonesian translation 2017-07-10 11:47:04 +00:00
Fabio Tomat a8236968ec Update Friulian translation 2017-07-07 10:41:47 +00:00
Yash Singh 27bb337f54 recurrence: Add recurrence struct to parse recurrence-rules
Currently, gnome-calendar has no component to deal
with recurrence-rules of events. This missing component
is however required to create and modify recurring events.

This patch adds the required GcalRecurrence component
which parses the recurrence-rules with details like:

 * Frequency of the recurring event
 * Duration of the recurrences:
	** If they repeat until a particular date
	** If they repeat a fixed number of times
	** If they repeat forever

and then stores these details in a suitable format
in the GcalRecurrence structure. The gcal-recurrence
functions simplify the task of handling and editing
recurrences. This structure is the first step towards
creating a new 'recurrence' property of an event.

https://bugzilla.gnome.org/show_bug.cgi?id=782755
2017-07-04 10:32:48 -03:00
Balázs Meskó 4b4b8d23e5 Update Hungarian translation 2017-07-02 14:17:06 +00:00
Yuras Shumovich 13333f1846 Update Belarusian translation 2017-06-28 14:04:55 +00:00
Daniel Mustieles 85f18209a3 Update Spanish translation 2017-06-24 15:07:56 +00:00
Daniel Mustieles 4d138b619c Updated Spanish translation 2017-06-24 16:55:53 +02:00
Baurzhan Muftakhidinov b74c9c8b77 Update Kazakh translation 2017-06-23 14:25:12 +00:00
Daniel Mustieles 9f1a5795aa Update Spanish translation 2017-06-23 12:27:08 +00:00
Abdullahi Usman 0a02a1269b event-widget : Add/rework new event sort function
The overflow layout used to display "Other X events" text when
there is no enough space to accomodate more events.

But due to the way the events were sorted, some events are folded to
'Other events' popover even when the cell has enough space to accomodate
the event(s) or when it is not required to be folded.

We rework how the events will be sorted.  First, the events are sorted by their
start dates(starting with the closest).  But if two or more events have same start date
then they are sorted according to their lengths.  And still if they have same start
date and length then they are sorted according to their modified times(the closest first).

https://bugzilla.gnome.org/show_bug.cgi?id=778478
2017-06-23 04:17:26 -03:00
Carlo Lobrano 9033d987a3 quick-add-popover: improve event title in header
Currently when creating new events, in both week and month view,
the popover header shows just the date

e.g.
	"New Event on April 29"
	"New event from April 29 to May 2"

It could be better to show fancier headers with relative dates

e.g.
	"New Event Today",
	"New Event Tomorrow",
	"New Event next Monday",
	"New Event from Tomorrow to May 2"

With this patch I change the header title according to the above
logic

https://bugzilla.gnome.org/show_bug.cgi?id=747479
2017-06-23 03:59:01 -03:00
Georges Basile Stavracas Neto 60067433c3 Bump 3.25.3 release 2017-06-19 17:11:30 -03:00
Daniel Mustieles cfdcba663d Updated Spanish translation 2017-06-19 17:32:17 +02:00
Milan Crha e07590d1cf window: remove refresh timeout on exit
https://bugzilla.gnome.org/show_bug.cgi?id=783441
2017-06-18 14:54:50 -03:00
Balázs Meskó a8cff62666 Update Hungarian translation 2017-06-17 08:27:19 +00:00