mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
remove option to show appmenu
appmenu has been removed with gnome 45
This commit is contained in:
23
panel.js
23
panel.js
@@ -217,7 +217,6 @@ export var Panel = GObject.registerClass({
|
||||
|
||||
this.panel.add_child(this.taskbar.actor);
|
||||
|
||||
this._setAppmenuVisible(SETTINGS.get_boolean('show-appmenu'));
|
||||
this._setShowDesktopButton(true);
|
||||
|
||||
this._setAllocationMap();
|
||||
@@ -330,7 +329,6 @@ export var Panel = GObject.registerClass({
|
||||
this._signalsHandler.destroy();
|
||||
|
||||
this.panel.remove_child(this.taskbar.actor);
|
||||
this._setAppmenuVisible(false);
|
||||
|
||||
if (this.intellihide) {
|
||||
this.intellihide.destroy();
|
||||
@@ -514,11 +512,6 @@ export var Panel = GObject.registerClass({
|
||||
],
|
||||
() => this.taskbar.resetAppIcons()
|
||||
],
|
||||
[
|
||||
SETTINGS,
|
||||
'changed::show-appmenu',
|
||||
() => this._setAppmenuVisible(SETTINGS.get_boolean('show-appmenu'))
|
||||
],
|
||||
[
|
||||
SETTINGS,
|
||||
[
|
||||
@@ -1012,22 +1005,6 @@ export var Panel = GObject.registerClass({
|
||||
this._unmappedButtons.splice(this._unmappedButtons.indexOf(actor), 1);
|
||||
}
|
||||
|
||||
_setAppmenuVisible(isVisible) {
|
||||
let parent;
|
||||
let appMenu = this.statusArea.appMenu;
|
||||
|
||||
if(appMenu)
|
||||
parent = appMenu.container.get_parent();
|
||||
|
||||
if (parent) {
|
||||
parent.remove_child(appMenu.container);
|
||||
}
|
||||
|
||||
if (isVisible && appMenu) {
|
||||
this._leftBox.insert_child_above(appMenu.container, null);
|
||||
}
|
||||
}
|
||||
|
||||
_formatVerticalClock() {
|
||||
// https://github.com/GNOME/gnome-desktop/blob/master/libgnome-desktop/gnome-wall-clock.c#L310
|
||||
if (this.statusArea.dateMenu) {
|
||||
|
||||
6
prefs.js
6
prefs.js
@@ -1312,11 +1312,6 @@ const Preferences = class {
|
||||
'sensitive',
|
||||
Gio.SettingsBindFlags.DEFAULT);
|
||||
|
||||
this._settings.bind('show-appmenu',
|
||||
this._builder.get_object('show_appmenu_switch'),
|
||||
'active',
|
||||
Gio.SettingsBindFlags.DEFAULT);
|
||||
|
||||
this._settings.bind('show-window-previews',
|
||||
this._builder.get_object('show_window_previews_switch'),
|
||||
'active',
|
||||
@@ -1903,6 +1898,7 @@ const Preferences = class {
|
||||
this._settings.set_value('secondarymenu-contains-showdetails', this._settings.get_default_value('secondarymenu-contains-showdetails'));
|
||||
});
|
||||
|
||||
// TODO setting secondarymenu-contains-appmenu is not being used anywhere
|
||||
this._settings.bind('secondarymenu-contains-appmenu',
|
||||
this._builder.get_object('secondarymenu_appmenu_switch'),
|
||||
'active',
|
||||
|
||||
@@ -429,11 +429,6 @@
|
||||
<summary>Show desktop animation time</summary>
|
||||
<description>Window fade animation time when showing the destop</description>
|
||||
</key>
|
||||
<key type="b" name="show-appmenu">
|
||||
<default>false</default>
|
||||
<summary>Show appMenu button</summary>
|
||||
<description>Show appMenu on the right hand side of the panel</description>
|
||||
</key>
|
||||
<key type="b" name="show-window-previews">
|
||||
<default>true</default>
|
||||
<summary>Show window preview</summary>
|
||||
|
||||
@@ -43,18 +43,6 @@
|
||||
</object>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">Show <i>AppMenu</i> button</property>
|
||||
<property name="subtitle">Top Bar > Show App Menu must be enabled in Tweak Tool</property>
|
||||
<child>
|
||||
<object class="GtkSwitch" id="show_appmenu_switch">
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">Ungroup applications</property>
|
||||
|
||||
Reference in New Issue
Block a user