~ubuntu-branches/ubuntu/warty/nethack/warty

« back to all changes in this revision

Viewing changes to debian/patches/10_gnome_add_quiver.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Joshua Kwan
  • Date: 2004-04-28 22:20:28 UTC
  • Revision ID: james.westby@ubuntu.com-20040428222028-ir8ahbbxi1jcot2d
Tags: 3.4.3-5
* Add Catalan translation (Closes: #248734)
* Patch work:
  - 91_enh_menucolors: Fix Pasi Kallinen's email address. pk -> pkalli
  - 19_gnome_ext_events (new): Fix a problem in Gnomehack where mouse click
    events in the extended menu would not be handled (thus a certain
    choice might be chosen, but a different one 'picked' by the code).
    (Closes: #246265)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -e
 
2
## 10_gnome_add_quiver.dpatch by Joshua Kwan <joshk@triplehelix.org>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: Add a 'Quiver/Ready' option to the GNOME UI menu.
 
6
 
 
7
if [ $# -ne 1 ]; then
 
8
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
 
9
    exit 1
 
10
fi
 
11
case "$1" in
 
12
    -patch) patch -f --no-backup-if-mismatch -p1 < $0;;
 
13
    -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
 
14
    *)
 
15
        echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
 
16
        exit 1;;
 
17
esac
 
18
 
 
19
exit 0
 
20
 
 
21
--- a/win/gnome/gnmain.c~       2003-10-06 23:39:19.000000000 -0700
 
22
+++ b/win/gnome/gnmain.c        2003-10-06 23:38:39.000000000 -0700
 
23
@@ -361,6 +361,12 @@
 
24
               ghack_accelerator_selected, 
 
25
               GINT_TO_POINTER('t'), NULL, GNOME_APP_PIXMAP_NONE, NULL, 't',0
 
26
           },
 
27
+           {
 
28
+               GNOME_APP_UI_ITEM, N_("Quiver/Ready"),
 
29
+               N_("ready or quiver some ammunition"),
 
30
+               ghack_accelerator_selected,
 
31
+               GINT_TO_POINTER('Q'), NULL, GNOME_APP_PIXMAP_NONE, NULL, 'Q',0
 
32
+           },
 
33
           { 
 
34
               GNOME_APP_UI_ITEM, N_("Open Door"), 
 
35
               N_("open a door"),