<?xml version="1.0" encoding="UTF-8"?>
<interface domain="libinfgtk07">
  <!-- interface-requires gtk+ 3.0 -->
  <object class="GtkAdjustment" id="scroll_vadj">
    <signal name="changed" handler="inf_gtk_chat_adjustment_changed_cb" swapped="no" />
    <signal name="value-changed" handler="inf_gtk_chat_adjustment_value_changed_cb" swapped="no" />
  </object>
  <object class="GtkTextTagTable" id="chat_tag_table">
    <child type="tag">
      <object class="GtkTextTag" id="tag_normal">
        <property name="name">normal</property>
      </object>
    </child>
    <child type="tag">
      <object class="GtkTextTag" id="tag_system">
        <property name="name">system</property>
        <property name="foreground">#0000ff</property>
      </object>
    </child>
    <child type="tag">
      <object class="GtkTextTag" id="tag_emote">
        <property name="name">emote</property>
        <property name="foreground">#113322</property>
      </object>
    </child>
    <child type="tag">
      <object class="GtkTextTag" id="tag_backlog">
        <property name="name">backlog</property>
        <property name="foreground">#606060</property>
      </object>
    </child>
  </object>
  <object class="GtkTextBuffer" id="chat_buffer">
    <property name="tag-table">chat_tag_table</property>
  </object>
  <template class="InfGtkChat" parent="GtkGrid">
    <property name="orientation">vertical</property>
    <property name="row-spacing">6</property>
    <child>
      <object class="GtkScrolledWindow" id="scroll_main">
        <property name="visible">True</property>
        <property name="vadjustment">scroll_vadj</property>
        <property name="shadow_type">in</property>
        <property name="vexpand">True</property>
        <property name="vexpand-set">True</property>
        <property name="hexpand">True</property>
        <property name="hexpand-set">True</property>
        <child>
          <object class="GtkTextView" id="chat_view">
            <property name="visible">True</property>
            <property name="editable">False</property>
            <property name="can-focus">True</property>
            <property name="events">GDK_FOCUS_CHANGE_MASK</property>
            <property name="wrap-mode">word-char</property>
            <property name="indent">-12</property>
            <property name="buffer">chat_buffer</property>
            <property name="hexpand">True</property>
            <property name="hexpand-set">True</property>
            <property name="vexpand">True</property>
            <property name="vexpand-set">True</property>
          </object>
        </child>
      </object>
      <packing>
        <property name="left-attach">0</property>
        <property name="top-attach">0</property>
      </packing>
    </child>
    <child>
      <object class="GtkGrid" id="entry_grid">
        <property name="orientation">horizontal</property>
        <property name="visible">True</property>
        <property name="column-spacing">12</property>
        <child>
          <object class="GtkEntry" id="chat_entry">
            <property name="visible">True</property>
            <property name="sensitive">False</property>
            <property name="truncate-multiline">False</property>
            <property name="hexpand">True</property>
            <property name="hexpand-set">True</property>
            <signal name="activate" handler="inf_gtk_chat_entry_activate_cb" swapped="no" />
            <signal name="changed" handler="inf_gtk_chat_entry_changed_cb" swapped="no" />
            <signal name="key-press-event" handler="inf_gtk_chat_entry_key_press_event_cb" swapped="no" />
          </object>
          <packing>
            <property name="left-attach">0</property>
            <property name="top-attach">0</property>
          </packing>
        </child>
        <child>
          <object class="GtkButton" id="send_button">
            <property name="visible">False</property>
            <property name="label" translatable="yes">Send</property>
            <signal name="clicked" handler="inf_gtk_chat_send_button_clicked_cb" swapped="no" />
          </object>
          <packing>
            <property name="left-attach">1</property>
            <property name="top-attach">0</property>
          </packing>
        </child>
      </object>
      <packing>
        <property name="left-attach">0</property>
        <property name="top-attach">1</property>
      </packing>
    </child>
  </template>
</interface>
