Skip to content
Snippets Groups Projects
Commit 0482ae87 authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Philipp Hörist
Browse files

GroupchatControl: Add invite button

parent 575d60d2
No related branches found
No related tags found
No related merge requests found
...@@ -272,6 +272,31 @@ ...@@ -272,6 +272,31 @@
<property name="position">0</property> <property name="position">0</property>
</packing> </packing>
</child> </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> <child>
<object class="GtkButton" id="authentication_button"> <object class="GtkButton" id="authentication_button">
<property name="can_focus">True</property> <property name="can_focus">True</property>
...@@ -297,7 +322,7 @@ ...@@ -297,7 +322,7 @@
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">False</property> <property name="fill">False</property>
<property name="pack_type">end</property> <property name="pack_type">end</property>
<property name="position">1</property> <property name="position">2</property>
</packing> </packing>
</child> </child>
<child> <child>
...@@ -318,7 +343,7 @@ ...@@ -318,7 +343,7 @@
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">True</property> <property name="fill">True</property>
<property name="pack_type">end</property> <property name="pack_type">end</property>
<property name="position">2</property> <property name="position">3</property>
</packing> </packing>
</child> </child>
<child> <child>
...@@ -343,7 +368,7 @@ ...@@ -343,7 +368,7 @@
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">False</property> <property name="fill">False</property>
<property name="pack_type">end</property> <property name="pack_type">end</property>
<property name="position">3</property> <property name="position">4</property>
</packing> </packing>
</child> </child>
<child> <child>
...@@ -367,7 +392,7 @@ ...@@ -367,7 +392,7 @@
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">True</property> <property name="fill">True</property>
<property name="position">4</property> <property name="position">5</property>
</packing> </packing>
</child> </child>
<child> <child>
...@@ -396,7 +421,7 @@ ...@@ -396,7 +421,7 @@
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">True</property> <property name="fill">True</property>
<property name="position">5</property> <property name="position">6</property>
</packing> </packing>
</child> </child>
<child> <child>
...@@ -411,7 +436,7 @@ ...@@ -411,7 +436,7 @@
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">True</property> <property name="fill">True</property>
<property name="position">7</property> <property name="position">8</property>
</packing> </packing>
</child> </child>
</object> </object>
......
...@@ -176,6 +176,9 @@ def __init__(self, parent_win, contact, muc_data, acct): ...@@ -176,6 +176,9 @@ def __init__(self, parent_win, contact, muc_data, acct):
self.xml.info_grid.attach(self._muc_info_box, 0, 0, 1, 1) self.xml.info_grid.attach(self._muc_info_box, 0, 0, 1, 1)
# Groupchat invite # Groupchat invite
self.xml.quick_invite_button.set_action_name(
'win.invite-%s' % self.control_id)
self._invite_box = GroupChatInvite(self.room_jid) self._invite_box = GroupChatInvite(self.room_jid)
self.xml.invite_grid.attach(self._invite_box, 0, 0, 1, 1) self.xml.invite_grid.attach(self._invite_box, 0, 0, 1, 1)
self._invite_box.connect('listbox-changed', self._on_invite_ready) self._invite_box.connect('listbox-changed', self._on_invite_ready)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment