~ubuntu-branches/ubuntu/dapper/newt/dapper

« back to all changes in this revision

Viewing changes to debian/patches/30_notags.patch

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2005-03-22 12:44:37 UTC
  • mfrom: (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050322124437-nuhl0pqjcijjno9z
Tags: 0.51.6-20ubuntu3
Add Xhosa translation (thanks, Adi Attar).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff -ruN newt-0.51.6-old/dialogboxes.c newt-0.51.6/dialogboxes.c
 
2
--- newt-0.51.6-old/dialogboxes.c       2004-03-09 15:01:24.000000000 +0000
 
3
+++ newt-0.51.6/dialogboxes.c   2004-03-09 15:26:47.000000000 +0000
 
4
@@ -215,6 +215,10 @@
 
5
     if (numItems == 0)
 
6
        return DLG_ERROR;
 
7
 
 
8
+    if (flags & FLAG_NOTAGS) {
 
9
+           maxTagWidth = 0;
 
10
+    }
 
11
+
 
12
     form = newtForm(NULL, NULL, 0);
 
13
 
 
14
     tb = textbox(height - 4 - buttonHeight - listHeight, width - 2,
 
15
@@ -309,6 +313,11 @@
 
16
        numBoxes++;
 
17
     }
 
18
 
 
19
+       
 
20
+    if (flags & FLAG_NOTAGS) {
 
21
+           maxTagWidth = 0;
 
22
+    }
 
23
+
 
24
     form = newtForm(NULL, NULL, 0);
 
25
 
 
26
     tb = textbox(height - 3 - buttonHeight - listHeight, width - 2,
 
27
diff -ruN newt-0.51.6-old/dialogboxes.h newt-0.51.6/dialogboxes.h
 
28
--- newt-0.51.6-old/dialogboxes.h       2003-01-03 20:54:45.000000000 +0000
 
29
+++ newt-0.51.6/dialogboxes.h   2004-03-09 15:01:24.000000000 +0000
 
30
@@ -11,6 +11,7 @@
 
31
 #define FLAG_NOCANCEL          (1 << 1)
 
32
 #define FLAG_SCROLL_TEXT       (1 << 2)
 
33
 #define FLAG_DEFAULT_NO        (1 << 3)
 
34
+#define FLAG_NOTAGS            (1 << 5)
 
35
 
 
36
 #define DLG_ERROR              -1
 
37
 #define DLG_OKAY               0
 
38
diff -ruN newt-0.51.6-old/whiptail.c newt-0.51.6/whiptail.c
 
39
--- newt-0.51.6-old/whiptail.c  2004-03-09 15:01:24.000000000 +0000
 
40
+++ newt-0.51.6/whiptail.c      2004-03-09 15:01:24.000000000 +0000
 
41
@@ -45,6 +45,7 @@
 
42
     int fd = -1;
 
43
     int needSpace = 0;
 
44
     int noCancel = 0;
 
45
+    int noTags = 0;
 
46
     int noItem = 0;
 
47
     int clear = 0;
 
48
     int scrollText = 0;
 
49
@@ -70,6 +71,7 @@
 
50
            { "msgbox", '\0', 0, 0, OPT_MSGBOX },
 
51
            { "nocancel", '\0', 0, &noCancel, 0 },
 
52
            { "noitem", '\0', 0, &noItem, 0 },
 
53
+           { "notags", '\0', 0, &noTags, 0 },
 
54
            { "radiolist", '\0', 0, 0, OPT_RADIOLIST },
 
55
            { "scrolltext", '\0', 0, &scrollText, 0 },
 
56
            { "separate-output", '\0', 0, &separateOutput, 0 },
 
57
@@ -170,6 +172,7 @@
 
58
 
 
59
     if (noCancel) flags |= FLAG_NOCANCEL;
 
60
     if (noItem) flags |= FLAG_NOITEM;
 
61
+    if (noTags) flags |= FLAG_NOTAGS;
 
62
     if (scrollText) flags |= FLAG_SCROLL_TEXT;
 
63
     if (defaultNo) flags |= FLAG_DEFAULT_NO;
 
64