~indicator-multiload/indicator-multiload/trunk

« back to all changes in this revision

Viewing changes to src/itemhelp.vala

  • Committer: Michael Hofmann
  • Date: 2013-03-02 23:25:21 UTC
  • Revision ID: mh21@mh21.de-20130302232521-3oxqquoek4lna3yg
Build, life time and gui fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 ******************************************************************************/
18
18
 
19
19
public class ItemHelp : Object {
 
20
    // only when dialog is visible
20
21
    private Gtk.Dialog items;
21
 
    private Gtk.TreeStore itemstore;
22
 
    private Gtk.TreeView itemview;
23
22
    private MenuModel menumodel;
24
23
 
 
24
    // helper
 
25
    private unowned Gtk.TreeStore itemstore;
 
26
    private unowned Gtk.TreeView itemview;
 
27
 
25
28
    public MultiLoadIndicator indicator { get; construct; }
26
29
 
27
30
    public ItemHelp(MultiLoadIndicator indicator) {
86
89
    [CCode (instance_pos = -1)]
87
90
    public void on_itemhelpdialog_destroy(Gtk.Widget source) {
88
91
        this.items = null;
89
 
        this.itemstore = null;
90
 
        this.itemview = null;
91
92
        this.menumodel = null;
92
93
    }
93
94
 
109
110
            int index;
110
111
            model.get(iter, 3, out index);
111
112
            if (index >= 0) {
112
 
                (model as Gtk.TreeStore).set(iter,
 
113
                this.itemstore.set(iter,
113
114
                        2, this.menumodel.expression(index).label());
114
115
            }
115
116
            return false;