fileItem: Make display name an object attribute
Similar to all the other file metadata
Carlos Soriano authored 5 years ago
Carlos Soriano committed 5 years ago
86 | 86 | this._filePath = this._file.get_path(); |
87 | 87 | this._modifiedTime = this._fileInfo.get_attribute_uint64("time::modified"); |
88 | 88 | this._state = State.NORMAL; |
89 | this._displayName = fileInfo.get_attribute_as_string('standard::display-name'); | |
89 | 90 | |
90 | 91 | this.actor = new St.Bin({ visible: true }); |
91 | 92 | this.actor.set_fill(true, true); |
110 | 111 | this._container.add_actor(this._iconContainer); |
111 | 112 | |
112 | 113 | this._label = new St.Label({ |
113 | text: fileInfo.get_attribute_as_string('standard::display-name'), | |
114 | text: this._displayName, | |
114 | 115 | style_class: 'name-label' |
115 | 116 | }); |
116 | 117 |