chatview.ui 2.02 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk+" version="3.10"/>
  <template class="ChatView" parent="GtkBox">
    <property name="orientation">vertical</property>
    <property name="spacing">5</property>
    <!-- start of chat text view -->
    <child>
      <object class="GtkScrolledWindow" id="scrolledwindow_chat">
        <property name="visible">True</property>
        <child>
          <object class="GtkTextView" id="textview_chat">
            <property name="visible">True</property>
            <property name="can_focus">True</property>
            <property name="editable">False</property>
            <property name="wrap-mode">word-char</property>
            <property name="left-margin">5</property>
            <property name="right-margin">5</property>
            <property name="height-request">50</property>
          </object>
        </child>
      </object>
      <packing>
        <property name="expand">True</property>
        <property name="fill">True</property>
      </packing>
    </child>
    <!-- end of chat text view -->
    <!-- start of chat entry -->
    <child>
      <object class="GtkBox" id="hbox_chat_input">
        <property name="visible">True</property>
        <property name="orientation">horizontal</property>
        <property name="spacing">5</property>
        <child>
          <object class="GtkEntry" id="entry_chat_input">
            <property name="visible">True</property>
          </object>
          <packing>
            <property name="expand">True</property>
            <property name="fill">True</property>
          </packing>
        </child>
        <child>
          <object class="GtkButton" id="button_chat_input">
            <property name="visible">True</property>
            <property name="label" translatable="yes">Send</property>
          </object>
        </child>
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
      </packing>
    </child>
  </template>
</interface>