Compare commits

..

No commits in common. "factory" and "factory" have entirely different histories.

7 changed files with 59 additions and 135 deletions

View File

@ -3,7 +3,7 @@
<service name="obs_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://gitlab.gnome.org/GNOME/gnome-shell-extensions.git</param>
<param name="revision">47.3</param>
<param name="revision">46.2</param>
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
<param name="versionrewrite-pattern">(.*)\+0</param>
<param name="versionrewrite-replacement">\1</param>

View File

@ -1,55 +1,60 @@
Index: gnome-shell-extensions-47.2/extensions/apps-menu/extension.js
Index: gnome-shell-extensions-43.rc/extensions/apps-menu/extension.js
===================================================================
--- gnome-shell-extensions-47.2.orig/extensions/apps-menu/extension.js
+++ gnome-shell-extensions-47.2/extensions/apps-menu/extension.js
@@ -23,6 +23,8 @@ import * as DND from 'resource:///org/gn
import * as Main from 'resource:///org/gnome/shell/ui/main.js';
import * as PanelMenu from 'resource:///org/gnome/shell/ui/panelMenu.js';
import * as PopupMenu from 'resource:///org/gnome/shell/ui/popupMenu.js';
+import * as AppFavorites from 'resource:///org/gnome/shell/ui/appFavorites.js';
+import * as BoxPointer from 'resource:///org/gnome/shell/ui/boxpointer.js';
const appSys = Shell.AppSystem.get_default();
@@ -60,6 +62,9 @@ class ApplicationMenuItem extends PopupM
() => this._updateIcon(), this);
this._updateIcon();
--- gnome-shell-extensions-43.rc.orig/extensions/apps-menu/extension.js
+++ gnome-shell-extensions-43.rc/extensions/apps-menu/extension.js
@@ -5,6 +5,8 @@ const {
Atk, Clutter, Gio, GLib, GMenu, GObject, Gtk, Meta, Shell, St,
} = imports.gi;
const {EventEmitter} = imports.misc.signals;
+const BoxPointer = imports.ui.boxpointer;
+const AppFavorites = imports.ui.appFavorites;
const DND = imports.ui.dnd;
const ExtensionUtils = imports.misc.extensionUtils;
@@ -48,8 +50,19 @@ class ApplicationMenuItem extends PopupM
let textureCache = St.TextureCache.get_default();
let iconThemeChangedId = textureCache.connect('icon-theme-changed',
this._updateIcon.bind(this));
+
+ this.actor.connect('button-press-event', this._onButtonPress.bind(this));
+ this.actor.connect('popup-menu', this._onKeyboardPopupMenu.bind(this));
+ this._menu = null;
+ this._menuManager = new PopupMenu.PopupMenuManager(this);
+
this._delegate = this;
let draggable = DND.makeDraggable(this);
this.connect('destroy', () => {
textureCache.disconnect(iconThemeChangedId);
+ if (this._menu) {
+ this._menu.destroy();
+ this._menu = null;
+ this._menuManager = null;
+ }
});
this._updateIcon();
@@ -72,6 +77,24 @@ class ApplicationMenuItem extends PopupM
@@ -64,6 +77,107 @@ class ApplicationMenuItem extends PopupM
};
}
activate(event) {
+ _onKeyboardPopupMenu() {
+ this.popupMenu();
+ this._menu.actor.navigate_focus(null, Gtk.DirectionType.TAB_FORWARD, false);
+ }
+
+ _onButtonPress(actor, event) {
+ // close any opened menu to avoid input focus grab
+ if (this._menu && this._menu.isOpen) {
+ this._menu.close();
+ return;
+ return Clutter.EVENT_STOP;
+ }
+
+ let button = event.get_button();
+ if (button == 3) {
+ this.popupMenu();
+ return;
+ return Clutter.EVENT_STOP;
+ }
+ return Clutter.EVENT_PROPAGATE
+ }
+
+ let symbol = event.get_key_symbol();
+ if (symbol === Clutter.KEY_space) {
+ this.popupMenu();
+ return;
+ }
+
this._app.open_new_window(-1);
this._button.selectCategory(null);
this._button.menu.toggle();
@@ -80,6 +103,87 @@ class ApplicationMenuItem extends PopupM
Main.overview.hide();
}
+ popupMenu() {
+ if (!this._menu) {
+ this._menu = new PopupMenu.PopupMenu(this.actor, 0.0, St.Side.TOP, 0);
@ -120,7 +125,7 @@ Index: gnome-shell-extensions-47.2/extensions/apps-menu/extension.js
+ this._button.menu.toggle();
+ });
+
+ Main.uiGroup.add_child(this._menu.actor);
+ Main.uiGroup.add_actor(this._menu.actor);
+
+ this._menuManager.addMenu(this._menu);
+ }
@ -131,6 +136,6 @@ Index: gnome-shell-extensions-47.2/extensions/apps-menu/extension.js
+ return false;
+ }
+
setActive(active, params) {
if (active)
this._button.scrollToButton(this);
activate(event) {
this._app.open_new_window(-1);
this._button.selectCategory(null);

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0eeca39a287d07b470500f0cba10f9ab6e4a5d5a4df9856e2cee274890d7c7f0
size 1534988

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5b2a0f098ceda38fb62e4e2d8b529be0c0577280ddeb690cf15e3c4cd4fe7bf7
size 1545228

View File

@ -1,69 +1,3 @@
-------------------------------------------------------------------
Mon Jan 13 12:54:20 UTC 2025 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 47.3:
+ places-menu: Fix opening drives with mount operations
+ window-list: Fix hiding when entering overview with gestures
+ workspace-indicator: Only show previews of regular windows
+ Misc. bug fixes and cleanups
+ Updated translations.
-------------------------------------------------------------------
Thu Dec 19 06:02:21 UTC 2024 - Xiaoguang Wang <xiaoguang.wang@suse.com>
- Update gnome-shell-add-app-to-desktop.patch: (bsc#1234648).
-------------------------------------------------------------------
Mon Nov 25 20:03:12 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 47.2:
+ places-menu: Fix a11y labelling
+ screenshot-window-sizer: Mention shortcut in description
+ Misc. bug fixes and cleanups
+ Updated translations.
-------------------------------------------------------------------
Thu Oct 31 08:53:35 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
- Split out gnome-shell-classic-xsession sub-package.
-------------------------------------------------------------------
Sat Oct 19 08:54:08 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 47.1:
+ classic: Add missing top-bar indicators
+ window-list:
- Fix window state styling
- Fix "ignore-workspace" setting getting reset
+ Misc. bug fixes and cleanups
-------------------------------------------------------------------
Sun Sep 15 06:57:27 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 47.0:
+ Updated translations.
-------------------------------------------------------------------
Sun Sep 1 13:16:32 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 47.rc:
+ Misc. bug fixes and cleanups.
+ Updated translations.
- Changes from version 47.beta:
+ window-list: Modernize styling
+ Include "status-icons" extension
+ Misc. bug fixes and cleanups
+ Updated translations.
- Changes from version 47.alpha:
+ Improve workspace previews in window-list and
workspace-indicator
+ apps-menu: Fix a11y of category labels
+ window-list: Fix long-press support
+ window-list: Animate transitions
+ Misc. bug fixes and cleanups
+ Updated translations.
- Build the new status-icons extension.
-------------------------------------------------------------------
Mon May 27 07:03:29 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -1,4 +1,4 @@
name: gnome-shell-extensions
version: 47.3
mtime: 1736715555
commit: c815e506dd40678e50fe2b727caef8d1e429db5c
version: 46.2
mtime: 1716673202
commit: ae9411a23d3e4b1872087587c284ac80644c8e15

View File

@ -1,7 +1,7 @@
#
# spec file for package gnome-shell-extensions
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2011 Dominique Leuenberger, Amsterdam, The Netherlands
#
# All modifications and additions to the file contributed by third parties
@ -19,7 +19,7 @@
%global __requires_exclude typelib\\(Meta\\)
Name: gnome-shell-extensions
Version: 47.3
Version: 46.2
Release: 0
Summary: A collection of extensions for GNOME Shell
License: GPL-2.0-or-later
@ -82,17 +82,6 @@ menu, and provides the ability to hibernate.
This package provides the extensions required to switch to
gnome-shell classic.
%package -n gnome-shell-classic-xsession
Summary: Xsession(X11) desktop session
Requires: gnome-session-xsession
Requires: gnome-shell-classic
Requires: gnome-shell-extensions-common
Provides: gnome-shell-classic:%{_datadir}/xsessions/gnome-classic-xorg.desktop
BuildArch: noarch
%description -n gnome-shell-classic-xsession
This package allows GNOME Shell to run the session on Xorg (X11).
%package -n gnome-shell-extension-user-theme
Summary: Allow the user to change GNOME Shell Themes
Group: System/GUI/GNOME
@ -114,7 +103,9 @@ This GNOME Shell extension displays system usage information in the top bar.
%lang_package -n %{name}-common
%prep
%autosetup -p1
%autosetup -N
# Needs rebase
#patch1 -p1
# In openSUSE GNOME, we don't launch gnome-session directly, but wrap this through a shell script, /usr/bin/gnome
sed -i "s:Exec=gnome-session:Exec=gnome:g" data/gnome-classic.desktop.in
@ -127,7 +118,7 @@ sed -i -e 's/openSUSE/SUSE Linux Enterprise/g' README.SUSE
%meson \
-D classic_mode=true \
-D extension_set=classic \
-D enable_extensions="apps-menu,places-menu,launch-new-instance,window-list,workspace-indicator,user-theme,system-monitor,status-icons"
-D enable_extensions="apps-menu,places-menu,launch-new-instance,window-list,workspace-indicator,user-theme,system-monitor"
%meson_build
%install
@ -153,31 +144,25 @@ ln -s %{_sysconfdir}/alternatives/default-waylandsession.desktop %{buildroot}%{_
%{_datadir}/glib-2.0/schemas/00_org.gnome.shell.extensions.classic.gschema.override
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.apps-menu.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.window-list.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.workspace-indicator.gschema.xml
%dir %{_datadir}/gnome-shell/extensions
%{_datadir}/gnome-shell/extensions/apps-menu@gnome-shell-extensions.gcampax.github.com/
%{_datadir}/gnome-shell/extensions/launch-new-instance@gnome-shell-extensions.gcampax.github.com/
%{_datadir}/gnome-shell/extensions/places-menu@gnome-shell-extensions.gcampax.github.com/
%{_datadir}/gnome-shell/extensions/workspace-indicator@gnome-shell-extensions.gcampax.github.com/
%{_datadir}/gnome-shell/extensions/window-list@gnome-shell-extensions.gcampax.github.com/
%{_datadir}/gnome-shell/extensions/status-icons@gnome-shell-extensions.gcampax.github.com/
%dir %{_datadir}/gnome-shell/modes
%{_datadir}/gnome-shell/modes/classic.json
%dir %{_datadir}/wayland-sessions
%{_datadir}/wayland-sessions/gnome-classic-wayland.desktop
%{_datadir}/wayland-sessions/gnome-classic.desktop
%if 0%{?sle_version}
%dir %{_datadir}/wayland-sessions
%{_datadir}/wayland-sessions/default.desktop
%ghost %{_sysconfdir}/alternatives/default-waylandsession.desktop
%endif
%files -n gnome-shell-classic-xsession
%{_datadir}/xsessions/gnome-classic-xorg.desktop
%{_datadir}/xsessions/gnome-classic.desktop
%if 0%{?sle_version}
%dir %{_datadir}/wayland-sessions
%{_datadir}/xsessions/default.desktop
%{_datadir}/wayland-sessions/default.desktop
%ghost %{_sysconfdir}/alternatives/default-xsession.desktop
%ghost %{_sysconfdir}/alternatives/default-waylandsession.desktop
%endif
%files -n gnome-shell-extension-user-theme