### it under the terms of the GNU General Public License as published by
### the Free Software Foundation; either version 2 of the License, or
### (at your option) any later version.
-###
+###
### X tools is distributed in the hope that it will be useful,
### but WITHOUT ANY WARRANTY; without even the implied warranty of
### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
### GNU General Public License for more details.
-###
+###
### You should have received a copy of the GNU General Public License
### along with X tools; if not, write to the Free Software Foundation,
### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
If anyone wants to do an Xaw version of the GTK bits then I'll
include that in the distribution; people using Motif or Qt need
not apply.
-
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2 of the License, or
dnl (at your option) any later version.
-dnl
+dnl
dnl X tools is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
-dnl
+dnl
dnl You should have received a copy of the GNU General Public License
dnl along with X tools; if not, write to the Free Software Foundation,
dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
xtoys (1.4.0) experimental; urgency=low
- * GTK-based tools now written in Python, and use GTK 2.
+ * GTK-based tools now written in Python, and use GTK 2.
* xtell and xwait replaced by single xatom program.
* Internal: new build system.
Section: x11
Priority: extra
Build-Depends:
- libx11-dev, mlib-dev (>= 2.0.4), debhelper (>= 5),
+ libx11-dev, mlib-dev (>= 2.0.4), debhelper (>= 5),
python-central, python (>= 2.4), python-gtk2
Maintainer: Mark Wooding <mdw@distorted.org.uk>
XS-Python-Version: >= 2.4
We have:
xcatch -- run a program, displaying its output in a scrolling window if
there is any
- xgetline -- pops up a dialogue, reads a line of text, and reports the
+ xgetline -- pops up a dialogue, reads a line of text, and reports the
entered line on stdout; can do passwords, history with optional size
limit, or simple selection from a list
xmsg -- pop up a dialogue showing a message and a bunch of buttons, and
&type, &fmt, /* Actual type and format */
&n, &left, /* Amount read, and bytes left */
&buf) /* Where to put the buffer */
- != Success ||
+ != Success ||
type != XA_ATOM ||
n < 1 || fmt < 32)
return (None);
for (c = cmds; c->name; c++) {
if (strncmp(name, c->name, sz) == 0) {
if (c->name[sz] == 0) {
- chosen = c;
- break;
+ chosen = c;
+ break;
} else if (chosen)
- die(EXIT_FAILURE, "ambiguous command name `%s'", name);
+ die(EXIT_FAILURE, "ambiguous command name `%s'", name);
else
- chosen = c;
+ chosen = c;
}
}
if (!chosen)
for (;;) {
static struct option opt[] = {
- { "help", 0, 0, 'h' },
- { "usage", 0, 0, 'u' },
- { "version", 0, 0, 'v' },
- { "display", OPTF_ARGREQ, 0, 'd' },
+ { "help", 0, 0, 'h' },
+ { "usage", 0, 0, 'u' },
+ { "version", 0, 0, 'v' },
+ { "display", OPTF_ARGREQ, 0, 'd' },
{ "window", OPTF_ARGREQ, 0, 'w' },
{ 0, 0, 0, 0 }
};
.PP
It is better to write
.IP
-.B xcatch
+.B xcatch
.I command args
.PP
than
.SS Options
.TP
.BI "\-F, \-\-font " font
-Display output text in
+Display output text in
.I font
rather than GTK's default.
.TP
.RB ` ! '
then that character is removed. (Hence, if you really wanted to show
the message
-.RB ` \- ',
+.RB ` \- ',
you need to pass
.RB ` !\- '.)
Conscientious script authors will prefix strings appropriately.
.IR label .
The
.I label
-is either a text string, or a GTK stock-id (e.g.,
+is either a text string, or a GTK stock-id (e.g.,
.BR gtk-ok ).
Mnemonic characters in button labels may be marked by prefixing them
with underscores. Write two underscores if you really want a literal
for (;;) {
static struct option opt[] = {
- { "help", 0, 0, 'h' },
- { "usage", 0, 0, 'u' },
- { "version", 0, 0, 'v' },
- { "display", OPTF_ARGREQ, 0, 'd' },
+ { "help", 0, 0, 'h' },
+ { "usage", 0, 0, 'u' },
+ { "version", 0, 0, 'v' },
+ { "display", OPTF_ARGREQ, 0, 'd' },
{ "bourne-shell", 0, 0, 'b' },
{ "c-shell", 0, 0, 'c' },
{ "export", 0, 0, 'x' },