Jean-François Fortin Tam
e470ecfc25
quick-add-popover: Use semantic typographic wrapping of time ranges
...
Atomically maintain time ranges on the same line when possible.
This is done using invisible non-breaking whitespace characters.
When selecting a range of time in the week view's timetable,
this ensures eye-pleasing, natural-looking typography.
Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1503
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/661 >
2025-11-19 13:34:54 +00:00
Hari Rana
81990357fe
quick-add-popover: Make rows behave like radio buttons
...
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/362 >
2025-11-18 11:44:30 -03:00
Hari Rana
c624c9b53b
quick-add-popover: Rework population and update
...
This emits the `changed` signal, allowing us to filter out a wider
variety of calendars. It also allows us to remove the loops
that needed to re-run every time the user changed the default
calendar or closed the popover.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/362 >
2025-11-18 11:44:29 -03:00
Hari Rana
b83498cb1f
quick-add-popover: Use calendar row widget
...
The calendar row widget also makes it easy for us to display
hidden calendars.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/362 >
2025-11-18 11:42:39 -03:00
Hari Rana
324bde2c72
quick-add-popover: Port to libadwaita widgets and merge stack pages
...
Both stack pages are merged into one page to avoid additional
cycling through pages.
`GtkListBoxRow`s were replaced by `AdwActionRow`s with
`GtkCheckBox`es as children.
Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/90 ,
https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1003
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/362 >
2025-11-18 11:33:23 -03:00
Hari Rana
ac6cccee53
quick-add-popover: Port to GListModel
...
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/362 >
2025-11-18 11:31:24 -03:00
Hari Rana
0c09e41796
gui/quick-add-popover: Specify const for strings using gettext
...
`gettext` returns a static string.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/656 >
2025-10-31 09:40:44 -04:00
Hari Rana
c3098bf23a
gui/quick-add-popover: Automatically free strings
...
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/656 >
2025-10-31 09:39:05 -04:00
Hari Rana
eefea2f7f4
gui/quick-add-popover: Handle memory leaks
...
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/656 >
2025-10-31 09:31:23 -04:00
Georges Basile Stavracas Neto
d16cc2bc68
utils: Remove get_source_parent_name_color
...
One less weird function lurking around.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/610 >
2025-07-02 18:04:26 +00:00
Titouan Real
ce44df8556
general: Remove use of emblem-ok-symbolic
...
The emblem-*-symbolic will be removed from the Adwaita theme in the next
version. Ship checkmark-small-symbolic and use it instead of
emblem-ok-symbolic.
2024-12-23 09:44:27 +01: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
Rami Alkawadri
a383ac38e0
quick-add-popover: Refactor
2024-01-15 19:31:56 +00:00
Rami Alkawadri
b4000be398
quick-add-popover: Move to GcalRange and fix title for all day event
2024-01-15 19:31:56 +00: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
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
bd2ac18c19
quick-add-popover: 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
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
Georges Basile Stavracas Neto
a146b9050d
project: Silence CI warnings
2020-10-31 16:55:06 -03:00
Georges Basile Stavracas Neto
12fd607d56
utils: Make date comparison follow time comparison semantics
...
Right now, comparing dates with gcal_date_time_compare_date() gives
the exact opposite result of when comparing using g_date_time_compare().
As shown by this patch, this was a source of *many* bugs.
2020-04-14 19:08:06 +00:00
Georges Basile Stavracas Neto
b772349c3f
Move UI files to src/
...
Keep it in sync with what To Do and Settings do.
2019-12-02 16:41:56 -03:00
Michael Catanzaro
e053c0cae8
quick-add-popover: Use more g_signal_connect_object
...
We need to disconnect from the GcalManager when the GcalQuickAddPopover
is destroyed, or crashes happen.
2019-10-07 10:37:50 -05:00
Georges Basile Stavracas Neto
357ec18a0a
Fix GcalContext management
...
GObject automatically notifies when passing
properties as part of g_object_new(). This
happens after the instance is created, thus
after constructed().
By passing G_PARAM_EXPLICIT_NOTIFY, we avoid
this behavior. However, we are still notifying
PROP_CONTEXT in GcalWindow. Removing this other
notify fixes the crashes related to GcalContext.
https://gitlab.gnome.org/GNOME/gnome-calendar/issues/417
2019-10-04 20:54:05 -03:00
Michael Catanzaro
cb14c3f46c
Fix double free in gcal_quick_add_popover_set_property
...
This already uses an autoptr.
Fixes #455
2019-09-21 16:06:48 +00:00
Michael Catanzaro
34c062a7fa
Fix crash in update_default_calendar_row()
...
It's wrong to call set_row() with NULL row.
Fixes #422
2019-07-10 01:01:42 +00:00
Georges Basile Stavracas Neto
f55b4531ef
project: Move ui-related classes to gui/
2019-05-04 12:14:05 -03:00