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
Yosef Or Boczko
17bb795846
gcal-week-grid: Fix wrong x postion for events in RTL
...
Every event in RTL languages is drawn in the
wrong place. As a result the week view is totally unusable.
Fix this.
#817
Signed-off-by: Yosef Or Boczko <yoseforb@gmail.com >
2022-10-12 20:35:52 +03:00
Milan Crha
11a34a1d28
Misc: Fix GObject property types for GLabel::xalign/yalign properties
...
When running under valgrind, it claims that there's used uninitialized
memory, which is set as GObject property in the code. It's for
GtkLabel::xalign. The problem was that the value in the code is
an integer, but the property itself expects float type. This fixes
the place and where a floating point is already used it annotates
the value to be float, not a double.
2022-10-06 13:36:10 +02:00
Milan Crha
df3587752d
gcal-month-view: Use gcal_view_set_date() to update date on scroll
...
This way the content of the view is updated properly, otherwise only
internal GDateTime structure had been updated, but not the view itself.
Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/868
2022-10-05 15:10:47 +00:00
Georges Basile Stavracas Neto
fb1ca515e9
agenda-view: Fix translatable strings
2022-09-15 12:30:13 -03:00
Adrien Plazas
6b39f7552b
week-view: Allow zooming with Ctrl+Scroll
...
So it's possible to zoom even if the device doesn't support pinching to
do so.
2022-06-23 19:29:17 +02:00
Adrien Plazas
7b19a0fca7
week-view: Split zooming into dedicating functions
...
This will help zooming with in other ways like Ctrl+Scroll.
2022-06-23 17:09:15 +00:00
Adrien Plazas
f0021fcffb
week-view: Add a zoom gesture
...
This will help the week view work well on small touchscreens and it also
works with touchpads.
2022-06-22 12:04:21 +00:00
Adrien Plazas
06aab9952a
Add GcalAgendaView
2022-06-16 08:34:25 -03:00
Adrien Plazas
cb439095a5
event-widget: Add the timestamp-policy property
...
This gives some control on what time is displayed on the widget. It will
be used to show the time of the end of an event in the agenda view.
2022-06-16 08:23:45 -03:00
Adrien Plazas
9c641fa597
week-grid: Allocate event widgets a valid size
...
This ensures event widgets are allocated at least their size request,
fixing critical errors and visual glitches.
2022-06-15 11:34:03 -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
Adrien Plazas
2fd20f72a8
Drop the now unused year view
...
We don't need this anymore.
2022-05-06 20:30:05 +02:00
Adrien Plazas
595523f688
year-view: Fix a signal connection
...
Parameters were swapped in the connection but not in the callback.
2022-04-27 12:41:51 +02:00
Christopher Davis
c974500186
week-header: Don't dim selected labels
...
The contrast of .dim-label and .accent isn't optimal.
To preserve proper contrast of selected weeks,
remove .dim-label while .accent is applied.
2022-02-15 17:12:21 -08: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
fd023e0a28
year-view: Port to GTK4
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
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