pidgin/pidgin

Use g_set_str everywhere
default tip
2 days ago, Elliott Sales de Andrade
8cf1d11b59c1
Use g_set_str everywhere

This simplifies many setters.

Testing Done:
Ran `ninja turtles`

Reviewed at https://reviews.imfreedom.org/r/3182/
<?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="PidginAboutDialog" parent="GtkDialog">
<property name="default-height">600</property>
<signal name="response" handler="pidgin_about_dialog_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>
<property name="spacing">5</property>
<child>
<object class="GtkPicture" id="logo">
<property name="file">resource:///im/pidgin/Pidgin3/logo.png</property>
<property name="halign">center</property>
<property name="valign">center</property>
</object>
</child>
<child>
<object class="GtkLabel" id="application_name">
<property name="css-classes">title-1</property>
<property name="label" translatable="1">Pidgin</property>
<property name="justify">center</property>
<property name="selectable">1</property>
</object>
</child>
<child>
<object class="GtkStack" id="stack">
<property name="vexpand">1</property>
<property name="width-request">400</property>
<property name="height-request">150</property>
<property name="margin-bottom">2</property>
<property name="transition-type">slide-up</property>
<child>
<object class="GtkStackPage">
<property name="name">main</property>
<property name="title" translatable="1">General</property>
<property name="child">
<object class="GtkScrolledWindow">
<property name="focusable">1</property>
<property name="hscrollbar-policy">never</property>
<child>
<object class="AdwClamp">
<child>
<object class="GtkFrame">
<property name="css-classes">view</property>
<property name="margin-bottom">24</property>
<child>
<object class="GtkLabel">
<property name="use-markup">1</property>
<property name="margin-top">12</property>
<property name="margin-bottom">12</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<property name="wrap-mode">word</property>
<property name="wrap">1</property>
<property name="label">
<![CDATA[<span font-size="x-large"><b>Pidgin</b></span>
Pidgin is a messaging client based on libpurple which is capable of connecting to multiple messaging services at once. Pidgin is written in C using GTK. Pidgin is released, and may be modified and redistributed, under the terms of the GPL version 2 (or later). A copy of the GPL is distributed with Pidgin. Pidgin is copyrighted by its contributors, a list of whom is also distributed with Pidgin. There is no warranty for Pidgin.
<span font-size="large"><b>Helpful Resources</b></span>
• <a href="https://pidgin.im">Website</a>
• <a href="https://pidgin.im/help/">Frequently Asked Questions</a>
• IRC Channel: #pidgin on irc.libera.chat
• XMPP MUC: devel@conference.pidgin.im
<span font-size="medium"><b>Help for Oracle Employees</b></span>
Help is available from your normal internal helpdesk or IT department. The Pidgin developer and user communities cannot assist you in the configuration or use of Pidgin within Oracle, as we know nothing of Oracle's infrastructure.
<span font-size="medium"><b>Help from other Pidgin users</b></span>
Help is available on <a href="https://discourse.imfreedom.org/c/pidgin/5">our Discourse</a>.
We can't help with third-party protocols or plugins, but you may be able to find support via the <a href="https://pidgin.im/plugins/">Third Party Plugins Page</a>.
The Discourse's primary language is English. You are welcome to post in another language, but the responses may be less helpful.]]>
</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</child>
<child>
<object class="GtkStackPage">
<property name="name">developers</property>
<property name="title" translatable="1">Developers</property>
<property name="child">
<object class="AdwPreferencesPage" id="developers_page">
</object>
</property>
</object>
</child>
<child>
<object class="GtkStackPage">
<property name="name">translators</property>
<property name="title" translatable="1">Translators</property>
<property name="child">
<object class="AdwPreferencesPage" id="translators_page">
</object>
</property>
</object>
</child>
<child>
<object class="GtkStackPage">
<property name="name">build-info</property>
<property name="title" translatable="1">Build Information</property>
<property name="child">
<object class="AdwPreferencesPage">
<child>
<object class="GtkButton" id="copy_all_button">
<property name="css-classes">pill</property>
<property name="halign">center</property>
<property name="valign">end</property>
<property name="child">
<object class="AdwButtonContent">
<property name="icon-name">edit-copy-symbolic</property>
<property name="label" translatable="1">_Copy All</property>
<property name="use-underline">1</property>
</object>
</property>
<signal name="clicked" handler="pidgin_about_dialog_copy_button_cb" swapped="no"/>
</object>
</child>
<!-- AdwPreferencesPage doesn't track non-AdwPreferencesGroup children, so manually remove when it's destroyed. -->
<signal name="destroy" handler="gtk_widget_unparent" object="copy_all_button" swapped="yes"/>
<child>
<object class="AdwPreferencesGroup" id="build_info_group">
<property name="title" translatable="1">Build Information</property>
<child type="header-suffix">
<object class="GtkButton">
<property name="css-classes">flat</property>
<property name="icon-name">edit-copy-symbolic</property>
<signal name="clicked" handler="pidgin_about_dialog_copy_button_cb" object="build_info_group" swapped="no"/>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup" id="runtime_info_group">
<property name="title" translatable="1">Runtime Information</property>
<child type="header-suffix">
<object class="GtkButton">
<property name="css-classes">flat</property>
<property name="icon-name">edit-copy-symbolic</property>
<signal name="clicked" handler="pidgin_about_dialog_copy_button_cb" object="runtime_info_group" swapped="no"/>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup" id="conf_path_info_group">
<property name="title" translatable="1">Runtime Directories</property>
<child type="header-suffix">
<object class="GtkButton">
<property name="css-classes">flat</property>
<property name="icon-name">edit-copy-symbolic</property>
<signal name="clicked" handler="pidgin_about_dialog_copy_button_cb" object="conf_path_info_group" swapped="no"/>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup" id="gtk_settings_group">
<property name="title" translatable="1">GTK Settings</property>
<child type="header-suffix">
<object class="GtkButton">
<property name="css-classes">flat</property>
<property name="icon-name">edit-copy-symbolic</property>
<signal name="clicked" handler="pidgin_about_dialog_copy_button_cb" object="gtk_settings_group" swapped="no"/>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup" id="plugin_search_paths_group">
<property name="title" translatable="1">Plugin Search Paths</property>
<child type="header-suffix">
<object class="GtkButton">
<property name="css-classes">flat</property>
<property name="icon-name">edit-copy-symbolic</property>
<signal name="clicked" handler="pidgin_about_dialog_copy_button_cb" object="plugin_search_paths_group" swapped="no"/>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup" id="build_args_group">
<property name="title" translatable="1">Meson Arguments</property>
<property name="visible">0</property>
<child type="header-suffix">
<object class="GtkButton">
<property name="css-classes">flat</property>
<property name="icon-name">edit-copy-symbolic</property>
<signal name="clicked" handler="pidgin_about_dialog_copy_button_cb" object="build_args_group" swapped="no"/>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
<action-widgets>
<action-widget response="close">close_button</action-widget>
</action-widgets>
<child internal-child="action_area">
<object class="GtkBox">
<property name="valign">center</property>
<child>
<object class="GtkStackSwitcher" id="switcher">
<property name="stack">stack</property>
<property name="hexpand">1</property>
</object>
</child>
<child>
<object class="GtkButton" id="close_button">
<property name="label" translatable="1">Close</property>
<property name="focusable">1</property>
<property name="receives-default">1</property>
<property name="hexpand">1</property>
</object>
</child>
</object>
</child>
</template>
</interface>