import cheese-3.28.0-3.el8
This commit is contained in:
parent
376c9471b5
commit
09f6721212
49
SOURCES/cheese-3.28.0-fix-accelerators.patch
Normal file
49
SOURCES/cheese-3.28.0-fix-accelerators.patch
Normal file
@ -0,0 +1,49 @@
|
||||
From 446da7884914d471ce50f8b327edddbaf0d75ccb Mon Sep 17 00:00:00 2001
|
||||
From: esoleyman <emil@soleyman.com>
|
||||
Date: Fri, 24 May 2019 15:25:02 -0500
|
||||
Subject: [PATCH] Fix the accelerators
|
||||
|
||||
The thumbnail view did not allow users to execute commands such as open,
|
||||
save as, trash, or delete for one or more photo / video thumbnails using
|
||||
keyboard shortcuts such as ctrl+o, ctrl+s, etc...
|
||||
|
||||
https://gitlab.gnome.org/GNOME/cheese/issues/9
|
||||
---
|
||||
src/cheese-application.vala | 2 +-
|
||||
src/cheese-window.vala | 7 +++++++
|
||||
2 files changed, 8 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/cheese-application.vala b/src/cheese-application.vala
|
||||
index c4542be0..f46f3165 100644
|
||||
--- a/src/cheese-application.vala
|
||||
+++ b/src/cheese-application.vala
|
||||
@@ -116,7 +116,7 @@ public class Cheese.Application : Gtk.Application
|
||||
Environment.set_application_name (_("Cheese"));
|
||||
Window.set_default_icon_name ("org.gnome.Cheese");
|
||||
|
||||
- this.add_accelerator ("space", "app.shoot", null);
|
||||
+ this.set_accels_for_action ("app.shoot", {"space"});
|
||||
|
||||
// FIXME: Push these into the main window initialization.
|
||||
main_window.setup_ui ();
|
||||
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
|
||||
index 09879fc5..25df09e7 100644
|
||||
--- a/src/cheese-window.vala
|
||||
+++ b/src/cheese-window.vala
|
||||
@@ -1312,6 +1312,13 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
|
||||
|
||||
var menu = application.get_menu_by_id ("thumbview-menu");
|
||||
thumbnail_popup = new Gtk.Menu.from_model (menu);
|
||||
+
|
||||
+ application.set_accels_for_action ("app.quit", {"<Primary>q"});
|
||||
+ application.set_accels_for_action ("app.fullscreen", {"F11"});
|
||||
+ application.set_accels_for_action ("win.file-open", {"<Primary>o"});
|
||||
+ application.set_accels_for_action ("win.file-saveas", {"<Primary>s"});
|
||||
+ application.set_accels_for_action ("win.file-trash", {"Delete"});
|
||||
+ application.set_accels_for_action ("win.file-delete", {"<Shift>Delete"});
|
||||
|
||||
this.add_action_entries (actions, this);
|
||||
|
||||
--
|
||||
GitLab
|
||||
|
@ -1,12 +1,14 @@
|
||||
Name: cheese
|
||||
Epoch: 2
|
||||
Version: 3.28.0
|
||||
Release: 1%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Application for taking pictures and movies from a webcam
|
||||
|
||||
License: GPLv2+
|
||||
URL: https://wiki.gnome.org/Apps/Cheese
|
||||
Source0: https://download.gnome.org/sources/%{name}/3.28/%{name}-%{version}.tar.xz
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1625735
|
||||
Patch0: cheese-3.28.0-fix-accelerators.patch
|
||||
|
||||
BuildRequires: chrpath
|
||||
BuildRequires: desktop-file-utils
|
||||
@ -63,7 +65,7 @@ for writing applications that require a webcam display widget.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup -p1
|
||||
|
||||
|
||||
%build
|
||||
@ -118,6 +120,12 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/org.gnome.Cheese.desk
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Nov 25 2020 David King <dking@redhat.com> - 2:3.28.0-3
|
||||
- Fix keyboard accelerator patch (#1625735)
|
||||
|
||||
* Tue Oct 20 2020 David King <dking@redhat.com> - 2:3.28.0-2
|
||||
- Fix keyboard accelerators (#1625735)
|
||||
|
||||
* Mon Mar 12 2018 Kalev Lember <klember@redhat.com> - 2:3.28.0-1
|
||||
- Update to 3.28.0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user