Alexander Mikhaylenko
7144300a49
application: Support dark style preference
...
Depend on libhandy 1.5.0.
2021-12-11 17:25:49 +05:00
Michael Webster
a0aa36b6d2
application: Fix tm -> GDateTime year conversion
...
g_date_time_new() expects an actual year, while the tm struct
only provides the number of years since 1900.
ref:
https://pubs.opengroup.org/onlinepubs/7908799/xsh/time.h.html
2021-12-10 14:20:13 -05:00
Georges Basile Stavracas Neto
2697dac460
import-dialog: Also import timezones
...
Some calendars provide custom timezones, and set events to
them. We need to account for that when importing calendars.
Original patch proposed by Milan Crha.
Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/444
2021-12-08 17:18:16 -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
Georges Basile Stavracas Neto
fc3ad22169
event-popover: Display times in local timezone
...
Convert the start and end datetimes to the local timezone
before displaying them.
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
f1ac400e5d
Drop gnome-online-accounts dependency
...
We don't need it anymore.
2021-10-13 13:48:09 -03:00
Georges Basile Stavracas Neto
8f715c19b5
application: Move CSS providers to GcalWindow
2021-09-05 18:34:32 -03:00
Georges Basile Stavracas Neto
229b6f7add
window: Silence a compilar warning
2021-09-05 18:07:27 -03:00
Georges Basile Stavracas Neto
52ef8ff6bf
application: Only add CSS providers once
...
Instead of adding the color CSS provider over and over on
every activation, only add it once. Also make sure to start
the manager after doing that.
2021-08-19 14:26:06 -03:00
Georges Basile Stavracas Neto
7fd8babdda
application: Activate on open
...
Otherwise, there might be no window available.
2021-08-16 19:48:09 -03:00
Georges Basile Stavracas Neto
7bf8d8851b
application: Add weak ref to window
2021-08-16 19:47:54 -03:00
Georges Basile Stavracas Neto
440bb39498
window: Add weak pointer to import dialog
...
Otherwise we crash the second time it's opened.
2021-08-16 19:07:35 -03:00
Georges Basile Stavracas Neto
e689f18b1e
Add file importing dialog
...
Add a file importing dialog, and pass through files received from command
line.
Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/5
2021-08-16 18:26:21 -03:00
Georges Basile Stavracas Neto
aec1d8d5cd
calendar-page: Add rounded corners to listbox
2021-08-06 17:37:40 -03:00
Georges Basile Stavracas Neto
8c71c60e8d
calendar-management: Switch to HdyWindow
...
Make GcalCalendarManagementDialog an HdyWindow subclass,
and adapt the widgetry to work with the new parent class.
Use HdyHeaderBar everywhere.
2021-08-06 17:32:58 -03:00
Georges Basile Stavracas Neto
68160348dc
Introduce GcalEventPopover
...
GcalEventPopover gives a preview of the event, and handy access
to the event description and information. It also allows easily
joining meetings if any one if available.
The list of supported meeting URLs is small now, but I hope
more people will contribute as we go.
It is also possible to edit the event through an edit button.
2021-06-27 18:45:12 -03:00
Georges Basile Stavracas Neto
7079cf2a80
quick-add-popover: Properly localize string arrays
...
N_() only marks strings for translation, it is necessary to call gettext()
when using the strings.
2021-06-21 18:34:53 -03:00
Georges Basile Stavracas Neto
bdce9b29ba
quick-add-popover: Don't leak GDateTime
...
Not sure how this went through.
2021-06-21 18:34:52 -03:00
Georges Basile Stavracas Neto
a7d40352b7
quick-add-popover: Mark string arrays const
...
As they really are.
2021-06-21 18:34:50 -03:00
Rajat Jain
19ee70f9ab
window: Add missing keyboard shortcut
...
Add missing accelerator for <Alt>+Down as it was
mentioned in shortcuts dialog but not implemented.
Fixes #492
Signed-off-by: Rajat Jain <rajatjain.ix@gmail.com >
2021-05-11 19:11:31 +00:00
Johannes Maibaum
78d0df1404
window: Remove nested CLAMP() on switching views
2021-04-11 19:06:38 +02:00
Johannes Maibaum
4c51539168
window: Fix GcalWindow's change-view accelerators
...
Commit 2d5b1aa9d1 removed the
GCAL_WINDOW_VIEW_DAY variant of the GcalWindowView enum. Since then, the
change-view accelerators to switch to GCAL_WINDOW_VIEW_{WEEK,MONTH,YEAR}
were broken, as the accelerator setup was assuming
GCAL_WINDOW_VIEW_WEEK==1, which isn't true anymore with
GCAL_WINDOW_VIEW_DAY being gone.
This change fixes the enum values in the accelerator setup.
2021-04-11 19:06:05 +02:00
Christopher Davis
709cfb75fa
gui: Use HdyViewSwitcher
...
For GNOME 40 apps should migrate to use HdyViewSwitcher.
For now, this does not mean full adaptivity.
2021-02-14 16:34:13 +00:00
Eric Daigle
a93ae8778a
new-calendar-page: add callback for new calendar color chooser
...
The color chosen in the new calendar page is currently ignored
when creating a new calendar, as described in #681 .
Added a callback similar to that used for the name text entry,
allowing new calendars to be created with the chosen color.
Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/681
2021-02-14 16:01:11 +00: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
b4fedbbba5
Introduce GcalExpandableEntry
...
This is simply a copy-past of GNOME To Do's GtdExpandableEntry.
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
a146b9050d
project: Silence CI warnings
2020-10-31 16:55:06 -03: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
968ae16e08
window: Use leaf type for GcalEventEditorDialog
...
We're casting either way, to at least let's cast to something
that requires fewer characters.
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
Georges Basile Stavracas Neto
1480d7ac70
event-editor-dialog: Code cleanup
...
Use g_autofoo when possible; avoid allocating new strings when fetching
from GVariant; sort and reorder fields.
2020-10-31 16:15:54 -03:00
Georges Basile Stavracas Neto
c098dc7aa7
event-editor-dialog: Store sections in an array
...
It allows us to simplify some boring copy-pasted code.
2020-10-31 16:15:54 -03:00
Georges Basile Stavracas Neto
3a9f9009a4
event-editor-dialog: Remove dead code
...
These weren't being used anywhere.
2020-10-31 16:15:54 -03:00
Georges Basile Stavracas Neto
0f1dc88030
event-editor-dialog: Move notes to GcalNotesSection
2020-10-31 16:15:49 -03:00
Georges Basile Stavracas Neto
73cbe1f39c
event-editor-dialog: Move summary to GcalSummarySection
2020-10-31 13:30:56 -03:00
Georges Basile Stavracas Neto
46aee00f65
event-editor-dialog: More schedule to GcalScheduleSection
2020-10-31 13:30:56 -03:00
Georges Basile Stavracas Neto
997f6bb671
event-editor-dialog: Move reminders to GcalRemindersSection
...
Move all widgetry, logic, and setup to GcalReminderSection.
2020-10-31 13:30:56 -03:00
Georges Basile Stavracas Neto
a839a0d860
Introduce GcalEventEditorSection
...
This is the interface to represent sections of the event editor
dialog.
2020-10-31 13:30:56 -03:00
Georges Basile Stavracas Neto
f9c466a1be
event-editor-dialog: Notify context when setting property
...
The 'context' property is set a explicit notify property, meaning we have
to manually notify it when setting it.
2020-10-31 13:30:56 -03:00
Georges Basile Stavracas Neto
b4029b0c23
edit-dialog: Rename to GcalEventEditorDialog
2020-10-31 13:30:56 -03:00