Adrien Plazas
40ce81f81a
Use the Libadwaita style loading mechanism
...
This simplifies the code and will help support the dark and high
constrast variants.
2022-06-22 12:49:38 +00:00
Adrien Plazas
54a8445abb
window: Drop the back and forward buttons
...
They aren't needed anymore as we have a date chooser, and they are
absent from the new design.
2022-06-16 08:34:27 -03:00
Adrien Plazas
a3f21be8b4
window: Add a sidebar with a date chooser and an agenda
...
This starts implementing the sidebar of the new design.
2022-06-16 08:34:27 -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
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
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
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
Georges Basile Stavracas Neto
e3196644bb
window: Port to GTK4
...
Subclass AdwApplicationWindow.
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto
8f715c19b5
application: Move CSS providers to GcalWindow
2021-09-05 18:34:32 -03:00
Georges Basile Stavracas Neto
229b6f7add
window: Silence a compilar warning
2021-09-05 18:07:27 -03:00
Georges Basile Stavracas Neto
440bb39498
window: Add weak pointer to import dialog
...
Otherwise we crash the second time it's opened.
2021-08-16 19:07:35 -03:00
Georges Basile Stavracas Neto
e689f18b1e
Add file importing dialog
...
Add a file importing dialog, and pass through files received from command
line.
Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/5
2021-08-16 18:26:21 -03:00
Georges Basile Stavracas Neto
68160348dc
Introduce GcalEventPopover
...
GcalEventPopover gives a preview of the event, and handy access
to the event description and information. It also allows easily
joining meetings if any one if available.
The list of supported meeting URLs is small now, but I hope
more people will contribute as we go.
It is also possible to edit the event through an edit button.
2021-06-27 18:45:12 -03:00
Johannes Maibaum
78d0df1404
window: Remove nested CLAMP() on switching views
2021-04-11 19:06:38 +02:00
Johannes Maibaum
4c51539168
window: Fix GcalWindow's change-view accelerators
...
Commit 2d5b1aa9d1 removed the
GCAL_WINDOW_VIEW_DAY variant of the GcalWindowView enum. Since then, the
change-view accelerators to switch to GCAL_WINDOW_VIEW_{WEEK,MONTH,YEAR}
were broken, as the accelerator setup was assuming
GCAL_WINDOW_VIEW_WEEK==1, which isn't true anymore with
GCAL_WINDOW_VIEW_DAY being gone.
This change fixes the enum values in the accelerator setup.
2021-04-11 19:06:05 +02:00
Georges Basile Stavracas Neto
a146b9050d
project: Silence CI warnings
2020-10-31 16:55:06 -03:00
Georges Basile Stavracas Neto
968ae16e08
window: Use leaf type for GcalEventEditorDialog
...
We're casting either way, to at least let's cast to something
that requires fewer characters.
2020-10-31 16:15:54 -03:00
Georges Basile Stavracas Neto
b0cdca78b1
event-editor-dialog: Unify set_event and set_event_is_new
...
The split is annoying, and a relic of time.
2020-10-31 16:15:54 -03:00
Georges Basile Stavracas Neto
7e10c6d451
event-editor-dialog: Stop using response type
...
Using dialog responses to communicate intent to GcalWindow was always
a hack, and as the code is cleaned, it's getting increasingly annoying.
Replace this with a proper 'remove-event' signal ('delete-event' would
conflict with the equally named GTK signal), remove the custom response
types, and cleanup the code.
2020-10-31 16:15:54 -03:00
Georges Basile Stavracas Neto
b4029b0c23
edit-dialog: Rename to GcalEventEditorDialog
2020-10-31 13:30:56 -03:00
Evangelos Ribeiro Tzaras
402ad34f42
window: Inherit from HdyApplicationWindow
...
This commit makes the toplevel GcalWindow inherit from
HdyApplicationWindow instead of GtkApplicationWindow.
2020-09-16 15:24:46 +00:00
Evangelos Ribeiro Tzaras
2d5b1aa9d1
project: Cleanup code for unused views
...
Got rid of the unused views in the GcalWindowView enum
and associated code in gcal-window.
2020-09-16 15:24:46 +00:00
Georges Basile Stavracas Neto
fa0173e174
window: Remove subscribers on destroy
2020-04-01 23:10:01 -03:00
Georges Basile Stavracas Neto
399b9d8d00
Simplify calendar views
...
We don't need a split subscription update step in GcalView
anymore, since subscribers communicate range directly to
the timeline now.
2020-04-01 21:06:51 -03:00
Georges Basile Stavracas Neto
b772349c3f
Move UI files to src/
...
Keep it in sync with what To Do and Settings do.
2019-12-02 16:41:56 -03:00
Georges Basile Stavracas Neto
357ec18a0a
Fix GcalContext management
...
GObject automatically notifies when passing
properties as part of g_object_new(). This
happens after the instance is created, thus
after constructed().
By passing G_PARAM_EXPLICIT_NOTIFY, we avoid
this behavior. However, we are still notifying
PROP_CONTEXT in GcalWindow. Removing this other
notify fixes the crashes related to GcalContext.
https://gitlab.gnome.org/GNOME/gnome-calendar/issues/417
2019-10-04 20:54:05 -03:00
Christopher Davis
0aa9e42016
flatpak: Add development styling to window
...
Adds .devel style class to the main window for development
builds of Calendar.
Related to https://gitlab.gnome.org/GNOME/gnome-calendar/issues/285
2019-09-30 12:04:08 -03:00
Georges Basile Stavracas Neto
5e4bbe446f
utils: Pass GcalCalendar to ask_recurrence_modification_type()
...
The method ask_recurrence_modification_type() currently
receives an ESource, and tried to fetch the ECalClient
from the ESource by using g_object_get_data().
However, since we moved to GcalCalendar, we do not set
this data field in ESource.
Receive a GcalCalendar instead, and use the appropriate
function gcal_calendar_get_client() instead.
2019-09-14 21:38:53 -03:00
Georges Basile Stavracas Neto
22596db1d1
window: Readd <Ctrl>n shortcut
...
https://gitlab.gnome.org/GNOME/gnome-calendar/issues/383
2019-09-13 18:49:05 -03:00
Georges Basile Stavracas Neto
c092445363
calendar-management: Shuffle code around and cleanup
2019-06-24 21:32:59 -03:00
Georges Basile Stavracas Neto
4088b8b6bb
source-dialog: Rename to GcalCalendarManagementDialog
2019-06-24 21:32:44 -03:00
Georges Basile Stavracas Neto
7217f9fa53
window: Add "Online Accounts..." button
2019-06-24 21:32:44 -03:00
Milan Crha
a0cae4356a
Port to libecal-2.0
...
Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/merge_requests/70
2019-05-17 21:58:55 +02:00
Georges Basile Stavracas Neto
0639b4e7ae
window: Show a spinner while synchronizing
2019-05-10 13:04:33 -03:00
Georges Basile Stavracas Neto
79eea9376b
window: Add new event button
...
As per the latest mockups [1]
[1] https://teams.pages.gitlab.gnome.org/Design/web-experiments/calendar/headerbar
2019-05-09 17:42:59 -03:00
Georges Basile Stavracas Neto
771c5c30f0
window: Reorganize a few functions
2019-05-09 17:42:59 -03:00
Georges Basile Stavracas Neto
0baeaa160a
window: Delegate changing dates to GcalView
...
The view knows its time range, and knows what the
next or previous dates should be. So instead of
calculating the next date manually, ask the views
for that.
2019-05-09 17:42:59 -03:00
Georges Basile Stavracas Neto
da31180cba
view: Let views handle subscription range
...
Instead of GcalWindow handling the ranges themselves,
delegate this responsibility to the views.
2019-05-09 17:42:58 -03:00
Georges Basile Stavracas Neto
f55b4531ef
project: Move ui-related classes to gui/
2019-05-04 12:14:05 -03:00