pidgin/resources/Status/editor.ui

Thu, 16 Nov 2023 23:44:39 -0600

author
Gary Kramlich <grim@reaperworld.com>
date
Thu, 16 Nov 2023 23:44:39 -0600
changeset 42504
02c38caf387b
parent 42445
f7838d462608
permissions
-rw-r--r--

Depend on GPlugin 0.42.1

Testing Done:
Ran `ninja turtles` without issues and noted that the ircv3 introspection was successful.

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

<?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"/>
  <!-- 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>
    <property name="resizable">0</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>
        <child>
          <object class="AdwPreferencesGroup">
            <property name="margin-start">24</property>
            <property name="margin-end">24</property>
            <property name="margin-top">24</property>
            <property name="margin-bottom">24</property>
            <child>
              <object class="AdwEntryRow" id="title">
                <property name="title" translatable="1">_Title</property>
                <property name="use-underline">1</property>
                <signal name="changed" handler="pidgin_status_editor_title_changed_cb"/>
              </object>
            </child>
            <child>
              <object class="PidginStatusPrimitiveChooser" id="primitive">
                <property name="title" translatable="1">St_atus</property>
                <property name="use-underline">1</property>
              </object>
            </child>
            <child>
              <object class="AdwPreferencesRow">
                <property name="focusable">0</property>
                <child>
                  <object class="GtkBox">
                    <property name="orientation">vertical</property>
                    <child>
                      <object class="GtkLabel">
                        <property name="css-classes">subtitle</property>
                        <property name="label" translatable="1">_Message</property>
                        <property name="mnemonic-widget">message</property>
                        <property name="margin-start">12</property>
                        <property name="margin-end">12</property>
                        <property name="xalign">0</property>
                        <property name="use-underline">1</property>
                      </object>
                    </child>
                    <child>
                      <object class="GtkScrolledWindow">
                        <property name="hexpand">1</property>
                        <property name="hscrollbar_policy">never</property>
                        <child>
                          <object class="GtkTextView" id="message">
                            <property name="buffer">
                              <object class="GtkTextBuffer" id="buffer"/>
                            </property>
                            <property name="hexpand">1</property>
                            <property name="width-request">450</property>
                            <property name="wrap-mode">word</property>
                          </object>
                        </child>
                      </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>
</interface>

mercurial