~indicator-multiload/indicator-multiload/trunk

« back to all changes in this revision

Viewing changes to src/trayindicatorview.vala

  • Committer: mh21 at mh21
  • Date: 2017-02-24 11:53:48 UTC
  • Revision ID: mh21@mh21.de-20170224115348-qnslmzm6f9x0wu0m
Add size2 function with IEC units (base 2).

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    private string icondirectory;
22
22
 
23
23
 
24
 
    public string label { set {} }
25
 
    public string guide { set {} }
26
 
 
27
24
    public string icon {
28
25
        set {
29
26
            var path = Path.build_filename(this.icondirectory, value + ".png");
56
53
                activate_time);
57
54
        });
58
55
 
59
 
        this.indicator.scroll_event.connect((event) => {
60
 
            this.scroll_event(1, event.direction);
61
 
            return true;
62
 
        });
63
 
 
64
56
        this.indicator.button_release_event.connect((event) => {
65
57
            if (event.button == 2 &&
66
58
                event.type == Gdk.EventType.BUTTON_RELEASE) {