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
Georges Basile Stavracas Neto
9b56010b12
event-editor/date-chooser: Port to GTK4
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto
e138a35a6b
event-editor/alarm-row: Port to GTK4
...
Subclass AdwActionRow.
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto
97456e3428
date-chooser-day: Port to GTK4
...
Subclass AdwBin. Remove unnecessary GtkWidget overrides.
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto
0751c2e93c
event-editor/schedule-section: Show times in local timezone
...
Preserve the original timezone when editing, but always display
the start and end times in local timezone.
2021-12-07 13:32:16 -03:00
Adrien Plazas
977673ad02
event-editor-dialog: Better style sections
...
This gives them rounded corners and separators.
2021-10-15 16:31:00 +02:00
Adrien Plazas
660d3300b2
event-editor-dialog: Use HdyPreferencesGroup and HdyPreferencesPage
...
This helps simplifying the code a bit and standardizing it with the rest
of GNOME.
2021-10-15 16:30:54 +02:00
Adrien Plazas
598e9814fc
event-editor-dialog: Make it resizable
...
This also sets a reasonable default height and stops giving the scrolled
window a max height. This will allows it to fit in phone screens.
2021-10-15 16:27:09 +02:00
Georges Basile Stavracas Neto
efe60e10d1
notes-section: Remove scrolled window
...
The entire dialog is wrapped under a scrolled window, it
doesn't make much sense to have yet another one for the
notes. This is a relif of times when the edit dialog didn't
have a scrolled window.
Remove the scrolled window of the notes section.
2020-11-10 15:00:59 +00:00
Georges Basile Stavracas Neto
7a5580980b
summary-section: Use expandable entries
...
Now the entry grows as much as possible to accomodate the
text.
Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/153
2020-11-10 15:00:59 +00:00
Georges Basile Stavracas Neto
d41af9f8a0
summary-section: Set max-width-char on entries
...
We want them to grow a bit more, and not let the expansion
of the title label detemine the width. Allow the location
and title entries to expand, and set a maximum width char
to 30 on them.
See https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/554
2020-11-10 15:00:59 +00:00
Dan Levin
8b251d5a98
reminders-section: Introduce 15 minute reminder
...
10 minute reminder is too little advanced notice. 30 minutes is too
much. Say hello to 15 minute reminder.
2020-11-02 17:05:31 +01:00
Georges Basile Stavracas Neto
06f0c4d011
schedule-section: Make date & time labels dim
...
They should have been dim labels since the beginning, this was an
oversight.
2020-10-31 16:15:54 -03:00
Georges Basile Stavracas Neto
b481b40381
schedule-section: Mark date & time labels as action children
...
Otherwise they appear inside the expanded section, and not outside like
we wanted. This was a regression from the libhandy 1.0 port.
2020-10-31 16:15:54 -03:00
Georges Basile Stavracas Neto
b725d25b86
schedule-section: Remove useless labels
...
They're placeholders, and always overriden. Remove them.
2020-10-31 16:15:54 -03:00
Georges Basile Stavracas Neto
4c24103bae
event-editor-dialog: Make 'event' property read-only
...
It is not meant to be set externally.
2020-10-31 16:15:54 -03:00
Georges Basile Stavracas Neto
b0cdca78b1
event-editor-dialog: Unify set_event and set_event_is_new
...
The split is annoying, and a relic of time.
2020-10-31 16:15:54 -03:00
Georges Basile Stavracas Neto
7e10c6d451
event-editor-dialog: Stop using response type
...
Using dialog responses to communicate intent to GcalWindow was always
a hack, and as the code is cleaned, it's getting increasingly annoying.
Replace this with a proper 'remove-event' signal ('delete-event' would
conflict with the equally named GTK signal), remove the custom response
types, and cleanup the code.
2020-10-31 16:15:54 -03:00