Jan-Michael Brummer
ef5935f1fa
event-popover: Add support for Teams links
...
Add a separate function to extract the description and the URL from a
Teams-formatted event. Add a test for this as well.
Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/work_items/1312
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/753 >
2026-05-26 19:55:25 -03:00
Hari Rana
088d826c34
gui/importer: Replace "context" property with context getter method
...
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/702 >
2026-03-23 19:30:04 +00:00
parzival
22e5ff6252
calendar: Fix DTEND handling for all-day events in ICS import preview
...
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/694 >
2026-02-10 03:14:03 +00:00
Hari Rana
be0ba51481
gui: Replace dim-label with dimmed style class
...
`dim-label` is deprecated.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/624 >
2025-08-18 18:37:25 -04:00
Jamie Gravendeel
a509de8b1e
gui: Port to Blueprint
...
This was mostly done with `blueprint-compiler port`.
Since Blueprint doesn't know about custom templates, I had to manually change some values from strings to literals.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/567 >
2025-06-08 14:31:01 +02:00
Federico Mena Quintero
3c38a272b8
gui/importer/import-dialog: Remove superfluous assignment
...
The variable is initialized where it is declared.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/581 >
2025-05-28 18:08:54 +00:00
Federico Mena Quintero
8c2daf672b
gui/importer/import-dialog: Remove an unused variable
...
Looks like a cut&paste error.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/581 >
2025-05-28 18:08:54 +00:00
Titouan Real
3ca07464a2
Make GcalImportDialog use GcalCalendarComboRow
2024-11-08 19:09:56 +01:00
Georges Basile Stavracas Neto
6b92164ff2
importer: Don't duplicate string unnecessarily
2024-11-06 10:05:27 -03:00
Georges Basile Stavracas Neto
2d75d3fb30
importer: Assert instead of trace
...
We go to great lengths to convert to UTF-8, so it's only fair to
expect it to be UTF-8
2024-11-06 10:04:26 -03:00
Georges Basile Stavracas Neto
fa88b4999c
importer: Cosmetics
2024-11-06 10:04:03 -03:00
Otávio Silva
98ced271ef
importer: convert different file encodings to UTF-8
...
Files that aren't in the UTF-8 encoding were breaking the import dialog.
This tries to guess the encoding of the file before processing it, based
on the Byte Order Mark (BOM), and converts it to UTF-8.
Fixes #1243
2024-11-05 21:10:29 +00:00
Jean-François Fortin Tam
f7aadd23bb
import-dialog: Add a11y description on "hidden" calendar status icons
2024-08-27 15:25:22 -04:00
Jean-François Fortin Tam
7566bf273b
import-dialog: Show indicator icons for invisible calendars
...
When importing .ics files as events,
you can assign the resulting events to any writable calendar,
even those hidden from the view.
However, it is good to have a hint of such calendars being invisible.
That way, users can have predictable expectations.
Fixes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1184
2024-08-27 15:04:03 -04:00
Jean-François Fortin Tam
f76659c706
import-dialog: Move parent source name color code
...
Reading the `get_source_parent_name_color` call after `color_paintable`,
one gets the impression they are somehow related, but they are not.
Furthermore, this unfortunate location complicates my upcoming changes.
Let's relocate that code next to the context where it is actually used.
This improves clarity and maintainability.
2024-08-27 14:45:49 -04:00
Diego Iván M.E
2df48b6fc2
import-dialog: Fix default calendar search
...
By !474 , we now use a GListModel to store the calendars.
Nonetheless, we still use the GListStore API, which no longer
works.
This commit introduces a simple linear search for the default calendar
2024-08-27 13:40:28 +00:00
Hari Rana
d7131d5141
import: Only list writable calendars
2024-08-23 13:46:00 -03:00
Enzo MAROS
5addd751fa
import-dialog: Port to AdwSpinner
2024-08-06 17:27:36 +00:00
Diego Iván
7e4a4ca99b
import-dialog: Adjust dialog to content size
...
Ports the import dialog out of AdwPreferencesPage to
modify some properties of the ScrolledWindow so the dialog
does the sizing as expected
This avoids scrolling when the natural height of the contents
fits within the window
2024-08-05 15:54:23 +00:00
Diego Iván
75ad1425e7
import-dialog: Add a toast overlay
...
This toast overlay will be used to display error messages
in import operations, namely, files that could not be
imported in a drag and drop operation
2024-08-05 12:09:55 -03:00
Diego Iván
773a55a53e
import-dialog: Show event count in header bar
...
Fixes a regression introduced in !465 by replacing the
`GtkHeaderBar` with a `AdwHeaderBar`
Closes #1265
2024-07-29 13:10:48 -06:00
Diego Iván
aaa868a62a
importer: Fix a critical in import file row
...
Closes #1208
2024-07-24 16:00:59 +00:00
Diego Iván
2038ff1da1
import-dialog: Port to AdwDialog
...
This also brings some other changes:
* Enables closing the window using Escape
* Fixes a few criticals
Closes #1258
2024-07-24 16:00:59 +00:00
Otávio Silva
c175073ab0
import-file-row: correctly display start and end dates in import dialog
...
In the import dialog, start and end date-time fields were being
incorrectly displayed, not considering the local timezone and the
24-hours vs 12-hours format used by the user. Also, the libical
already deals with the case in which events do not have the DTEND
field, simplifying the implementation.
Fixes #1175
2024-07-20 20:20:16 +00:00
Otávio Silva
0bc006be5c
import-dialog: add constructed() override
...
Add GObject.constructed override and call the setup_calendars
function inside of it.
2024-07-20 20:20:16 +00:00
Otávio Silva
b8903657c5
import-file-row: Receive a context
...
Modify the GcalImportFileRow struct to now have the
property GcalContext.
2024-07-20 20:20:16 +00:00
Christopher Davis
8e989294f7
importer: Port dialog to AdwWindow and AdwToolbarView
2023-06-19 01:09:55 -04:00
Felipe Kinoshita
2805b414f8
general: Use gtk_widget_set_visible
...
A lot of places were using gtk_widget_show/gtk_widget_hide, but those
methods are deprecated since Gtk 4.10.
Let's use gtk_widget_set_visible instead.
2023-03-03 19:14:09 -03:00
Milan Crha
11a34a1d28
Misc: Fix GObject property types for GLabel::xalign/yalign properties
...
When running under valgrind, it claims that there's used uninitialized
memory, which is set as GObject property in the code. It's for
GtkLabel::xalign. The problem was that the value in the code is
an integer, but the property itself expects float type. This fixes
the place and where a floating point is already used it annotates
the value to be float, not a double.
2022-10-06 13:36:10 +02: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
Georges Basile Stavracas Neto
9520a2b5c1
import-dialog: Only search for non-NULL default calendars
...
The default calendar might be NULL during the initial loading,
protect against that.
Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/813
2022-03-07 14:37:01 -03:00
Georges Basile Stavracas Neto
8790fb9f58
import-dialog: Properly store rows
...
Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/812
2022-03-07 14:34:01 -03:00
Georges Basile Stavracas Neto
fcfb387f5a
importer: Port to GTK4
2022-02-11 09:18:42 -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
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
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