Commit 2d65d529 authored by Sophie Herold's avatar Sophie Herold

Hide more unsupported features for gc contacts

parent 7da33898
Pipeline #2162 passed with stages
in 1 minute and 52 seconds
......@@ -339,6 +339,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="no_show_all">True</property>
<property name="tooltip_text" translatable="yes">Change display name</property>
<signal name="clicked" handler="on_edit_shown_name_button_clicked" swapped="no"/>
<child>
......@@ -440,10 +441,11 @@
</packing>
</child>
<child>
<object class="GtkListBox">
<object class="GtkListBox" id="subscription_listbox">
<property name="width_request">400</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
<property name="halign">center</property>
<property name="selection_mode">none</property>
<child>
......@@ -522,7 +524,7 @@
<object class="GtkLabel" id="to_subscription_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Not granted</property>
<property name="label" translatable="yes">No</property>
<style>
<class name="dim-label"/>
</style>
......@@ -600,6 +602,30 @@
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object>
<packing>
<property name="expand">False</property>
......@@ -677,7 +703,6 @@
</child>
<child>
<object class="GtkTreeViewColumn">
<property name="title" translatable="yes">column</property>
<child>
<object class="GtkCellRendererToggle" id="groups_toggle">
<property name="xpad">12</property>
......@@ -723,6 +748,7 @@
<object class="GtkToolButton" id="group_add_button">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">New Group…</property>
<property name="use_underline">True</property>
<property name="icon_name">list-add-symbolic</property>
<signal name="clicked" handler="on_group_add_button_clicked" swapped="no"/>
......@@ -737,6 +763,7 @@
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Rename Group…</property>
<property name="use_underline">True</property>
<property name="icon_name">edit-symbolic</property>
<signal name="clicked" handler="on_group_edit_button_clicked" swapped="no"/>
......@@ -751,6 +778,7 @@
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Delete Group</property>
<property name="use_underline">True</property>
<property name="icon_name">list-remove-symbolic</property>
<signal name="clicked" handler="on_group_remove_button_clicked" swapped="no"/>
......
......@@ -115,7 +115,10 @@ class ContactInfo:
self.real_jid = gc_contact.get_full_jid()
self.real_jid_for_vcard = self.real_jid
self.real_resource = gc_contact.name
self.ui.groups_page_box.hide()
self.ui.subscription_listbox.hide()
self.ui.edit_shown_name_button.hide()
else:
self.real_jid = contact.get_full_jid()
self.real_resource = contact.resource
......@@ -232,7 +235,7 @@ class ContactInfo:
dialog.set_transient_for(self.ui.window)
dialog.format_secondary_text(
_('Do you want to delete the group "{group}"?').format(group=group))
_('Do you want to delete the group “{group}”?').format(group=group))
dialog.add_button(_('Cancel'), 1)
dialog.add_button(_('Delete'), 2)
......@@ -489,8 +492,11 @@ class ContactInfo:
def rebuild_client_grid(self):
self.client_grid.clear()
for key, client in self.clients.items():
self.client_grid.add_header(_('Resource "{}"').format(key))
self.client_grid.add_value(_('Priority'), str(client['priority']))
if not self.gc_contact:
self.client_grid.add_header(_('Resource “{}”').format(key))
self.client_grid.add_value(
_('Priority'), str(client['priority']))
if client.get('status'):
self.client_grid.add_value(_('Status'),
helpers.get_uf_show(client['status']))
......@@ -646,8 +652,6 @@ class InfoGrid:
self.rows = 0
def add_value(self, name, value, uri=None):
value = GLib.markup_escape_text(value)
self.grid.insert_row(self.rows)
label = Gtk.Label(name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment