| ... |
... |
@@ -357,8 +357,8 @@ def update_actions(self, *args): |
|
357
|
357
|
|
|
358
|
358
|
# Manage chat
|
|
359
|
359
|
self._get_action('groupchat-manage-').set_enabled(
|
|
360
|
|
- self.is_connected and contact.affiliation in (Affiliation.ADMIN,
|
|
361
|
|
- Affiliation.OWNER))
|
|
|
360
|
+ joined and contact.affiliation in (Affiliation.ADMIN,
|
|
|
361
|
+ Affiliation.OWNER))
|
|
362
|
362
|
|
|
363
|
363
|
vcard_support = False
|
|
364
|
364
|
if self.disco_info is not None:
|
| ... |
... |
@@ -368,19 +368,19 @@ def update_actions(self, *args): |
|
368
|
368
|
self.xml.muc_description_entry.set_text(
|
|
369
|
369
|
self.disco_info.muc_description or '')
|
|
370
|
370
|
|
|
371
|
|
- if (self.is_connected and vcard_support and
|
|
|
371
|
+ if (joined and vcard_support and
|
|
372
|
372
|
contact.affiliation.is_owner):
|
|
373
|
373
|
self.xml.avatar_select_button.show()
|
|
374
|
374
|
|
|
375
|
375
|
self.xml.manage_change_subject_button.set_sensitive(
|
|
376
|
|
- self.is_connected and self._is_subject_change_allowed())
|
|
|
376
|
+ joined and self._is_subject_change_allowed())
|
|
377
|
377
|
|
|
378
|
378
|
self.xml.manage_advanced_button.set_sensitive(
|
|
379
|
|
- self.is_connected and contact.affiliation in (Affiliation.ADMIN,
|
|
380
|
|
- Affiliation.OWNER))
|
|
|
379
|
+ joined and contact.affiliation in (Affiliation.ADMIN,
|
|
|
380
|
+ Affiliation.OWNER))
|
|
381
|
381
|
|
|
382
|
382
|
self.xml.manage_destroy_button.set_sensitive(
|
|
383
|
|
- self.is_connected and contact.affiliation.is_owner)
|
|
|
383
|
+ joined and contact.affiliation.is_owner)
|
|
384
|
384
|
|
|
385
|
385
|
self._get_action('contact-information-').set_enabled(joined)
|
|
386
|
386
|
|
| ... |
... |
@@ -593,7 +593,7 @@ def _on_accept(path): |
|
593
|
593
|
self.xml.avatar_update_button.grab_default()
|
|
594
|
594
|
|
|
595
|
595
|
AvatarChooserDialog(_on_accept,
|
|
596
|
|
- transient_for=self.parent_win.window,
|
|
|
596
|
+ transient_for=app.window,
|
|
597
|
597
|
modal=True)
|
|
598
|
598
|
|
|
599
|
599
|
def _on_avatar_select_file_clicked(self, _button):
|