Accepting request 90545 from Publishing

- Add Num_Lock as modifire for Button Down (bnc#727906)

OBS-URL: https://build.opensuse.org/request/show/90545
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghostview?expand=0&rev=13
This commit is contained in:
Stephan Kulow 2011-11-08 16:26:51 +00:00 committed by Git OBS Bridge
parent 6954248d4d
commit 41c9d48b84
3 changed files with 85 additions and 0 deletions

78
ghostview-1.5-ad.dif Normal file
View File

@ -0,0 +1,78 @@
--- Ghostview.ad
+++ Ghostview.ad 2011-11-08 12:01:45.894067000 +0000
@@ -60,25 +60,41 @@
*MenuButton.baseTranslations: #replace \n\
<EnterWindow>: highlight() \n\
<LeaveWindow>: reset() \n\
- ! <BtnDown>: reset() PopupMenu() \n\
- ! Shift<BtnDown>: reset() PopupMenu() \n\
- ! Lock <BtnDown>: reset() PopupMenu() \n\
- ! Lock Shift<BtnDown>: reset() PopupMenu() \n\
- !Ctrl <BtnDown>: reset() PopupMenu() \n\
- !Ctrl Shift<BtnDown>: reset() PopupMenu() \n\
- !Ctrl Lock <BtnDown>: reset() PopupMenu() \n\
- !Ctrl Lock Shift<BtnDown>: reset() PopupMenu()
+ ! <BtnDown>: reset() PopupMenu() \n\
+ ! Shift<BtnDown>: reset() PopupMenu() \n\
+ ! Lock <BtnDown>: reset() PopupMenu() \n\
+ ! Lock Shift<BtnDown>: reset() PopupMenu() \n\
+ ! @Num_Lock <BtnDown>: reset() PopupMenu() \n\
+ ! @Num_Lock Shift<BtnDown>: reset() PopupMenu() \n\
+ ! @Num_Lock Lock <BtnDown>: reset() PopupMenu() \n\
+ ! @Num_Lock Lock Shift<BtnDown>: reset() PopupMenu() \n\
+ !Ctrl <BtnDown>: reset() PopupMenu() \n\
+ !Ctrl Shift<BtnDown>: reset() PopupMenu() \n\
+ !Ctrl Lock <BtnDown>: reset() PopupMenu() \n\
+ !Ctrl Lock Shift<BtnDown>: reset() PopupMenu() \n\
+ !Ctrl @Num_Lock <BtnDown>: reset() PopupMenu() \n\
+ !Ctrl @Num_Lock Shift<BtnDown>: reset() PopupMenu() \n\
+ !Ctrl @Num_Lock Lock <BtnDown>: reset() PopupMenu() \n\
+ !Ctrl @Num_Lock Lock Shift<BtnDown>: reset() PopupMenu()
*MenuButton.translations: #replace \n\
<EnterWindow>: highlight() \n\
<LeaveWindow>: reset() \n\
- ! <BtnDown>: reset() PopupMenu() \n\
- ! Shift<BtnDown>: reset() PopupMenu() \n\
- ! Lock <BtnDown>: reset() PopupMenu() \n\
- ! Lock Shift<BtnDown>: reset() PopupMenu() \n\
- !Ctrl <BtnDown>: reset() PopupMenu() \n\
- !Ctrl Shift<BtnDown>: reset() PopupMenu() \n\
- !Ctrl Lock <BtnDown>: reset() PopupMenu() \n\
- !Ctrl Lock Shift<BtnDown>: reset() PopupMenu()
+ ! <BtnDown>: reset() PopupMenu() \n\
+ ! Shift<BtnDown>: reset() PopupMenu() \n\
+ ! Lock <BtnDown>: reset() PopupMenu() \n\
+ ! Lock Shift<BtnDown>: reset() PopupMenu() \n\
+ ! @Num_Lock <BtnDown>: reset() PopupMenu() \n\
+ ! @Num_Lock Shift<BtnDown>: reset() PopupMenu() \n\
+ ! @Num_Lock Lock <BtnDown>: reset() PopupMenu() \n\
+ ! @Num_Lock Lock Shift<BtnDown>: reset() PopupMenu() \n\
+ !Ctrl <BtnDown>: reset() PopupMenu() \n\
+ !Ctrl Shift<BtnDown>: reset() PopupMenu() \n\
+ !Ctrl Lock <BtnDown>: reset() PopupMenu() \n\
+ !Ctrl Lock Shift<BtnDown>: reset() PopupMenu() \n\
+ !Ctrl @Num_Lock <BtnDown>: reset() PopupMenu() \n\
+ !Ctrl @Num_Lock Shift<BtnDown>: reset() PopupMenu() \n\
+ !Ctrl @Num_Lock Lock <BtnDown>: reset() PopupMenu() \n\
+ !Ctrl @Num_Lock Lock Shift<BtnDown>: reset() PopupMenu()
*SimpleMenu.baseTranslations: #replace \n\
<EnterWindow>: highlight() \n\
<LeaveWindow>: unhighlight() \n\
@@ -194,7 +210,7 @@ Ghostview.translations: #replace \n\
<Key>L: GhostviewScrollRight() \n\
Shift<Key>Up: GhostviewForce() GhostviewSetOrientation(portrait) \n\
Shift<Key>Right: GhostviewForce() GhostviewSetOrientation(landscape) \n\
- Shift<Key>Down: GhostviewForce() GhostviewSetOrientation(upside-down) \n\
+ Shift<Key>Down: GhostviewForce() GhostviewSetOrientation(upside-down) \n\
Shift<Key>Left: GhostviewForce() GhostviewSetOrientation(seascape) \n\
<Key>Up: GhostviewDefault() GhostviewSetOrientation(portrait) \n\
<Key>Right: GhostviewDefault() GhostviewSetOrientation(landscape) \n\
@@ -237,7 +253,7 @@ Ghostview.translations: #replace \n\
<Key>L: GhostviewScrollRight() \n\
Shift<Key>Up: GhostviewForce() GhostviewSetOrientation(portrait) \n\
Shift<Key>Right: GhostviewForce() GhostviewSetOrientation(landscape) \n\
- Shift<Key>Down: GhostviewForce() GhostviewSetOrientation(upside-down) \n\
+ Shift<Key>Down: GhostviewForce() GhostviewSetOrientation(upside-down) \n\
Shift<Key>Left: GhostviewForce() GhostviewSetOrientation(seascape) \n\
<Key>Up: GhostviewDefault() GhostviewSetOrientation(portrait) \n\
<Key>Right: GhostviewDefault() GhostviewSetOrientation(landscape) \n\

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Nov 8 12:08:26 UTC 2011 - werner@suse.de
- Add Num_Lock as modifire for Button Down (bnc#727906)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 8 11:06:40 CEST 2008 - werner@suse.de Tue Apr 8 11:06:40 CEST 2008 - werner@suse.de

View File

@ -34,6 +34,7 @@ Source: ghostview-1.5.tar.bz2
Source1: ghostview.desktop Source1: ghostview.desktop
Source2: ghostview.png Source2: ghostview.png
Patch: ghostview-1.5.dif Patch: ghostview-1.5.dif
Patch1: ghostview-1.5-ad.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)} %{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)}
%if "%_exec_prefix" == "/usr/X11R6" %if "%_exec_prefix" == "/usr/X11R6"
@ -58,6 +59,7 @@ Authors:
%prep %prep
%setup -q %setup -q
%patch %patch
%patch1
%build %build
xmkmf -a xmkmf -a