Commit Graph
335 Commits
Author SHA1 Message Date
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
Georges Basile Stavracas Neto 7ee0acdcbf source-dialog: Remove online accounts
Showing these online accounts in the dialog only added
an additional step. We'll be adding a link to online
accounts in the next commit, so for now, remove the
widgets from the source dialog.
2019-06-24 21:32:44 -03:00
Georges Basile Stavracas Neto 73ddbbdc60 window: Remove non-existing signal handler 2019-05-24 21:26:50 -03:00
Georges Basile Stavracas Neto ea043ab48b calendar-popover: Show success after synchronizing
https://gitlab.gnome.org/GNOME/gnome-calendar/issues/395
2019-05-10 13:45:00 -03:00
Georges Basile Stavracas Neto 117d56a1c9 calendar-popover: Relabel as "Synchronize Calendars"
https://gitlab.gnome.org/GNOME/gnome-calendar/issues/396
2019-05-10 13:30:29 -03:00
Georges Basile Stavracas Neto 647c9ee2c7 calendar-popover: Adjust UI
Add a separator and remove spacing.
2019-05-10 13:15:50 -03:00
Georges Basile Stavracas Neto c5ec57f78e calendar-popover: Improve calendar settings button
Change the label to "Manage Calendars…" and make it a model
button.
2019-05-10 13:14:23 -03:00
Georges Basile Stavracas Neto 405787307c window: Move synchronize button to the calendar popover 2019-05-10 13:10:50 -03: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 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 fd3d2ea3f6 window: Move calendar popover to GcalCalendarPopover
This helps reducing the LOC number of GcalWindow, and
allows us to also implement the popover in a better way.
2019-05-04 12:05:39 -03:00
Georges Basile Stavracas Neto b967f047bf window: Remove search popover
Won't be missed.
2019-04-29 17:08:52 -03:00
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
Christopher Davis ec9ffcde3b window.ui: remove Calendars from Primary Menu
The Calendars menu entry does not need to be in the new
primary menu. Thus, it can safely be removed.
2018-11-06 13:29:17 +00: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 13a375f483 edit-dialog: fix code style 2018-09-14 20:16:54 -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
Abdullahi Usman c7f522eadd event-widget : hide hour label on full day event
All events in month-popover displays hour-label indicating their start time,
but all-day events should not display their start time.

This is caused by gtk_widget_show_all recursively setting the events list-box
and all its childrens visible.

We replace gtk_widget_show_all with gtk_widget_show to show the events list-box
and its childrens.

https://gitlab.gnome.org/GNOME/gnome-calendar/issues/250
2018-05-01 23:48:25 +00:00
Georges Basile Stavracas Neto 1da2151bb9 month-popover: popdown when adding new event 2018-05-01 20:29:36 -03:00
Georges Basile Stavracas Neto 601076f6a4 event-widget: force squared color boxes
On HiDPI displays, the color boxes of timed events
appear distorted and not squared.

Fix that by setting a fixed size, and changing the
box alignment to always shrink to a squared state.
2018-05-01 10:24:48 -03:00
Georges Basile Stavracas Neto 74f353eb33 window: Make menu completely non-homogeneous 2018-01-27 23:54:04 -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 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
Piotr Drąg d491e83d27 ui: Unmark placeholder strings from translation 2017-12-20 20:10:13 +01:00
Georges Basile Stavracas Neto b8f51e1d3d window: a load more weather changes 2017-12-17 11:35:19 -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 67f3a2057e month-cell: Display temperatures 2017-12-11 22:06:52 -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 12da918357 window: Improve weather setting sensitivity 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
alex285 868e0de889 window: add org-gnome-Calendar style class
Currently there is no way for a theme to add some specific styles (eg colors) on Calendar widgets, without upstreaming their CSS.
This commit adds the org-gnome-Calendar CSS class on the main window, as a helper selector. (See bug #227)
2017-12-07 14:34:58 +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
Georges Basile Stavracas Neto e8468ec0df event-widget: use a 16px rounded rectangle for event colors
This looks better than the thin borders, helps a lot colorblind
people and makes the overall layout just as good.

Ship it!

[#211]
2017-11-30 14:45:47 -02:00
Georges Basile Stavracas Neto ea8b9e76e7 event-widget: use a stack to handle orientation
Instead of setting the position of the labels in a grid,
use two different grids and switch between them using a
stack.
2017-11-25 11:43:52 -02:00
Georges Basile Stavracas Neto eff50668d4 month-view: introduce new overflow popover window
This ~almost~ implements a perfectly semantic transition (which
is kinda impossible now).
2017-11-15 02:03:26 -02:00
Georges Basile Stavracas Neto 2a11959bdd month-cell: show +X in overflow label
Instead of "Other X Events".
2017-11-11 18:15:18 -02:00
Georges Basile Stavracas Neto b5ad149261 month-cell: improve calculation of header box height
Should also consider the top and bottom margins.
2017-11-11 18:15:02 -02:00
Georges Basile Stavracas Neto 432e7ab7ea month-cell: move day label to the start of the cell 2017-11-11 18:08:22 -02:00
Georges Basile Stavracas Neto 4dd4c2410f month-cell: Move day label to top, split from overflow 2017-11-11 17:48:59 -02:00
Florian Brosch 07fd080deb Do not show "Insert Emoji" for fixed form entries. 2017-11-08 23:51:32 -02:00
Florian Brosch 1e1216d3f7 sourc-edialog: rename owncloud to nextcloud 2017-11-08 23:43:48 -02:00
Georges Basile Stavracas Neto e04b7f0fd3 event-widget: lazily relayout main grid 2017-10-29 19:05:34 -02:00
Georges Basile Stavracas Neto a5e733f705 month-cell: don't enbold overflow label
Only the day label should be made bold.
2017-10-07 11:27:56 -03:00
Georges Basile Stavracas Neto df40a4d8bf month-view: don't hide month view when dragging from popover 2017-10-07 11:01:32 -03:00
Georges Basile Stavracas Neto e59910f0e9 month-view: rewrite was a template widget 2017-10-06 20:32:00 -03:00
Piotr Drąg 5410ae5ac6 Mark missing strings for translation
Unfortunately, Glade suffers from
https://bugzilla.gnome.org/show_bug.cgi?id=782753
2017-09-28 13:18:07 +02:00
Georges Basile Stavracas Neto 925e17e16c event-widget: fix dragging events 2017-09-14 13:26:28 -03:00