Lines 27-32
Link Here
|
27 |
public class Contacts.ContactSheet : Grid { |
27 |
public class Contacts.ContactSheet : Grid { |
28 |
private int last_row = 0; |
28 |
private int last_row = 0; |
29 |
private Individual individual; |
29 |
private Individual individual; |
|
|
30 |
private unowned Store store; |
30 |
public bool narrow { get; set; default = true; } |
31 |
public bool narrow { get; set; default = true; } |
31 |
|
32 |
|
32 |
private const string[] SORTED_PROPERTIES = { |
33 |
private const string[] SORTED_PROPERTIES = { |
Lines 43-48
Link Here
|
43 |
public ContactSheet (Individual individual, Store store) { |
44 |
public ContactSheet (Individual individual, Store store) { |
44 |
Object (row_spacing: 12, column_spacing: 12); |
45 |
Object (row_spacing: 12, column_spacing: 12); |
45 |
this.individual = individual; |
46 |
this.individual = individual; |
|
|
47 |
this.store = store; |
46 |
|
48 |
|
47 |
this.individual.notify.connect (update); |
49 |
this.individual.notify.connect (update); |
48 |
this.individual.personas_changed.connect (update); |
50 |
this.individual.personas_changed.connect (update); |
Lines 242-248
Link Here
|
242 |
var type = im_persona.presence_type; |
244 |
var type = im_persona.presence_type; |
243 |
if (type != PresenceType.UNSET && type != PresenceType.ERROR && |
245 |
if (type != PresenceType.UNSET && type != PresenceType.ERROR && |
244 |
type != PresenceType.OFFLINE && type != PresenceType.UNKNOWN) { |
246 |
type != PresenceType.OFFLINE && type != PresenceType.UNKNOWN) { |
245 |
Utils.start_chat (this.contact, protocol, id.value); |
247 |
Utils.start_chat (this.individual, protocol, id.value); |
246 |
} |
248 |
} |
247 |
} |
249 |
} |
248 |
}); |
250 |
}); |