about summary refs log tree commit diff stats
path: root/draw.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-25 15:24:18 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-25 15:24:18 +0200
commit03128f78df1fbe1b90eb9b7bcb1953050e8bccea (patch)
treeaaa9aafa6550c0775f07ff67cfb24ce90e99c615 /draw.c
parent7d4a5e654c5421411f1d66360d594285d462d77f (diff)
downloaddwm-03128f78df1fbe1b90eb9b7bcb1953050e8bccea.tar.gz
oops
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/draw.c b/draw.c
index 9204ee8..3ddc522 100644
--- a/draw.c
+++ b/draw.c
@@ -109,7 +109,7 @@ drawstatus()
 		else
 			drawtext(tags[i], dc.norm, sel && sel->tags[i]);
 	}
-	x = dc.x + dc.w + 2;
+	x = dc.x + dc.w + 1;
 	dc.w = textw(stext);
 	dc.x = bx + bw - dc.w;
 	if(dc.x < x) {
e */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
class Employee {
    int id;
    String name;
    Employee(int eid, String ename) {
        id = eid;
        name = ename;
    }
    public String toString() {
        return "Employee named \"" + name + "\" with ID " + id + ".";
    }
}

class Scientist extends Employee {
    int number_of_publications, experience;
    Scientist(int sid, String sname, int nopubs, int yexp) {
        super(sid, sname);
        number_of_publications = nopubs;
        experience = yexp;
    }
    public String toString() {
        return "Scientist named \"" + name + "\" with ID " + id + ", " +
            number_of_publications + " publications and " + experience +
            " years of experience" + ".";
    }
}

class DScientist extends Scientist {
    String[] award;
    DScientist(int sid, String sname, int nopubs, int yexp,
               String[] dsaward) {
        super(sid, sname, nopubs, yexp);
        award = dsaward;
    }
    public String toString() {
        return "Distinguished scientist named \"" + name + "\" with ID " + id +
            ", " + number_of_publications + " publications, " + experience +
            " years of experience and awardee of " + String.join(", ", award) + ".";
    }
}

class EmployeeDisplay {
    public static void main(String args[]) {
        Employee e;
        e = new Employee(87416846, "Kim Ji-hyung");
        System.out.println(e);
        e = new Scientist(14534, "Daniel Lemire", 80, 25);
        System.out.println(e);
        e = new DScientist(11, "Donald Ervin Knuth", 185, 60,
            new String[] { "Grace Murray Hopper Award (1971)", "Turing Award (1974)",
                "National Medal of Science (1979)", "John von Neumann Medal (1995)",
                "Harvey Prize (1995)", "Kyoto Prize (1996)", "Faraday Medal (2011)"});
        System.out.println(e);
    }
}