Commit Graph
2396 Commits
Author SHA1 Message Date
Adrien Plazas 7764cb7278 window: Drop the year view
We don't need it anymore since we have the date chooser, and it's absent
from the new design.
2022-05-06 20:28:48 +02:00
Yosef Or Boczko 301beb2534 time-selector: Put the spinbuttons in a box and force it to be LTR
#558

Signed-off-by: Yosef Or Boczko <yoseforb@gmail.com>
2022-05-06 14:09:45 +00:00
Adrien Plazas 6b389005e0 event-editor-dialog: Drop the useless transient_size_allocate_cb()
This drops the transient_size_allocate_cb() callback function that in
practice does nothing at all. This also fixes an error message as the
size-allocate signal doesn't exist anymore in GTK 4.
2022-05-06 08:40:26 +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
nahuelwexd 1de480f102 util: use new GNOME Settings app id 2022-04-07 19:42:50 -03:00
Adrien Plazas 6899c6eb00 gcal-enums: Drop documentation of non-existent values
There is no point keeping them around.
2022-04-07 11:46:56 +00:00
Adrien Plazas fd036d24d3 date-chooser: Don't show the already visible label
This is likely a GTK 3 to 4 leftover.
2022-04-07 09:33:03 +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
Jan Alexander Steffens (heftig) 0838616102 weather service: Reduce location accuracy
This avoids activating the compass.
2022-04-02 21:41:47 +00:00
Björn Daase c9fa9253c1 event-popover: Fix popover for all-day multi-day events
All-day multi-day events go, e.g. from 01/01/2022 00:00 to 01/03/2022.
The old logic would have shown January 1 - January 3. This, however, is
incorrect and should instead be January 1 - January 2. As a result,
subtract one day from the end date when in the all-day multi-day case.
2022-03-07 18:29:44 +00:00
Milan Crha bde989cc0e event: Workaround libical-glib bug before 3.0.12 version
Even the is_daylight argument is optional, the libical-glib had a bug
to require it. No need to bump the dependency, just workaround the problem.

Related to https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/444
2022-03-07 14:53:52 -03:00
Milan Crha be95d58cda event: Rework initialization process
While fixing timezone bugs, it was found that the calendar property needs
to be set before the component property. The component times may require
to have the calendar set, to be able to lookup the custom timezones in the
calendar, thus make sure the calendar is set before the component is set,
during the construction time.

Rework the initialization process so that setting the construct-only
component property merely takes a hold on the references; and the actual
setting up of the event happens during g_initable_init().

Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/788
2022-03-07 14:53:52 -03:00
Georges Basile Stavracas Neto 9520a2b5c1 import-dialog: Only search for non-NULL default calendars
The default calendar might be NULL during the initial loading,
protect against that.

Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/813
2022-03-07 14:37:01 -03:00
Georges Basile Stavracas Neto 8790fb9f58 import-dialog: Properly store rows
Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/812
2022-03-07 14:34:01 -03:00
Christopher Davis 844fa595fd window: Use AdwButtonContent for Today button
Text buttons in headerbars should come with an icon,
or an arrow if they're a dropdown. For this, we
have AdwButtonContent.

This commit makes use of AdwButtonContent for
the Today button, adding an icon and allowing
for the button to be flat in the headerbar.
2022-02-21 16:03:17 +00:00
Christopher Davis 83719270a4 window: Change button order, remove linked
* We shouldn't use `.linked` for header/toolbar buttons,
per https://blogs.gnome.org/alexm/2021/09/10/cleaning-up-header-bars/
* In other apps, back/forward buttons are at the very
beginning of the headerbar.
2022-02-21 16:03:17 +00: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
Christopher Davis 9dbe64a925 css: Use @accent_* colors instead of @theme_selected*
The `@theme_selected_*` colors are now aliases
to the libadwaita accent colors variables. This commit
replaces all uses with the corresponding color,
except for the text colors.

`@theme_selected_bg_color` is not the appropriate color
to use for colored text. Instead, you should use
`@accent_color` which has been tested for proper contrast.
2022-02-15 17:10:57 -08:00
Björn Daase df98475eed window: Remove Ctrl+F1 shortcut from help overlay
It's neither working nor implemented by any other GTK app to open the
shortcuts page. Therefore, remove it from the help overlay.
2022-02-13 11:13:27 +01:00
Björn Daase 9219d1844b window: Unify shortcuts definition to use "Control" 2022-02-12 22:43:08 +01:00
Björn Daase 5c8fec5008 window: Use Alt instead of Ctrl
This seems to be the more preferred modifier for selecting views
within an application (e.g., Chrome, Firefox, Geary, Nautilus).
2022-02-12 22:43:06 +01:00
Björn Daase bf7790862a window: Clean up help-overlay to use "Alt" instead of "alt" 2022-02-12 22:42:06 +01:00
Bilal Elmoussaoui 66a3661e60 location service: adapt to make use of the portal
GClue automatically calls the portal for us when sandboxed and in such case
a NULL is returned for the client porxy because the calls goes through the portal.

Part of https://gitlab.gnome.org/GNOME/Initiatives/-/issues/30
2022-02-12 21:16:19 +00:00
Georges Basile Stavracas Neto 552fd413ae window: Properly declare shortcuts
I messed up shortcut declaration, but this should be enough
to get them working again.
2022-02-12 18:13:30 -03:00
Georges Basile Stavracas Neto 87e376b15b window: Add more tracing 2022-02-12 18:13:20 -03:00
Georges Basile Stavracas Neto f47e222037 window: Uncomment accidental leftover 2022-02-12 16:56:41 -03:00
Björn Daase ad7ff65a4d event-editor/schedule-section: Fix localization mix
The gcal_util_translate_time_string function is a plain copy of
gnome-shells shell_util_translate_time_string solving the same problem.

Fixes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/581
2022-02-12 17:43:49 +01:00
Björn Daase 02343e6b37 event-editor/schedule-section: Simply switch-case statement 2022-02-12 17:37:11 +01:00
Georges Basile Stavracas Neto 69d320f49c event-editor/dialog: Improve calendar selection menu 2022-02-12 13:24:57 -03:00
Georges Basile Stavracas Neto 47a72f8156 event-editor-dialog: Port to new callback-based ask API 2022-02-12 13:08:50 -03: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 ad0a97d6ac Rework calendar popover to be a button
This allows more precise control of the style and the contents
of the popover.
2022-02-12 13:08:50 -03:00
Sam Hewitt bc0aeaaf70 css: Adjust line strength in views 2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto fb504db31f util: Drop unused function 2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto eb63f10651 help-overlay: Port to GTK4 2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto 5ebab9f6d5 calendar-popover: Port to GTK4 2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto c91f03feb1 weather-settings: Port to GTK4 2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto b8cbb1653d event-popover: Port to GTK4 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 c31d2c5821 css: Adjust slanted events CSS 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 132d4435f6 event-widget: Port to GTK4 2022-02-11 09:18:42 -03:00
Georges Basile Stavracas Neto fcfb387f5a importer: Port to GTK4 2022-02-11 09:18:42 -03:00
Georges Basile Stavracas Neto 74c410bd85 Port search subsystem to GTK4 2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto bd2ac18c19 quick-add-popover: Port to GTK4 2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto ffadcb4f4e meeting-row: Port to GTK4 2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto e390706e44 event-editor/time-selector: Port to GTK4 2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto b5dc363a3b event-editor/summary: Port to GTK4 2022-02-11 09:18:38 -03:00