Georges Basile Stavracas Neto
36f4809c1c
window: Turn search button into a DzlSuggestionButton
...
Gives us a nice, smooth and sweet animation.
2019-04-29 17:08:51 -03:00
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
073fc961c1
view: Turn 'active-date' into a GDateTime property
...
Drop the bomb!
2019-04-26 13:04:37 -03:00
Georges Basile Stavracas Neto
efaef1b0e1
window: Operate with GDateTime
2019-04-25 20:30:54 -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
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
c175599550
view: Replace the manager property by the context
2019-04-25 16:30:55 -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
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
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
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
Mohammed Sadiq
1b004fd1d9
window: Remove ununsed macro
2018-06-07 14:40:15 +00:00
Georges Basile Stavracas Neto
58b3340736
window: Remove dead code
...
An unused variable and a binding to a non existing property
2018-01-28 11:17:50 -02:00
Georges Basile Stavracas Neto
7364d8bf29
manager: Handle refresh in the source directly
...
Instead of implementing code to refresh sources, let's just
use the ESourceRefresh extension and let Evolution handle that.
2018-01-28 10:43:48 -02:00
Georges Basile Stavracas Neto
037567209c
view: Remove first weekday helpers when unecessary
...
Not all views need to know the first weekday, and those
who need, it can be stored internally.
2018-01-28 10:20:19 -02:00
Georges Basile Stavracas Neto
b936759e5c
project: Make time format a first-class citizen
...
The current code deals with 12/24h clock formats almost like
a workaround of the issue. This commit adds proper support to
different clock formats.
2018-01-28 02:30:55 -02:00
Georges Basile Stavracas Neto
79987734cd
enums: Generate enums with standard GLib syntax
2018-01-28 02:30:07 -02:00
Georges Basile Stavracas Neto
c7f6fd19c4
project: Move enums to gcal-enums.h
2018-01-28 00:44:36 -02:00
Georges Basile Stavracas Neto
c4ca9cac3c
project: Rename GcalSearchView to GcalSearchPopover
...
This was never a view, but a popover.
2018-01-27 23:02:36 -02:00
Georges Basile Stavracas Neto
1dcf0d1f24
project: Unify headers
2018-01-27 22:35:20 -02:00
Georges Basile Stavracas Neto
718266f349
window: Bind manager to GcalWeatherSettings
...
A missing entry point from the previous refactorings
2018-01-27 22:25:57 -02:00
Georges Basile Stavracas Neto
50ec8fd30b
window: Notify properties by pspec
...
It avoids lookups on the class properties.
2018-01-27 22:25:32 -02:00
Georges Basile Stavracas Neto
5a651b01f8
window: Rework property initialization
...
There is a clear chain of properties that must be respected
in order to make Calendar initialize properly:
1. GcalManager, since it provider access to the settings
2. The initial date
3. GcalWeatherService, that depends on settings and the initial date
2018-01-27 21:46:15 -02:00
Georges Basile Stavracas Neto
499db7bfd4
weather: Rework weather management
...
This commit brings a few changes that I was too lazy to
split in different commits:
* Remove a few useless arguments in the GcalWeatherService API
* Move the weather management code from GcalWindow to GcalWeatherSettings
* A few style changes
2018-01-27 20:36:29 -02:00
Georges Basile Stavracas Neto
ab20672aeb
weather: Move to a subdirectory
2018-01-27 15:24:32 -02:00
Georges Basile Stavracas Neto
5a6fabddc8
window: Rework property creation
2018-01-27 14:28:55 -02:00
Georges Basile Stavracas Neto
b8f51e1d3d
window: a load more weather changes
2017-12-17 11:35:19 -02:00
Florian Brosch
eceb826e77
Whitespace changes
2017-12-11 22:13:16 -02:00
Florian Brosch
d13473d3bc
year-view: Show weather reports.
...
This view is not ref-counted correctly. I use the same
workaround to avoid runtime errors as for month views.
2017-12-11 22:06:54 -02:00
Florian Brosch
e9e403ce7a
month-view: Show weather reports.
...
This commit triggers two existing issues:
1. window size calculation
(this breaks month-cells)
2. wrong reference counts in views
(I use :destroy to avoid dangling pointers)
2017-12-11 21:54:55 -02:00
Florian Brosch
660e1c6178
Avoid single line comments.
2017-12-11 21:38:08 -02:00
Florian Brosch
12da918357
window: Improve weather setting sensitivity
2017-12-11 21:32:01 -02:00
Florian Brosch
f4f0c3a38d
window: Set style class "error" for invalid locations
2017-12-11 21:32:01 -02:00
Florian Brosch
1f3173823b
weather: Integrate weather into our main windows.
2017-12-11 21:29:31 -02:00
Mohammed Sadiq
f1a8aaed5f
window: Simplify navigation code
...
Using <accelerator> in GtkBuilder can simplify lots of C code.
2017-12-06 21:40:15 +05:30
Mohammed Sadiq
fd3cb3e9b5
window: Reuse window-state-changed callback
...
window-state-changed signal is already handled in window_state_method.
It is better not to override it again in class_init function.
2017-12-06 21:40:15 +05:30
Mohammed Sadiq
75ad9228f6
window: Simplify saving/loading window states
...
Follow https://wiki.gnome.org/HowDoI/SaveWindowState
* Use tuples in gsetting schema to save size and position
* Save changes to variable instead of saving to gsettings after every timemout
* Save the changes back to gsettings when the window is finalized.
2017-12-06 19:16:40 +05:30
George Willian Condomitti
7c2ca40f0b
window: Add <Ctrl>+f shortcut to toggle search bar.
...
[221]
2017-12-04 16:04:41 -02:00
Georges Basile Stavracas Neto
f83471c609
window: trivial code refactoring
2017-10-06 20:32:00 -03:00
Georges Basile Stavracas Neto
b9310a84a3
widgets: ensure types on class_init
...
This will avoid GtkBuilder crashing because it couldn't
find the correct type for a given widget.
2017-09-20 19:14:15 -03:00
Georges Basile Stavracas Neto
8f7230cf5f
window: remove stray debug message
2017-09-08 22:59:47 -03:00
Georges Basile Stavracas Neto
5a0a3fcd9c
event: fix various reference ownership issues
2017-09-08 22:25:18 -03:00
Georges Basile Stavracas Neto
e60c8593dd
window: propagate manager using properties
2017-09-07 14:35:44 -03:00
Georges Basile Stavracas Neto
36a39e6c5c
window: simplify constructor
...
We don't need to pass information that can easily be
retrieved by the GSettings instance from GcalManager.
2017-09-07 13:21:09 -03:00