Debian Bug report logs - #47597
please add option "--notags", patch included

version graph

Package: whiptail; Maintainer for whiptail is Alastair McKinstry <mckinstry@debian.org>; Source for whiptail is src:newt.

Reported by: Goswin Brederlow <mrvn@zxmqu18.extern.uni-tuebingen.de>

Date: Sat, 16 Oct 1999 23:03:03 UTC

Severity: wishlist

Found in version 0.30-2

Done: Alastair McKinstry <mckinstry@computer.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Enrique Zanardi <ezanard@debian.org>:
Bug#47597; Package whiptail. Full text and rfc822 format available.

Acknowledgement sent to Goswin Brederlow <mrvn@zxmqu18.extern.uni-tuebingen.de>:
New Bug report received and forwarded. Copy sent to Enrique Zanardi <ezanard@debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Goswin Brederlow <mrvn@zxmqu18.extern.uni-tuebingen.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: please add option "--notags", patch included
Date: Sun, 17 Oct 1999 00:51:36 +0200
Package: whiptail
Version: 0.30-2
Severity: wishlist

I implemented an option "--notags" for whiptail, because I need that for my
demofs package to use callbacks constructs in menulists.

May the Source be with you.
			Goswin

-- System Information
Debian Release: potato
Architecture: i386
Kernel: Linux mrvnbook 2.2.12 #8 Thu Sep 30 17:00:39 CEST 1999 i686

Versions of packages whiptail depends on:
ii  newt0.30                      0.30-2     Not Erik's Windowing Toolkit - tex

------------------[ newt-0.30-mrvn.diff ]--------------------------------------

diff -Nurd newt-0.30/Makefile newt-0.30-mrvn/Makefile
--- newt-0.30/Makefile  Sun Oct 17 00:43:20 1999
+++ newt-0.30-mrvn/Makefile     Sun Oct 17 00:42:53 1999
@@ -1,4 +1,4 @@
-LIBS = -lslang -lm #-lefence
+LIBS = -lslang -lm -ldl #-lefence
 SHLIBS = -lslang -lm -lc
 LIBTCL = -ltcl8.0
 
diff -Nurd newt-0.30/debian/changelog newt-0.30-mrvn/debian/changelog
--- newt-0.30/debian/changelog  Sun Oct 17 00:43:20 1999
+++ newt-0.30-mrvn/debian/changelog     Sun Oct 17 00:42:53 1999
@@ -1,3 +1,9 @@
+newt (0.30-2) unstable; urgency=low
+
+  * Added option -notags which hides the tags in the listbox
+  
+ -- Goswin Brederlow <goswin.brederlow@student.uni-tuebingen.de>  Fri, 15 Oct 1
999 11:18:27 +0200
+
 newt (0.30-1) unstable; urgency=low
 
   * New upstream version.
diff -Nurd newt-0.30/dialogboxes.c newt-0.30-mrvn/dialogboxes.c
--- newt-0.30/dialogboxes.c     Sun Oct 17 00:43:20 1999
+++ newt-0.30-mrvn/dialogboxes.c        Sun Oct 17 00:42:53 1999
@@ -198,6 +198,10 @@
        numItems++;
     }
 
+    if (flags & FLAG_NOTAGS) {
+       maxTagWidth = 0;
+    }
+
     form = newtForm(NULL, NULL, 0);
 
     tb = textbox(height - 4 - buttonHeight - listHeight, width - 2,
@@ -216,10 +220,17 @@
                          top + 1, listHeight, 
                            NEWT_FLAG_RETURNEXIT | scrollFlag);
 
-    sprintf(format, "%%-%ds  %%s", maxTagWidth);
-    for (i = 0; i < numItems; i++) {
-       sprintf(buf, format, itemInfo[i].tag, itemInfo[i].text);
-       newtListboxAddEntry(listBox, buf, (void *) i);
+    if (!(flags & FLAG_NOTAGS)) {
+       sprintf(format, "%%-%ds  %%s", maxTagWidth);
+       for (i = 0; i < numItems; i++) {
+           sprintf(buf, format, itemInfo[i].tag, itemInfo[i].text);
+           newtListboxAddEntry(listBox, buf, (void *) i);
+       }
+    } else {
+       for (i = 0; i < numItems; i++) {
+           sprintf(buf, "%s", itemInfo[i].text);
+           newtListboxAddEntry(listBox, buf, (void *) i);
+       }
     }
 
     newtFormAddComponents(form, tb, listBox, NULL);
diff -Nurd newt-0.30/dialogboxes.h newt-0.30-mrvn/dialogboxes.h
--- newt-0.30/dialogboxes.h     Sun Jan  4 00:00:28 1998
+++ newt-0.30-mrvn/dialogboxes.h        Sun Oct 17 00:42:53 1999
@@ -11,6 +11,7 @@
 #define FLAG_NOCANCEL          (1 << 1)
 #define FLAG_SCROLL_TEXT       (1 << 2)
 #define FLAG_DEFAULT_NO        (1 << 3)
+#define FLAG_NOTAGS            (1 << 4)
 
 #define DLG_ERROR              -1
 #define DLG_OKAY               0
diff -Nurd newt-0.30/whiptail.c newt-0.30-mrvn/whiptail.c
--- newt-0.30/whiptail.c        Sun Oct 17 00:43:20 1999
+++ newt-0.30-mrvn/whiptail.c   Sun Oct 17 00:42:53 1999
@@ -260,6 +260,7 @@
     int needSpace = 0;
     int noCancel = 0;
     int noItem = 0;
+    int noTags = 0;
     int clear = 0;
     int scrollText = 0;
     int rc = 1;
@@ -285,6 +286,7 @@
            { "msgbox", '\0', 0, 0, OPT_MSGBOX },
            { "nocancel", '\0', 0, &noCancel, 0 },
            { "noitem", '\0', 0, &noItem, 0 },
+           { "notags", '\0', 0, &noTags, 0 },
            { "radiolist", '\0', 0, 0, OPT_RADIOLIST },
            { "scrolltext", '\0', 0, &scrollText, 0 },
            { "separate-output", '\0', 0, &separateOutput, 0 },
@@ -376,6 +378,7 @@
 
     if (noCancel) flags |= FLAG_NOCANCEL;
     if (noItem) flags |= FLAG_NOITEM;
+    if (noTags) flags |= FLAG_NOTAGS;
     if (scrollText) flags |= FLAG_SCROLL_TEXT;
     if (defaultNo) flags |= FLAG_DEFAULT_NO;
 
diff -Nurd newt-0.30/whiptcl.c newt-0.30-mrvn/whiptcl.c
--- newt-0.30/whiptcl.c Mon Aug 18 23:12:02 1997
+++ newt-0.30-mrvn/whiptcl.c    Sun Oct 17 00:42:53 1999
@@ -65,6 +65,7 @@
     int width;
     int noCancel = 0;
     int noItem = 0;
+    int noTags = 0;
     int scrollText = 0;
     int rc = 0;
     int flags = 0;
@@ -80,6 +81,7 @@
            { "msgbox", '\0', 0, 0, OPT_MSGBOX },
            { "nocancel", '\0', 0, &noCancel, 0 },
            { "noitem", '\0', 0, &noItem, 0 },
+           { "notags", '\0', 0, &noTags, 0 },
            { "radiolist", '\0', 0, 0, OPT_RADIOLIST },
            { "scrolltext", '\0', 0, &scrollText, 0 },
            { "title", '\0', POPT_ARG_STRING, &title, 0 },
@@ -175,6 +177,7 @@
 
     if (noCancel) flags |= FLAG_NOCANCEL;
     if (noItem) flags |= FLAG_NOITEM;
+    if (noTags) flags |= FLAG_NOTAGS;
     if (scrollText) flags |= FLAG_SCROLL_TEXT;
     if (defaultNo) flags |= FLAG_DEFAULT_NO;
 




Reply sent to Alastair McKinstry <mckinstry@computer.org>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Goswin Brederlow <mrvn@zxmqu18.extern.uni-tuebingen.de>:
Bug acknowledged by developer. Full text and rfc822 format available.

Message #10 received at 47597-done@bugs.debian.org (full text, mbox):

From: Alastair McKinstry <mckinstry@computer.org>
To: 47597-done@bugs.debian.org
Subject: closed
Date: 06 Jun 2003 20:34:06 +0100
This was closed with the latest upload, 0.51.4-8.

Regards,
Alastair

-- 
Alastair McKinstry <mckinstry@computer.org>
GPG Key fingerprint = 9E64 E714 8E08 81F9 F3DC  1020 FA8E 3790 9051 38F4

He that would make his own liberty secure must guard even his enemy from
oppression; for if he violates this duty he establishes a precedent that
will reach to himself.

- --Thomas Paine




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 04:07:51 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.