Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#270: Add button for adding event #299

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

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.
@@ -241,8 +249,11 @@ public class DateTime.Widgets.CalendarView : Gtk.Grid {
}

// 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.

None yet

2 participants