<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="SessionItemRow" parent="GtkListBoxRow">
    <property name="selectable">false</property>
    <style>
      <class name="account-switcher-row"/>
    </style>
    <child>
      <object class="GtkBox">
        <property name="spacing">10</property>
        <child>
          <object class="AvatarWithSelection" id="avatar">
            <property name="size">40</property>
            <binding name="data">
              <lookup name="avatar-data" type="User">
                <lookup name="user" type="Session">
                  <lookup name="session">SessionItemRow</lookup>
                </lookup>
              </lookup>
            </binding>
          </object>
        </child>
        <child>
          <object class="GtkBox">
            <property name="spacing">3</property>
            <property name="orientation">vertical</property>
            <child>
              <object class="GtkLabel" id="display_name">
                <property name="xalign">0.0</property>
                <property name="hexpand">True</property>
                <binding name="label">
                  <lookup name="display-name" type="User">
                    <lookup name="user" type="Session">
                      <lookup name="session">SessionItemRow</lookup>
                    </lookup>
                  </lookup>
                </binding>
              </object>
            </child>
            <child>
              <object class="GtkLabel" id="user_id">
                <property name="xalign">0.0</property>
                <property name="hexpand">True</property>
                <binding name="label">
                  <lookup name="user-id" type="User">
                    <lookup name="user" type="Session">
                      <lookup name="session">SessionItemRow</lookup>
                    </lookup>
                  </lookup>
                </binding>
                <style>
                  <class name="dim-label"/>
                  <class name="caption"/>
                </style>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkButton">
            <property name="icon-name">applications-system-symbolic</property>
            <property name="valign">center</property>
            <property name="halign">center</property>
            <property name="tooltip-text" translatable="yes">Account Settings</property>
            <accessibility>
              <property name="label" translatable="yes">Account Settings</property>
            </accessibility>
            <signal name="clicked" handler="show_account_settings" swapped="true"/>
            <style>
              <class name="circular"/>
              <class name="raised"/>
            </style>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>
