aboutsummaryrefslogtreecommitdiff
path: root/xbattext.ms
diff options
context:
space:
mode:
Diffstat (limited to 'xbattext.ms')
-rw-r--r--xbattext.ms26
1 files changed, 23 insertions, 3 deletions
diff --git a/xbattext.ms b/xbattext.ms
index 06c1269..8166f7d 100644
--- a/xbattext.ms
+++ b/xbattext.ms
@@ -1,4 +1,7 @@
.so /home/john/prj/re/re.tmac
+.de Q
+\\$3\(lq\\$1\(rq\\$2
+..
.TL
.BI xbattext ,
an X11 battery monitor for NetBSD
@@ -166,7 +169,24 @@ The battery percentage, contained in the
member, is written to an
.I XmString ,
which is a special type of string used by Motif.
-It is associated with tag,
+It is associated with a
+.Q "font list element tag" ,
which contains information about the visual characteristics of the text.
-To begin with, the string is set to use the default tag.
-.Re xbattext.c:/^ i = 0;/
+We just use the default.
+.Re xbattext.c:/^ \/\* set color and font/
+.LP
+In the following section, the
+.I wargs
+array mentioned earlier is filled with a number of arguments
+that determine the visual appearance of the label widget.
+The number of arguments set is kept track of in the
+.I i
+variable.
+To begin with, the widget's label string is set to the previously defined
+.I XmString
+value.
+.bp
+.Re xbattext.c:/^ \/\* check .* ac adapter .* plugged in/
+.LP
+\&
+.Re xbattext.c:/^ \/\* check low battery/