Fix XMLConsole

- Print the stream header again
- Fix template button, it should not be translated
This commit is contained in:
Philipp Hörist 2018-08-18 12:35:21 +02:00
parent 083f5ee56d
commit c8c44f5a78
2 changed files with 6 additions and 6 deletions

View File

@ -439,10 +439,10 @@ class CommonConnection:
def _event_dispatcher(self, realm, event, data):
if realm == '':
if event == 'STANZA_RECEIVED':
if event == 'STANZA RECEIVED':
app.nec.push_incoming_event(StanzaReceivedEvent(
None, conn=self, stanza_str=str(data)))
elif event == 'STANZA_SENT':
elif event == 'DATA SENT':
app.nec.push_incoming_event(StanzaSentEvent(
None, conn=self, stanza_str=str(data)))

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.20.0 -->
<!-- Generated with glade 3.22.1 -->
<interface>
<requires lib="gtk+" version="3.20"/>
<object class="GtkBox" id="box">
@ -105,7 +105,7 @@
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Message</property>
<property name="label">Message</property>
</object>
</child>
</object>
@ -118,7 +118,7 @@
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Presence</property>
<property name="label">Presence</property>
</object>
</child>
</object>
@ -131,7 +131,7 @@
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Iq</property>
<property name="label">Iq</property>
</object>
</child>
</object>