Commit Graph
20 Commits
Author SHA1 Message Date
Georges Basile Stavracas Neto a944aafa00 gui/date-chooser: Use translated weekday abbreviations
It matches what GNOME Shell does, and makes the app more localizable.

Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1122
2023-11-17 13:47:48 -03:00
Georges Basile Stavracas Neto da84b727b3 core/subscriber: Pass old event on update
Now that we keep precise control over GcalEvent instances, and
can use simple pointer comparisons everywhere, GcalMonthView
implemented its update function as a simple remove + add pair.

The problem is that we're not passing the old event instance,
so removals never actually happen, since the new instance is
not yet available to subscribers.

Pass old event in additio to the new one, and use it where it
makes sense.

Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1073
2023-08-18 10:41:41 -03: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 15ce841a6c gcal-date-chooser: Update also combined_choice in set_date()
Thus it's in sync with the rest of the date chooser.

Also use a common function to replace `self->date` value.

Related to https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/868
2022-10-05 15:10:47 +00:00
Florian Müllner 80d803d125 date-chooser: Update combined-choice on date changes
Otherwise the header will not reflect the active date.

https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/876
2022-10-05 14:59:22 +00:00
Adrien Plazas 78931df46c date-chooser: Add the split-month-year property
This allows unifying the month and year selectors into a single month
and year selector by setting it to false.
2022-06-16 08:23:44 -03:00
Adrien Plazas db0f07136c date-chooser: Implement GcalView
This also replace the date property by the overridden active-date one
ans adds the context property.
2022-06-16 08:22:45 -03:00
Adrien Plazas 6cb57b0ad5 date-chooser: Add the show-events property
This allows showing events from the timeline via a dot.
2022-06-16 08:19:49 -03:00
Adrien Plazas b5d8575445 date-chooser: Implement GcalTimelineSubscriber
This allows the date chooser to receive events from the timeline, and
will allow it to show them via a dot.
2022-06-16 08:19:47 -03:00
Adrien Plazas 9911386706 date-chooser: Add the show-selected-week property
If enabled, the selected week will be made visible.
2022-06-16 08:16:04 -03:00
Adrien Plazas 7b5a934250 date-chooser: Use ROWS and COLS macros
This makes the code easier to read and update.
2022-06-16 08:16:04 -03: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 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
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
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
Georges Basile Stavracas Neto 9b56010b12 event-editor/date-chooser: Port to GTK4 2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto c73dc191db project: Move GcalEditDialog and friends to src/gui/event-editor/ 2020-10-30 15:13:35 -03:00