Commit Graph
18 Commits
Author SHA1 Message Date
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