Re: #200264 and xmessage
On 26.04.04 Frank Küster (frank@debian.org) wrote:
Hi,
> Thank you. Wouldn't it be better to give it on argument, and let it
> write
>
> "Please install the package\n\"perl-tk\" to use $1."
>
> so that we can reuse it when there's an other program that depends on
> perl-tk? Or even two arguments, the second being the package name?
>
Little patch. The default message is that what we want. For any
reason multi line messages don't work if the message is given at the
command line with argv[1].
H.
--
Politics are almost as exciting as war, and quite as dangerous. In war,
you can only be killed once.
-- Winston Churchill
http://hilmarpreusse.forum-rheinland.de/
--- texdoctk-warn.orig.c Tue Apr 27 09:04:01 2004
+++ texdoctk-warn.c Tue Apr 27 09:09:00 2004
@@ -33,8 +33,13 @@
int offset = 6;
XtAccelerators accels;
/* test for multi-lines */
- const char *msg = "Please install the package\n\"perl-tk\" to use texdoctk.";
+ char *msg = "Please install the package\n\"perl-tk\" to use texdoctk.";
+ /* const char *msg = "Please install the package\n\"perl-tk\" to use texdoctk."; */
+ if (argc >= 2) {
+ msg = argv[1];
+ }
+
toplevel = XtAppInitialize(&app_context, "Info",
NULL, 0,
&argc, argv,
Reply to: