Georges Basile Stavracas Neto
9216e0931c
quick-add-popover: Receive a context
2019-04-26 13:36:35 -03:00
Georges Basile Stavracas Neto
ab1c0b6ca4
utils: Rename gcal_clear_datetime to gcal_clear_date_time
...
To keep it consistent with the rest of the API.
2019-04-26 13:27:37 -03:00
Georges Basile Stavracas Neto
21c74baed8
edit-dialog: Fix property name
...
The enum name was updated, but not the property
name itself.
2019-04-26 13:22:21 -03:00
Georges Basile Stavracas Neto
7410f9bb93
manager: Remove system timezone support
...
It is now handled by GcalContext, and no other class uses
the manager's system timezone anymore.
Next step is to get rid of the e_cal_util_get_system_timezone()
calls, but that will require the GcalTimeline API.
2019-04-26 13:21:26 -03:00
Georges Basile Stavracas Neto
b280001487
shell-search-provider: Receive a GcalContext
...
And use the system timezone from the context, instead
of the manager.
2019-04-26 13:19:29 -03:00
Georges Basile Stavracas Neto
501ed25270
shell-search-provider: Use GDateTime
2019-04-26 13:11:54 -03:00
Georges Basile Stavracas Neto
073fc961c1
view: Turn 'active-date' into a GDateTime property
...
Drop the bomb!
2019-04-26 13:04:37 -03:00
Georges Basile Stavracas Neto
68943eec57
utils: Add GDateTime utils
...
This will greatly help with the transition to GDateTime.
In the future, we can propose these APIs to GLib itself.
2019-04-26 12:59:29 -03:00
Georges Basile Stavracas Neto
3bff2b8981
utils: Move to utils/ subdir
...
We will split this file into more, specialized, files
so it makes sense to not pollute the top source dir.
2019-04-25 20:59:08 -03:00
Georges Basile Stavracas Neto
efaef1b0e1
window: Operate with GDateTime
2019-04-25 20:30:54 -03:00
Georges Basile Stavracas Neto
21e748ac36
month-view: Don't get weather info before having a date
2019-04-25 16:35:37 -03:00
Georges Basile Stavracas Neto
da3a903d1e
application: Delay context initialization
2019-04-25 16:30:58 -03:00
Georges Basile Stavracas Neto
09cb142a5b
application: Remove unused variable
2019-04-25 16:30:58 -03:00
Georges Basile Stavracas Neto
aa82567f98
application: Use GDateTime instead of icaltime
2019-04-25 16:30:57 -03:00
Georges Basile Stavracas Neto
506f0c110e
manager: Trivial style cleanup
2019-04-25 16:30:57 -03:00
Georges Basile Stavracas Neto
ffb6eabe53
time-zone-monitor: Introduce timezone monitor
...
This will finally allow us monitor timezones and react
to changes. And that's only possible because of the new
GcalContext API!
2019-04-25 16:30:57 -03:00
Georges Basile Stavracas Neto
c5b5023508
application: Move time format to GcalContext
...
It finally found its place under the sun.
2019-04-25 16:30:57 -03:00
Georges Basile Stavracas Neto
ad21581d6f
search-popover: Add "context" property
2019-04-25 16:30:56 -03:00
Georges Basile Stavracas Neto
fd8e82b4ae
edit-dialog: Receive a GcalContext
2019-04-25 16:30:56 -03:00
Georges Basile Stavracas Neto
0f1de0c2ca
application: Remove gcal_application_get_manager()
...
GcalManager is handled by GcalContext now, and as such, there's
no need to expose this wrapper around it anymore.
2019-04-25 16:30:56 -03:00
Georges Basile Stavracas Neto
01fdf79e6a
Use weather service from GcalContext
...
All those properties were a waste compared to storing it
into the context.
2019-04-25 16:30:56 -03:00
Georges Basile Stavracas Neto
1297ad695b
application: Remove gcal_application_get_clock()
...
That moved to GcalContext, and now that all pieces who
used it have access to the context, we can just use it.
2019-04-25 16:30:55 -03:00
Georges Basile Stavracas Neto
54506973fc
event-widget: Receive a context
2019-04-25 16:30:55 -03:00
Georges Basile Stavracas Neto
c175599550
view: Replace the manager property by the context
2019-04-25 16:30:55 -03:00
Georges Basile Stavracas Neto
8366d22cf0
application: Move night light monitor to GcalContext
2019-04-25 16:30:55 -03:00
Georges Basile Stavracas Neto
1b8a29e59b
manager: Move GOA to GcalContext
...
Another step into making GcalManager only be responsible
for handling backend interactions.
2019-04-25 16:30:54 -03:00
Georges Basile Stavracas Neto
9b7650db45
source-dialog: Receive a context
2019-04-25 16:30:54 -03:00
Georges Basile Stavracas Neto
802c6948e8
manager: Move GSettings to GcalContext
2019-04-25 16:30:54 -03:00
Georges Basile Stavracas Neto
dc9d1d0d9b
weahter-settings: Receive a context
2019-04-25 16:30:54 -03:00
Georges Basile Stavracas Neto
14c6544b95
night-light-monitor: Receive a context
2019-04-25 16:30:53 -03:00
Georges Basile Stavracas Neto
b98801a621
window: Receive the context
...
Instead of the manager. This adds multiple lines retrieving
the manager from the context, but throughout the course of
this rework, they will probably be simplified.
2019-04-25 16:30:53 -03:00
Georges Basile Stavracas Neto
beeecdf6b3
application: Use the GcalContext internally
...
Most was left as it is, such as the "manager" property.
2019-04-24 12:55:20 -03:00
Georges Basile Stavracas Neto
9a13fb5c2a
context: Introduce GcalContext
...
This is just the bare minimum of what will become
the main context class of GNOME Calendar. As of
now, nothing creates or uses it.
2019-04-24 11:44:51 -03:00
Michael Catanzaro
6a7cbf2d9f
Fixup for the previous commit
...
e-d-s has added an autoptr type for only one of the two types we use
from e-d-s.
Related to https://gitlab.gnome.org/GNOME/evolution-data-server/issues/73
2019-01-14 13:29:52 -06:00
Michael Catanzaro
e6d248699e
Fix build against new eds
...
This build failure was surfaced by
https://gitlab.gnome.org/GNOME/evolution-data-server/issues/73 , but
gnome-calendar is at fault for defining autoptrs for types it doesn't
control.
2019-01-14 12:48:26 -06:00
Christopher Davis
5cffec4456
Retire app-menu
...
For https://gitlab.gnome.org/GNOME/Initiatives/issues/4 ,
the application menu is being retired, with it's contents
being moved into the in-window primary window.
When removing a menu, the shortcuts for it's actions (if defined
in the menu) are also removed. The "Quit" shortcut is now
defined in src/gcal-window.c.
Related to https://gitlab.gnome.org/GNOME/gnome-calendar/issues/319
2018-11-06 13:29:17 +00:00
Ralph Plawetzki
3f42719ebe
Repair application icon
...
Fixes #306
2018-11-05 23:46:16 +00:00
Georges Basile Stavracas Neto
13a375f483
edit-dialog: fix code style
2018-09-14 20:16:54 -03:00
Georges Basile Stavracas Neto
e6d7651c50
edit-dialog: use 'self' instead of 'dialog'
2018-09-14 20:16:54 -03:00
Georges Basile Stavracas Neto
a799678f68
event: rewrite timezone support
...
Now with something that hopefully works.
https://gitlab.gnome.org/GNOME/gnome-calendar/issues/43
https://gitlab.gnome.org/GNOME/gnome-calendar/issues/302
2018-09-14 20:16:54 -03:00
Georges Basile Stavracas Neto
84324b3a6f
event: remove unimplemented and unused prototype
2018-09-14 17:08:15 -03:00
Ralph Plawetzki
47cf68e701
source-dialog: Handle 401 status codes
...
A 401 also tiggers the prompt_credentials dialog
Fixes #287
2018-08-17 13:05:32 +00:00
Georges Basile Stavracas Neto
af095fce48
application: Free icaltimetype with g_free
...
g_date_time_unref is reserved to GDateTime pointers.
2018-07-31 12:35:56 -03:00
Georges Basile Stavracas Neto
474ce8b9da
application: Integrate with Night Light
...
This is mostly a nice touch of integration for when
using the Night Light feature. It can be disabled by
switching the 'follow-night-light' dconf key to false,
but no user interface widgetry was added.
2018-07-29 00:54:02 -03:00
Georges Basile Stavracas Neto
7d99af9c36
window: Simplify window menu
...
We could have relied on the popover menu automatic
menu handling capabilities from the very beginning.
2018-07-29 00:54:02 -03:00
Georges Basile Stavracas Neto
89e80e688b
appmenu: Remove "New Event" entry
...
The "New Event" menu item is confusing and misleading, since
it is contextless item that has a context-aware action. The
result varies depending on which view you are, but this is in
no way communicated.
So just remove that, and all the GcalWindow API that is not
used anymore altogether.
2018-07-29 00:54:02 -03:00
Georges Basile Stavracas Neto
7e9ef5e055
date-chooser: Ensure selected day is contained in new month
...
When navigating through the dates of GcalDateChooser, if we
select a day (e.g. 31) that is not contained inside the next
or previous month, Calendar crashes.
Fix that by ensuring that the selected day is always contained
in the new month.
https://gitlab.gnome.org/GNOME/gnome-calendar/issues/284
2018-07-24 19:40:38 -03:00
Elias Entrup
ac879dd8ec
gcal-edit-dialog: Use event timezone if available
...
Changing the time of an event with a different
timezone was automatically changing the timezone
to the local one.
This patch checks whether a timezone is already
set and uses that.
Fixes #273
2018-06-15 14:58:10 +00:00
Mohammed Sadiq
1b004fd1d9
window: Remove ununsed macro
2018-06-07 14:40:15 +00:00
Georges Basile Stavracas Neto
34c7a16390
event: really fix multiday check
...
The time difference should've been greater than
zero since the beginning.
2018-05-05 23:06:14 -03:00