Commit 0482ae87 authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Philipp Hörist

GroupchatControl: Add invite button

parent 575d60d2
......@@ -272,6 +272,31 @@
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="quick_invite_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">Invite Contacts…</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">list-add-symbolic</property>
</object>
</child>
<style>
<class name="chatcontrol-actionbar-button"/>
<class name="flat"/>
</style>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="authentication_button">
<property name="can_focus">True</property>
......@@ -297,7 +322,7 @@
<property name="expand">False</property>
<property name="fill">False</property>
<property name="pack_type">end</property>
<property name="position">1</property>
<property name="position">2</property>
</packing>
</child>
<child>
......@@ -318,7 +343,7 @@
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">2</property>
<property name="position">3</property>
</packing>
</child>
<child>
......@@ -343,7 +368,7 @@
<property name="expand">False</property>
<property name="fill">False</property>
<property name="pack_type">end</property>
<property name="position">3</property>
<property name="position">4</property>
</packing>
</child>
<child>
......@@ -367,7 +392,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">4</property>
<property name="position">5</property>
</packing>
</child>
<child>
......@@ -396,7 +421,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">5</property>
<property name="position">6</property>
</packing>
</child>
<child>
......@@ -411,7 +436,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">7</property>
<property name="position">8</property>
</packing>
</child>
</object>
......
......@@ -176,6 +176,9 @@ class GroupchatControl(ChatControlBase):
self.xml.info_grid.attach(self._muc_info_box, 0, 0, 1, 1)
# Groupchat invite
self.xml.quick_invite_button.set_action_name(
'win.invite-%s' % self.control_id)
self._invite_box = GroupChatInvite(self.room_jid)
self.xml.invite_grid.attach(self._invite_box, 0, 0, 1, 1)
self._invite_box.connect('listbox-changed', self._on_invite_ready)
......
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