pidgin/resources/Status/editor.ui

Tue, 23 Aug 2022 02:01:50 -0500

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Tue, 23 Aug 2022 02:01:50 -0500
branch
gtk4
changeset 41574
5c79e2bb862b
parent 41544
53ba39406c86
child 41629
f617ffec2950
permissions
-rw-r--r--

Port status stuff to GTK4

Testing Done:
Compiled and viewed the status box; added a new status, used it, opened manager, deleted saved status.

Reviewed at https://reviews.imfreedom.org/r/1626/

<?xml version="1.0" encoding="UTF-8"?>
<!--
Pidgin - Internet Messenger
Copyright (C) Pidgin Developers <devel@pidgin.im>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this library; if not, see <https://www.gnu.org/licenses/>.
-->
<interface>
  <requires lib="gtk" version="4.0"/>
  <requires lib="Talkatu" version="0.1"/>
  <requires lib="pidgin" version="3.0"/>
  <!-- interface-license-type gplv2 -->
  <!-- interface-name Pidgin -->
  <!-- interface-description Internet Messenger -->
  <!-- interface-copyright Pidgin Developers <devel@pidgin.im> -->
  <template class="PidginStatusEditor" parent="GtkDialog">
    <property name="title" translatable="1">Status</property>
    <property name="destroy-with-parent">1</property>
    <signal name="response" handler="pidgin_status_editor_response_cb" swapped="no"/>
    <child internal-child="content_area">
      <object class="GtkBox">
        <property name="orientation">vertical</property>
        <property name="spacing">2</property>
        <child>
          <object class="GtkBox">
            <property name="vexpand">1</property>
            <property name="orientation">vertical</property>
            <child>
              <object class="GtkBox">
                <property name="vexpand">1</property>
                <property name="valign">GTK_ALIGN_FILL</property>
                <child>
                  <object class="GtkLabel" id="label1">
                    <property name="label" translatable="1">_Title:</property>
                    <property name="use-underline">1</property>
                    <property name="xalign">0</property>
                    <property name="yalign">0</property>
                    <property name="mnemonic-widget">title</property>
                  </object>
                </child>
                <child>
                  <object class="GtkEntry" id="title">
                    <property name="hexpand">1</property>
                    <property name="halign">GTK_ALIGN_FILL</property>
                    <property name="focusable">1</property>
                    <signal name="changed" handler="pidgin_status_editor_title_changed_cb" object="PidginStatusEditor" swapped="no"/>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkBox">
                <property name="vexpand">1</property>
                <property name="valign">GTK_ALIGN_FILL</property>
                <child>
                  <object class="GtkLabel" id="label2">
                    <property name="label" translatable="1">St_atus:</property>
                    <property name="use-underline">1</property>
                    <property name="xalign">0</property>
                    <property name="yalign">0</property>
                    <property name="mnemonic-widget">primitive</property>
                  </object>
                </child>
                <child>
                  <object class="PidginStatusPrimitiveChooser" id="primitive">
                    <property name="hexpand">1</property>
                    <property name="halign">GTK_ALIGN_FILL</property>
                    <property name="id-column">0</property>
                    <property name="model">primitive_store</property>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkBox">
                <property name="vexpand">1</property>
                <property name="valign">GTK_ALIGN_FILL</property>
                <child>
                  <object class="GtkLabel" id="label3">
                    <property name="label" translatable="1">_Message:</property>
                    <property name="use-underline">1</property>
                    <property name="xalign">0</property>
                    <property name="yalign">0</property>
                    <property name="mnemonic-widget">message</property>
                  </object>
                </child>
                <child>
                  <object class="TalkatuEditor">
                    <property name="halign">GTK_ALIGN_FILL</property>
                    <property name="hexpand">1</property>
                    <property name="orientation">vertical</property>
                    <property name="valign">GTK_ALIGN_FILL</property>
                    <property name="vexpand">1</property>
                    <child internal-child="send_button">
                      <object class="GtkButton">
                        <property name="visible">0</property>
                      </object>
                    </child>
                    <child internal-child="toolbar">
                      <object class="TalkatuToolbar"/>
                    </child>
                    <child internal-child="input">
                      <object class="TalkatuInput" id="message">
                        <property name="buffer">buffer</property>
                        <property name="halign">GTK_ALIGN_FILL</property>
                        <property name="hexpand">1</property>
                        <property name="valign">GTK_ALIGN_FILL</property>
                        <property name="vexpand">1</property>
                        <property name="width-request">450</property>
                        <property name="wrap-mode">word</property>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
    <child type="action">
      <object class="GtkButton" id="cancel">
        <property name="label" translatable="1">_Cancel</property>
        <property name="focusable">1</property>
        <property name="receives-default">1</property>
        <property name="use-underline">1</property>
      </object>
    </child>
    <child type="action">
      <object class="GtkButton" id="use">
        <property name="label" translatable="1">_Use</property>
        <property name="focusable">1</property>
        <property name="receives-default">1</property>
        <property name="sensitive">0</property>
        <property name="use-underline">1</property>
      </object>
    </child>
    <child type="action">
      <object class="GtkButton" id="save">
        <property name="label" translatable="1">_Save</property>
        <property name="focusable">1</property>
        <property name="receives-default">1</property>
        <property name="sensitive">0</property>
        <property name="use-underline">1</property>
      </object>
    </child>
    <action-widgets>
      <action-widget response="cancel">cancel</action-widget>
      <action-widget response="0">use</action-widget>
      <action-widget response="1">save</action-widget>
    </action-widgets>
  </template>
  <object class="GtkSizeGroup">
    <widgets>
      <widget name="label1"/>
      <widget name="label2"/>
      <widget name="label3"/>
    </widgets>
  </object>
  <object class="TalkatuHtmlBuffer" id="buffer"/>
  <object class="PidginStatusPrimitiveStore" id="primitive_store"/>
</interface>

mercurial