gui/window: Remove open online calendars menu item
This menu item was found to be confusing in a small experiment with 3 people. Since online calendars are already accessible when adding calendars in the calendar management dialog, this menu item can be removed. Closes #1642 Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/876>
This commit is contained in:
@@ -382,11 +382,6 @@ menu menu {
|
|||||||
action: "win.open-date-time-settings";
|
action: "win.open-date-time-settings";
|
||||||
}
|
}
|
||||||
|
|
||||||
item {
|
|
||||||
label: _("_Online Accounts…");
|
|
||||||
action: "win.open-online-accounts";
|
|
||||||
}
|
|
||||||
|
|
||||||
submenu {
|
submenu {
|
||||||
label: _("Weather");
|
label: _("Weather");
|
||||||
|
|
||||||
|
|||||||
@@ -670,16 +670,6 @@ on_window_open_date_time_settings_cb (GSimpleAction *action,
|
|||||||
gcal_util_launch_gnome_settings (connection, "datetime", NULL);
|
gcal_util_launch_gnome_settings (connection, "datetime", NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
on_window_open_online_accounts_cb (GSimpleAction *action,
|
|
||||||
GVariant *param,
|
|
||||||
gpointer user_data)
|
|
||||||
{
|
|
||||||
GDBusConnection *connection = g_application_get_dbus_connection (g_application_get_default ());
|
|
||||||
|
|
||||||
gcal_util_launch_gnome_settings (connection, "online-accounts", NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
on_window_previous_date_activated_cb (GSimpleAction *action,
|
on_window_previous_date_activated_cb (GSimpleAction *action,
|
||||||
GVariant *param,
|
GVariant *param,
|
||||||
@@ -1471,7 +1461,6 @@ gcal_window_init (GcalWindow *self)
|
|||||||
{"next-date", on_window_next_date_activated_cb },
|
{"next-date", on_window_next_date_activated_cb },
|
||||||
{"new-event", on_window_new_event_cb },
|
{"new-event", on_window_new_event_cb },
|
||||||
{"open-date-time-settings", on_window_open_date_time_settings_cb },
|
{"open-date-time-settings", on_window_open_date_time_settings_cb },
|
||||||
{"open-online-accounts", on_window_open_online_accounts_cb },
|
|
||||||
{"previous-date", on_window_previous_date_activated_cb },
|
{"previous-date", on_window_previous_date_activated_cb },
|
||||||
{"show-calendars", on_show_calendars_action_activated },
|
{"show-calendars", on_show_calendars_action_activated },
|
||||||
{"today", on_window_today_activated_cb },
|
{"today", on_window_today_activated_cb },
|
||||||
|
|||||||
Reference in New Issue
Block a user