Otávio Silva
9433db55a2
utils: Move get_service_name_from_url to utils
...
This function can be useful in contexts other than the creation of
the meeting row.
2024-07-09 16:14:47 -03:00
Georges Basile Stavracas Neto
cbe89a9daa
gui/event-editor: Rework calendars menu
...
Use a GtkListBox and bind from the model. Create rows from the model
items, and bind properties as needed.
The action target is set only when the calendar is writable because
setting an invalid action+target pair makes the row insensitive.
Remove the ancient menu icon hack.
2024-03-01 00:39:42 -03:00
Hari Rana
ddb54c8c1c
event-editor: Improve event name validation handling
...
- Fix a bug where clicking the "Add Event" button created an empty title in the event editor dialog.
- Add "error" class when the user writes an invalid event name.
- Add new function to validate event name.
Because the sections are split into files, the event editor will need a signal to check that each section is correct, and each section will have to emit the signal. This will need to be done in a future commit.
2024-02-25 08:55:17 -05:00
Daniel Garcia Moreno
68c921bf60
test: Add event_date_edit_tzid
...
This new test check that the tz data in the component is set correctly
after editing an event date end.
See https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/170
2023-11-09 20:59:59 +00:00
Georges Basile Stavracas Neto
b26f33ea10
utils: Remove 24h utility function
...
The last user of this function is gone now.
2023-09-23 02:39:39 -03:00
Victoria Lacroix
aec45594f9
gcal-utils: Combine GNOME Settings launchers
...
This refactor combines the functions
gcal_utils_launch_online_accounts_panel and
gcal_utils_launch_datetime_settings_panel into a single function that
takes a panel ID as an argument.
2023-07-15 23:04:51 +00:00
Victoria Lacroix
3526cadcca
gcal-window: datetime settings shortcut
...
Shortcut is added so that time-related system settings can be easily
accessed. See #1023
The code is largely just a copy-paste of the code that opens the
"Online Accounts…" menu.
Fixes #1023
2023-07-15 23:04:51 +00: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
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
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
ee5acbd493
Reimplement event drag n' drop
...
Reintroduce the code using GTK4 tooling for in-process DnD.
This is looking much better!
2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto
fb504db31f
util: Drop unused function
2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto
1cbce60c4a
month-view: Port to GTK4
2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto
b31b16da17
week-view: Port to GTK4
2022-02-12 13:08:50 -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
41ba168250
calendar-management/calendars-page: Port to GTK4
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto
01ee4a2b49
utils: Add Google extractor
...
Google events have an exotic section at the end of their event
descriptions, we can parse that to find some information like
the meeting URL.
2021-06-27 18:36:05 -03:00
Michael Catanzaro
0733844690
Remove autocleanup for GWeatherLocation with new gweather
2021-01-12 15:08:50 -06:00
Georges Basile Stavracas Neto
1f6559de68
Remove ECalDataModel and ECalDataModelSubscriber
...
Drop the bomb!
2020-04-01 21:06:51 -03:00
Georges Basile Stavracas Neto
5e4bbe446f
utils: Pass GcalCalendar to ask_recurrence_modification_type()
...
The method ask_recurrence_modification_type() currently
receives an ESource, and tried to fetch the ECalClient
from the ESource by using g_object_get_data().
However, since we moved to GcalCalendar, we do not set
this data field in ESource.
Receive a GcalCalendar instead, and use the appropriate
function gcal_calendar_get_client() instead.
2019-09-14 21:38:53 -03:00
Georges Basile Stavracas Neto
ff0644ad76
utils: Add auxiliary function to format display names
...
This will be used by the web source discoverer to format
any URLs that contain a file name in their path.
2019-07-13 16:04:31 -03:00
Georges Basile Stavracas Neto
8743121f4d
source-dialog: Move Online Accounts panel spawn to utils
...
So that it can be reused by other files.
2019-06-24 21:32:44 -03:00
Milan Crha
a0cae4356a
Port to libecal-2.0
...
Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/merge_requests/70
2019-05-17 21:58:55 +02:00
Georges Basile Stavracas Neto
5e3eb40c53
utils: Add gcal_clear_signal_handler
2019-05-04 12:05:39 -03:00
Georges Basile Stavracas Neto
0acf0b60ba
utils: Receive const GdkRGBA*
...
We do not modify their values, they're const in
practice already.
2019-05-04 12:05:39 -03:00
Georges Basile Stavracas Neto
907b71635b
manager: Move threading functions to utils
2019-04-29 17:08:52 -03:00
Georges Basile Stavracas Neto
6dda74432c
utils: Remove more unused functions
2019-04-26 15:42:32 -03:00
Georges Basile Stavracas Neto
c52bacfc3f
utils: Move more API to gcal-date-time-utils.c
2019-04-26 13:57:05 -03:00
Georges Basile Stavracas Neto
ab1c0b6ca4
utils: Rename gcal_clear_datetime to gcal_clear_date_time
...
To keep it consistent with the rest of the API.
2019-04-26 13:27:37 -03:00
Georges Basile Stavracas Neto
68943eec57
utils: Add GDateTime utils
...
This will greatly help with the transition to GDateTime.
In the future, we can propose these APIs to GLib itself.
2019-04-26 12:59:29 -03:00
Georges Basile Stavracas Neto
3bff2b8981
utils: Move to utils/ subdir
...
We will split this file into more, specialized, files
so it makes sense to not pollute the top source dir.
2019-04-25 20:59:08 -03:00