~ubuntu-branches/ubuntu/trusty/gq/trusty

« back to all changes in this revision

Viewing changes to debian/patches/02_deletepassonask.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2009-10-25 23:34:56 UTC
  • mfrom: (1.1.4 upstream) (3.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091025233456-i794n3yg2cff930j
Tags: 1.3.4-1
* QA upload.
  + Set maintainer to Debian QA Group <packages@qa.debian.org>.
* New upstream release. (Closes: #534705).
  + Does not segfault on amd64. (Closes: #444312).
  + Remove all existing patches and change patch system to quilt.
  + Replace dpatch build-dep with quilt.
* 01_desktop_file.diff - Remove encoding and bogus categories 
  from desktop file.
* Copy in config.{sub,guess} on configure, rm them on clean.
  + Add build-dep on autotools-dev.
* Make clean not ignore errors.
* Add copyright holders and version path to GPL (GPL-2).
* Update watch file to use SF redirector. (Closes: #449749).
* Bump debhelper build-dep and compat to 5.
* Bump Standards Version to 3.8.3.
  + Menu policy transition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh -e
2
 
## 02_deletepassonask.dpatch by  <ultrotter@debian.org>
3
 
##
4
 
## All lines beginning with `## DP:' are a description of the patch.
5
 
## DP: Delete the stored pass when the user clicks on "ask password"
6
 
 
7
 
if [ $# -lt 1 ]; then
8
 
    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
9
 
    exit 1
10
 
fi
11
 
 
12
 
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
13
 
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
14
 
 
15
 
case "$1" in
16
 
    -patch) patch -p1 ${patch_opts} < $0;;
17
 
    -unpatch) patch -R -p1 ${patch_opts} < $0;;
18
 
    *)
19
 
        echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
20
 
        exit 1;;
21
 
esac
22
 
 
23
 
exit 0
24
 
 
25
 
@DPATCH@
26
 
diff -urNad /home/ultrotter/docs/projects/deb/gq/gq-0.7.0+1.0beta1/src/prefs.c gq-0.7.0+1.0beta1/src/prefs.c
27
 
--- /home/ultrotter/docs/projects/deb/gq/gq-0.7.0+1.0beta1/src/prefs.c  2004-03-08 18:03:03.000000000 +0100
28
 
+++ gq-0.7.0+1.0beta1/src/prefs.c       2004-03-08 18:06:29.000000000 +0100
29
 
@@ -416,11 +416,20 @@
30
 
 
31
 
 static void ask_pw_toggled(GtkToggleButton *button, struct server_windata *sw)
32
 
 {
33
 
-     GtkWidget *field = sw->bindpw;
34
 
-     gtk_widget_set_sensitive(field, !gtk_toggle_button_get_active(button));
35
 
+     GtkWidget *field[2];
36
 
+     field[0] = sw->bindpw;
37
 
+     field[1] = sw->bindpw2;
38
 
 
39
 
-     field = sw->bindpw2;
40
 
-     gtk_widget_set_sensitive(field, !gtk_toggle_button_get_active(button));
41
 
+     if (gtk_toggle_button_get_active(button)) {
42
 
+            gtk_entry_set_text(GTK_ENTRY(field[0]), "");
43
 
+            gtk_entry_set_text(GTK_ENTRY(field[1]), "");
44
 
+            gtk_widget_set_sensitive(field[0], 0);
45
 
+            gtk_widget_set_sensitive(field[1], 0);
46
 
+     } else {
47
 
+            gtk_widget_set_sensitive(field[0], 1);
48
 
+            gtk_widget_set_sensitive(field[1], 1);     
49
 
+     }
50
 
+     
51
 
 }
52
 
 
53