Skip to content

Conversation

@benjaminkitt
Copy link

Addresses issue #270, Add button for adding event.

calendar_new_event

This PR is blocked by elementary/calendar#742, which addresses source calendars not loading prior to the display of the new event dialog when loading calendar using the --add-event flag.

While a Dbus solution to this request is preferable (as noted in the pre-existing TODO), I felt that was beyond the scope of this PR as a Bitesize issue. I will explore a Dbus solution in a future PR. As it stands, this PR, along with the aforementioned PR on Calendar, does at least provide a good first step in providing the functionality.

Addresses issue elementary#270, Add button for adding event.
@benjaminkitt benjaminkitt force-pushed the 270-button-adding-event branch from 5bc31fa to fbbde13 Compare February 1, 2022 00:46
// TODO: As far as maya supports it use the Dbus Activation feature to run the calendar-app.
public void show_date_in_maya (GLib.DateTime date) {
var command = "io.elementary.calendar --show-day %s".printf (date.format ("%F"));
private void open_maya_with_options (GLib.DateTime? day_to_show, bool add_event = false) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expanded the previous show_date_in_maya method to also allow for displaying the new event dialog. Public API remains the same and available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants