dateMenu: Remove link to Date & Time Settings
Menu items are on their way out of the calendar drop down, so let's start with the easy one. This one is removed without replacement, but then the Date & Time panel should be a one-time stop for most users anyway, so not having a direct shortcut should not be much of a problem. It is also the last remaining Settings item outside the system menu ... https://bugzilla.gnome.org/show_bug.cgi?id=744817
This commit is contained in:
parent
33c5f5726e
commit
de27e4e1b2
@ -144,13 +144,6 @@ const DateMenuButton = new Lang.Class({
|
|||||||
Shell.AppSystem.get_default().connect('installed-changed',
|
Shell.AppSystem.get_default().connect('installed-changed',
|
||||||
Lang.bind(this, this._appInstalledChanged));
|
Lang.bind(this, this._appInstalledChanged));
|
||||||
|
|
||||||
item = this.menu.addSettingsAction(_("Date & Time Settings"), 'gnome-datetime-panel.desktop');
|
|
||||||
if (item) {
|
|
||||||
item.actor.show_on_set_parent = false;
|
|
||||||
item.actor.reparent(vbox);
|
|
||||||
this._dateAndTimeSeparator = separator;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Done with hbox for calendar and event list
|
// Done with hbox for calendar and event list
|
||||||
|
|
||||||
@ -202,10 +195,6 @@ const DateMenuButton = new Lang.Class({
|
|||||||
}
|
}
|
||||||
this._setEventSource(eventSource);
|
this._setEventSource(eventSource);
|
||||||
this._updateEventsVisibility();
|
this._updateEventsVisibility();
|
||||||
|
|
||||||
// This needs to be handled manually, as the code to
|
|
||||||
// autohide separators doesn't work across the vbox
|
|
||||||
this._dateAndTimeSeparator.actor.visible = Main.sessionMode.allowSettings;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_getCalendarApp: function() {
|
_getCalendarApp: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user