Compare commits

...

4 Commits
48.rc ... 48.0

Author SHA1 Message Date
Florian Müllner
63e6fec602 Bump version to 48.0
Update NEWS.
2025-03-16 13:25:14 +01:00
Stuart Hayhurst
27d463f572 meta: Correct case and styling for "Launch new instance" and "windowNavigator"
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/392>
2025-03-15 15:31:02 +00:00
Victor Kareh
f4e044b4fe apps-menu: Scroll application into view when active
When an ApplicationMenuItem becomes active, scroll the application
scroll box so that it becomes visible. This stopped working when the
gnome-shell API changed from getActive()/setActive() to the active
GObject property.

Closes https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/issues/562

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/391>
2025-03-13 18:56:07 -04:00
Florian Müllner
3b4e241b26 apps-menu: Stop tracking icon-theme changes
St.Icon already tracks theme change, so this is no longer necessary.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/390>
2025-03-13 22:46:51 +01:00
5 changed files with 22 additions and 21 deletions

8
NEWS
View File

@@ -1,3 +1,11 @@
48.0
====
* apps-menu: Fix scrolling items into view on keynav [Victor; !391]
* Misc. bug fixes and cleanups [Florian, Stuart; !390, !392]
Contributors:
Stuart Hayhurst, Victor Kareh, Florian Müllner
48.rc
=====
* Misc. bug fixes and cleanups [Florian; !385, !388]

View File

@@ -44,8 +44,9 @@ class ApplicationMenuItem extends PopupMenu.PopupBaseMenuItem {
this._app = app;
this._button = button;
this._iconBin = new St.Bin();
this.add_child(this._iconBin);
this._icon = this.getDragActor();
this._icon.style_class = 'icon-dropshadow';
this.add_child(this._icon);
let appLabel = new St.Label({
text: app.get_name(),
@@ -55,11 +56,6 @@ class ApplicationMenuItem extends PopupMenu.PopupBaseMenuItem {
this.add_child(appLabel);
this.label_actor = appLabel;
let textureCache = St.TextureCache.get_default();
textureCache.connectObject('icon-theme-changed',
() => this._updateIcon(), this);
this._updateIcon();
this._delegate = this;
let draggable = DND.makeDraggable(this);
@@ -69,6 +65,8 @@ class ApplicationMenuItem extends PopupMenu.PopupBaseMenuItem {
return maybeStartDrag.call(draggable, event);
return false;
};
this.connect('notify::active', this._onActiveChanged.bind(this));
}
activate(event) {
@@ -80,10 +78,11 @@ class ApplicationMenuItem extends PopupMenu.PopupBaseMenuItem {
Main.overview.hide();
}
setActive(active, params) {
if (active)
this._button.scrollToButton(this);
super.setActive(active, params);
_onActiveChanged() {
if (!this.active)
return;
this._button.scrollToButton(this);
}
setDragEnabled(enabled) {
@@ -95,13 +94,7 @@ class ApplicationMenuItem extends PopupMenu.PopupBaseMenuItem {
}
getDragActorSource() {
return this._iconBin;
}
_updateIcon() {
let icon = this.getDragActor();
icon.style_class = 'icon-dropshadow';
this._iconBin.set_child(icon);
return this._icon;
}
}

View File

@@ -3,7 +3,7 @@
"uuid": "@uuid@",
"settings-schema": "@gschemaname@",
"gettext-domain": "@gettext_domain@",
"name": "Launch new instance",
"name": "Launch New Instance",
"description": "Always launch a new instance when clicking in the dash or the application view.\nThis extension is part of Classic Mode and is officially supported by GNOME. Please do not report bugs using the form below, use GNOME's GitLab instance instead.",
"shell-version": [ "@shell_current@" ],
"url": "@url@"

View File

@@ -5,7 +5,7 @@
"settings-schema": "@gschemaname@",
"gettext-domain": "@gettext_domain@",
"original-author": "zaspire@rambler.ru",
"name": "windowNavigator",
"name": "Window Navigator",
"description": "Allow keyboard selection of windows and workspaces in overlay mode. <Ctrl>number selects a workspace, and <Alt>number selects a window.",
"url": "@url@"
}

View File

@@ -4,7 +4,7 @@
project(
'gnome-shell-extensions',
version: '48.rc',
version: '48.0',
meson_version: '>= 1.1.0',
license: 'GPL-2.0-or-later',
)