remove option to show appmenu

appmenu has been removed with gnome 45
This commit is contained in:
Philipp Unger
2023-08-20 23:33:03 +02:00
parent 0418059f61
commit 817c8cbf81
4 changed files with 1 additions and 45 deletions

View File

@@ -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) {

View File

@@ -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',

View File

@@ -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>

View File

@@ -43,18 +43,6 @@
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Show &lt;i&gt;AppMenu&lt;/i&gt; button</property>
<property name="subtitle">Top Bar &gt; 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>