Hari Rana
5ed93e73d4
views/month-cell: Add method for retrieving overflow button
...
This is needed for keyboard navigation, specifically for grabbing
focus and checking focus.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/598 >
2026-03-01 19:35:44 +00:00
Philipp Sauberzweig
ef4c70fa4c
month-cell: Add pill style to first day of the month.
...
Add a pill style to the label of the first day of the month to make it easy to identify. Adjust the border radius of the existing pill style for the current date to be the same. Apply the font-weight using the new style class.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/647 >
2025-10-28 14:06:44 +00:00
Philipp Sauberzweig
6e97c05a14
views: Merge month name and date number into a single label.
...
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/647 >
2025-10-28 14:06:44 +00:00
Philipp Sauberzweig
a32df2b070
views/month-cell: Remove dimming of out-of-month cells
...
The infinite scrolling month view obsoletes the out-of-month
dimming, as the view is no longer fixed in a specific month, nor
does it make out-of-month cells insensitive.
Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1145
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/646 >
2025-10-17 18:06:17 -04:00
Jean-François Fortin Tam
e56ef92abd
gcal-month-cell: Fix a typo in a comment
2025-08-18 15:16:35 -04:00
Jean-François Fortin Tam
e2a3d31532
month-cell: Use full-length month names when safe to do so
...
Full month names are easier to notice and read while scrolling,
and would be read more naturally by text-to-speech screen readers.
An exception must be made when today is near the beginning of the month,
as the weather forecast temperatures labels might also appear there.
In that case, use the abbreviated version of the month name label.
Fixes issue #962
2025-08-18 15:16:35 -04:00
Jean-François Fortin Tam
1ab28d3e95
month-cell: Bold month name & 1st day labels
...
Make it easier to track which month you are crossing while scrolling.
Related: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/962
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/478 >
2025-07-15 15:46:41 -04:00
Jean-François Fortin Tam
1b500973e6
month-cell: Simplify calls to day_of_month
...
We already had this local variable waiting to be used;
let's reuse it to avoid calling querying the date repeatedly.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/478 >
2025-07-15 15:46:41 -04:00
Hari Rana
110856ee1a
views/month-cell: Don't assert icon_tooltip_binding
...
The g_assert line would exit the program whenever we tried targeting
a month cell from the inspector.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/601 >
2025-07-05 18:06:05 -04:00
Hari Rana
8dd8538014
views/month-cell: Use GtkWidget APIs for retrieving margin
...
GtkStyleContext is deprecated.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/601 >
2025-07-05 18:05:07 -04:00
Zoey
1c7760bd89
Reuse day_of_month to check if date of month is 1
2025-05-01 18:27:05 +01:00
Georges Basile Stavracas Neto
47fd758d01
views/month: Override dispose, not finalize
2025-01-22 16:45:39 -03:00
Markus Göllnitz
44894475d0
views/month: Display only weather icon under space contraint
...
If the horizontal space does not allow for an icon and
a temperature label, there'd still be enough space for
an icon only.
Visually, it makes sense to align that icon in icon-only
mode to the end.
Closes : #856
Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it >
Co-authored-by: Georged Basile Stavracas Neto
<georges.stavracas@gmail.com >
2025-01-22 16:45:31 -03:00
Hari Rana
a3ac698e60
month-cell: Add month separators
2024-01-27 16:14:17 +00:00
Markus Göllnitz
74b1296d07
month-cell: hold weather service while this widget exists
...
Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it >
2024-01-27 16:09:02 +00:00
Georges Basile Stavracas Neto
e3a350126b
gui/month-cell: Accept drops from other months
...
We support that now fairly easily, let's enable it.
Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1077
2023-08-25 18:07:04 -03:00
Georges Basile Stavracas Neto
632484b719
month-cell: Cleanup unused function
...
We handle weather internally now, no need to expose a function to
set that.
2023-08-17 18:28:30 -03:00
Georges Basile Stavracas Neto
4a2412897a
month-cell: Bring back weather information
...
Now GcalMonthCell handles it internally, instead of receiving the
weather information from the parent view.
This is a modified version of a patch originally written by
camelCaseNick.
2023-08-17 18:27:05 -03:00
Georges Basile Stavracas Neto
dabbc597d9
month-cell: Show month name on the 1st day
...
This helps differentiate when the month change happens.
2023-08-16 21:21:47 -03:00
Georges Basile Stavracas Neto
030f370015
month-cell: Don't change inscription visibility
...
Let's just change the text and preserve the visibility of the
inscription.
2023-08-11 15:13:44 -03:00
Georges Basile Stavracas Neto
b775256ef8
views/month-cell: Use GtkInscription
...
It allows us to change text without causing a relayout.
This will be important later.
2023-08-11 15:13:44 -03:00
Georges Basile Stavracas Neto
a527bbe5dc
views: Sketch out new month view
...
Nothing really works here, this is very WIP. It doesn't even show
events. Let's build from here.
2023-08-11 15:13:44 -03:00
Felipe Kinoshita
72eb199f84
general: Stop using get_allocated_width/height
...
gtk_widget_get_allocated_width and gtk_widget_get_allocated_height are
deprecated, let's use the recommended functions.
2023-05-30 05:13:34 -03:00
Georges Basile Stavracas Neto
5329c2297b
views: Don't show MOD_ALL
...
The only field that views may change using DnD is the start date
field (and, consequently, the end date), and that's exactly what
we must not show the MOD_ALL option for.
Don't show it.
Related: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/882
2022-10-17 23:37:13 -03: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
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
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
1cbce60c4a
month-view: Port to GTK4
2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto
a146b9050d
project: Silence CI warnings
2020-10-31 16:55:06 -03:00
Georges Basile Stavracas Neto
e67ebcfc50
project: Move all UI-related files to src/gui/
...
So we can have a nice separation.
2020-10-30 14:44:33 -03:00