Skip to content
Snippets Groups Projects
Commit f90b27b2 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[httpupload] Prepare for new ChatControl design

parent 6a82485e
No related branches found
No related tags found
No related merge requests found
......@@ -117,6 +117,8 @@ class HTTPUploadPlugin(GajimPlugin):
if jid not in interface.controls:
return
actions_hbox = chat_control.xml.get_object('actions_hbox')
if actions_hbox is None:
actions_hbox = chat_control.xml.get_object('hbox')
actions_hbox.remove(interface.controls[jid])
def update_chat_control(self, chat_control):
......@@ -152,6 +154,11 @@ class Base(object):
button.set_image(img)
button.set_relief(Gtk.ReliefStyle.NONE)
if actions_hbox is None:
actions_hbox = chat_control.xml.get_object('hbox')
style = button.get_style_context()
style.add_class('chatcontrol-actionbar-button')
actions_hbox.add(button)
self.controls[jid] = button
......
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