Georges Basile Stavracas Neto
966411843a
event-editor/dialog: Don't show MOD_ALL if schedule changed
...
We get into seriously tricky situations if we try and change the
date & time of an event with recurrency, and pass MOD_ALL. That's
because it is ambioguous *where* the change must be applied.
Don't allow selecting MOD_ALL when the scheduling of the recurrent
event changes.
Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/882
2022-10-17 23:37:13 -03:00
Georges Basile Stavracas Neto
df5b9e7821
event-editor/dialog: Don't apply changes if nothing changed
...
This saves some cycles by not doing anything when nothing needs to
be done.
2022-10-17 23:37:13 -03:00
Georges Basile Stavracas Neto
82d8ec31ca
event-editor/sections: Add vfunc to check for changes
...
This will be useful for next commits where we will need to check
if the schedule section actually changed something.
2022-10-17 23:37:13 -03:00
Georges Basile Stavracas Neto
dbd2f0df58
event-editor/dialog: Don't apply changes to readonly events
...
In practice this never does anything relevant, because widgets are
insensitive, but it's better not to nonetheless.
2022-10-17 23:37:13 -03:00
Georges Basile Stavracas Neto
6a5c0229b9
utils: Add boolean flag for showing MOD_ALL
...
This will be used by next commit to more finely control editing
of recurrent events.
2022-10-17 23:37:13 -03:00
Milan Crha
5e72aa53f2
gcal-event-editor-dialog: Use user-chosen mode in on_ask_recurrence_response_save_cb()
...
...to do what the user asked for.
Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/871
2022-10-05 15:39:57 +00:00
Milan Crha
15ce841a6c
gcal-date-chooser: Update also combined_choice in set_date()
...
Thus it's in sync with the rest of the date chooser.
Also use a common function to replace `self->date` value.
Related to https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/868
2022-10-05 15:10:47 +00:00
Florian Müllner
80d803d125
date-chooser: Update combined-choice on date changes
...
Otherwise the header will not reflect the active date.
https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/876
2022-10-05 14:59:22 +00:00
Christopher Davis
905128cc69
event-editor: Use AdwEntryRow
2022-07-07 12:53:22 -04:00
Adrien Plazas
051212f44b
multi-choice: Fix the indentation
...
It was left purposefully broken in the previous commit.
2022-06-16 08:23:45 -03:00
Adrien Plazas
b031c9591a
multi-choice: Add the popover property
...
This allows a multi choice's label to be clicked to reveal a popover. It
is needed by the date chooser, to have a combined month and year choice
that can be split in two via a popover.
This leaves the indendation purposefully broken to ease reviewing the
actual changes.
2022-06-16 08:23:45 -03:00
Adrien Plazas
78931df46c
date-chooser: Add the split-month-year property
...
This allows unifying the month and year selectors into a single month
and year selector by setting it to false.
2022-06-16 08:23:44 -03:00
Adrien Plazas
db0f07136c
date-chooser: Implement GcalView
...
This also replace the date property by the overridden active-date one
ans adds the context property.
2022-06-16 08:22:45 -03:00
Adrien Plazas
6cb57b0ad5
date-chooser: Add the show-events property
...
This allows showing events from the timeline via a dot.
2022-06-16 08:19:49 -03:00
Adrien Plazas
b5d8575445
date-chooser: Implement GcalTimelineSubscriber
...
This allows the date chooser to receive events from the timeline, and
will allow it to show them via a dot.
2022-06-16 08:19:47 -03:00
Adrien Plazas
9911386706
date-chooser: Add the show-selected-week property
...
If enabled, the selected week will be made visible.
2022-06-16 08:16:04 -03:00
Adrien Plazas
7b5a934250
date-chooser: Use ROWS and COLS macros
...
This makes the code easier to read and update.
2022-06-16 08:16:04 -03:00
Adrien Plazas
54e0a5784c
date-chooser-day: Add .non-workday class to the current day
...
This will help making the non worked days let prominent.
2022-06-16 08:15:51 -03:00
Adrien Plazas
21895416f3
date-chooser-day: Add the .today style class to the current day
...
This will help making the current day pop out a bit.
2022-06-16 08:14:54 -03:00
Adrien Plazas
d76617f809
date-chooser-day: Automatically free the string
2022-06-16 09:29:16 +02:00
Adrien Plazas
7198ce41f9
date-chooser-day: Add the has-dot and dot-visible properties
...
This allows the days to display events.
2022-06-16 09:29:16 +02:00
Adrien Plazas
0ff62c4314
date-chooser-day: Always have the size of two characters
...
This ensures the size will be consistent for all days.
2022-06-16 09:29:16 +02:00
Adrien Plazas
b5841e1100
date-chooser-day: Use the numeric style class
...
This ensures the digits are well aligned.
2022-06-16 09:29:16 +02:00
Adrien Plazas
a58fa3deb8
date-chooser-day: Use a template
...
This makes the widget easier to maintain.
2022-06-16 09:29:16 +02:00
Adrien Plazas
f9c4501d6c
date-chooser-day: Make it a button
...
This stops reimplementing a flat button and use GtkButton directly
instead.
2022-06-16 09:29:16 +02:00
Adrien Plazas
24713fbb65
date-chooser: Drop the unused month-changed signal
...
It's never emitted or connected to.
2022-06-15 01:36:49 +00:00
Adrien Plazas
4f15556d31
date-chooser: Drop the unused no-month-change property
...
It's never set.
2022-06-14 22:20:57 -03:00
Adrien Plazas
13b648082f
date-chooser: Drop the unused GcalDateChooserDayOptions
2022-06-15 01:05:41 +00:00
Adrien Plazas
5de0694479
date-chooser-day: Drop the unused options setter
...
The options are never set, so let's just drop the methods setting them.
2022-06-15 01:05:41 +00:00
Adrien Plazas
91afd1b06d
date-chooser: Drop the unused day options callback
...
The day options callback is never set, so let's just drop it and all its
methods.
2022-06-15 01:05:41 +00:00
Abdullahi Usman
659fdca460
event-detail: Grey out already added reminder in drop-down list
2022-05-25 13:35:08 +00:00
Adrien Plazas
aecfebcc9d
Use gtk_widget_add/remove_css_class() where possible
...
This makes the code simpler and more idiomatic to GTK 4.
2022-05-10 13:01:25 +02:00
Yosef Or Boczko
301beb2534
time-selector: Put the spinbuttons in a box and force it to be LTR
...
#558
Signed-off-by: Yosef Or Boczko <yoseforb@gmail.com >
2022-05-06 14:09:45 +00:00
Adrien Plazas
6b389005e0
event-editor-dialog: Drop the useless transient_size_allocate_cb()
...
This drops the transient_size_allocate_cb() callback function that in
practice does nothing at all. This also fixes an error message as the
size-allocate signal doesn't exist anymore in GTK 4.
2022-05-06 08:40:26 +02:00
Adrien Plazas
fd036d24d3
date-chooser: Don't show the already visible label
...
This is likely a GTK 3 to 4 leftover.
2022-04-07 09:33:03 +02:00
Adrien Plazas
65569e199e
date-chooser: Don't show the already visible days
...
This is likely a GTK 3 to 4 leftover.
2022-04-07 09:33:03 +02:00
Adrien Plazas
4186624278
date-chooser: Don't force showing the week numbers
...
This avoids breaking the state correctly set by the the binding on the
previous instruction.
2022-04-07 09:33:03 +02:00
Björn Daase
ad7ff65a4d
event-editor/schedule-section: Fix localization mix
...
The gcal_util_translate_time_string function is a plain copy of
gnome-shells shell_util_translate_time_string solving the same problem.
Fixes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/581
2022-02-12 17:43:49 +01:00
Björn Daase
02343e6b37
event-editor/schedule-section: Simply switch-case statement
2022-02-12 17:37:11 +01:00
Georges Basile Stavracas Neto
69d320f49c
event-editor/dialog: Improve calendar selection menu
2022-02-12 13:24:57 -03:00
Georges Basile Stavracas Neto
47a72f8156
event-editor-dialog: Port to new callback-based ask API
2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto
e390706e44
event-editor/time-selector: Port to GTK4
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto
b5dc363a3b
event-editor/summary: Port to GTK4
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto
333b8ecc2a
event-editor/schedule: Port to GTK4
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto
c0365a1681
event-editor/reminders: Port to GTK4
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto
d32be45273
event-editor/notes-section: Port to GTK4
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto
0f7a0db138
event-editor/dialog: Port to GTK4
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto
2139f40e67
project: Adjust color rendering to use GdkPaintable
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto
760d74686d
event-editor/date-selector: Port to GTK4
...
Needed some popover management, but otherwise uneventful.
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto
4506fb7477
event-editor/multi-choice: Port to GTK4
2022-02-11 09:18:38 -03:00