forked from pool/gnome-shell-extensions
Accepting request 799182 from GNOME:Factory
- Update gnome-shell-add-app-to-desktop.patch: Remove error in journal log(bsc#1170761). (forwarded request 798799 from xiaoguang_wang) OBS-URL: https://build.opensuse.org/request/show/799182 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnome-shell-extensions?expand=0&rev=98
This commit is contained in:
commit
c3526d5e23
@ -1,7 +1,7 @@
|
||||
Index: gnome-shell-extensions-3.33.91/extensions/apps-menu/extension.js
|
||||
Index: gnome-shell-extensions-3.34.2/extensions/apps-menu/extension.js
|
||||
===================================================================
|
||||
--- gnome-shell-extensions-3.33.91.orig/extensions/apps-menu/extension.js
|
||||
+++ gnome-shell-extensions-3.33.91/extensions/apps-menu/extension.js
|
||||
--- gnome-shell-extensions-3.34.2.orig/extensions/apps-menu/extension.js
|
||||
+++ gnome-shell-extensions-3.34.2/extensions/apps-menu/extension.js
|
||||
@@ -5,6 +5,8 @@ const {
|
||||
Atk, Clutter, Gio, GLib, GMenu, GObject, Gtk, Meta, Shell, St,
|
||||
} = imports.gi;
|
||||
@ -31,7 +31,7 @@ Index: gnome-shell-extensions-3.33.91/extensions/apps-menu/extension.js
|
||||
});
|
||||
this._updateIcon();
|
||||
|
||||
@@ -62,6 +75,106 @@ class ApplicationMenuItem extends PopupM
|
||||
@@ -62,6 +75,107 @@ class ApplicationMenuItem extends PopupM
|
||||
};
|
||||
}
|
||||
|
||||
@ -44,15 +44,15 @@ Index: gnome-shell-extensions-3.33.91/extensions/apps-menu/extension.js
|
||||
+ // 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 true;
|
||||
+ return Clutter.EVENT_STOP;
|
||||
+ }
|
||||
+ return false;
|
||||
+ return Clutter.EVENT_PROPAGATE
|
||||
+ }
|
||||
+
|
||||
+ popupMenu() {
|
||||
@ -61,6 +61,8 @@ Index: gnome-shell-extensions-3.33.91/extensions/apps-menu/extension.js
|
||||
+ let openItem = new PopupMenu.PopupMenuItem(_("Open"));
|
||||
+ this._menu.addMenuItem(openItem);
|
||||
+ openItem.connect('activate', () => {
|
||||
+ this._menu.destroy();
|
||||
+ this._menu = null;
|
||||
+ this._app.open_new_window(-1);
|
||||
+ this._button.selectCategory(null, null);
|
||||
+ this._button.menu.toggle();
|
||||
@ -107,19 +109,18 @@ Index: gnome-shell-extensions-3.33.91/extensions/apps-menu/extension.js
|
||||
+ destDirPath = Glib.build_filenamev([GLib.get_home_dir(), "Desktop"]);
|
||||
+ }
|
||||
+ let destFile = Gio.File.new_for_path(destDirPath + '/' + sourceFile.get_basename());
|
||||
+ if (sourceFile.copy(destFile, Gio.FileCopyFlags.OVERWRITE,
|
||||
+ null, null, null)) {
|
||||
+ if (sourceFile.copy(destFile, Gio.FileCopyFlags.OVERWRITE, null, null)) {
|
||||
+ // In order to make the general monitor recognize the setting of metadata,
|
||||
+ // this function call should before the setting of unix mode.
|
||||
+ destFile.set_attribute_string("metadata::trusted",
|
||||
+ "yes",
|
||||
+ Gio.FileQueryInfoFlags.NOFOLLOW_SYMLINKS,
|
||||
+ null);
|
||||
+ destFile.set_attribute_uint32(
|
||||
+ Gio.FILE_ATTRIBUTE_UNIX_MODE, parseInt("0755", 8),
|
||||
+ Gio.FileQueryInfoFlags.NOFOLLOW_SYMLINKS,
|
||||
+ null);
|
||||
+ let info = new Gio.FileInfo();
|
||||
+ info.set_attribute_string('metadata::trusted', 'true');
|
||||
+ destFile.set_attributes_from_info(info,
|
||||
+ Gio.FileQueryInfoFlags.NOFOLLOW_SYMLINKS, null);
|
||||
+ destFile.set_attribute_uint32( Gio.FILE_ATTRIBUTE_UNIX_MODE, parseInt("0755", 8),
|
||||
+ Gio.FileQueryInfoFlags.NOFOLLOW_SYMLINKS, null);
|
||||
+ }
|
||||
+ this._menu.destroy();
|
||||
+ this._menu = null;
|
||||
+ this._button.selectCategory(null, null);
|
||||
+ this._button.menu.toggle();
|
||||
+ });
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:de18927a7d0f5652628d97f03e102c84e576b9c873a878b8e1a53c21183b5039
|
||||
size 207980
|
3
gnome-shell-extensions-3.36.2.tar.xz
Normal file
3
gnome-shell-extensions-3.36.2.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:978202de515cdb03a5885859c538366bca8fd78762ce98b172ac2c0126f8003f
|
||||
size 207976
|
@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 30 05:26:25 UTC 2020 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||
|
||||
- Update to version 3.36.2:
|
||||
+ Misc. bug fixes and cleanups.
|
||||
+ Updated translations.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 29 03:43:20 UTC 2020 - Xiaoguang Wang <xiaoguang.wang@suse.com>
|
||||
|
||||
- Update gnome-shell-add-app-to-desktop.patch: Remove error in
|
||||
journal log(bsc#1170761).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 17 03:36:01 UTC 2020 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
%global __requires_exclude typelib\\(Meta\\)
|
||||
Name: gnome-shell-extensions
|
||||
Version: 3.36.1
|
||||
Version: 3.36.2
|
||||
Release: 0
|
||||
Summary: A collection of extensions for GNOME Shell
|
||||
License: GPL-2.0-or-later
|
||||
|
Loading…
Reference in New Issue
Block a user