--- a/pidgin/meson.build Sat Apr 13 18:05:52 2024 -0500
+++ b/pidgin/meson.build Sat Apr 13 18:50:42 2024 -0500
@@ -37,7 +37,6 @@
- 'pidgininvitedialog.c',
'pidginnotificationaddcontact.c',
'pidginnotificationauthorizationrequest.c',
@@ -93,7 +92,6 @@
- 'pidgininvitedialog.h',
'pidginnotificationaddcontact.h',
'pidginnotificationauthorizationrequest.h',
--- a/pidgin/pidgindisplaywindow.c Sat Apr 13 18:05:52 2024 -0500
+++ b/pidgin/pidgindisplaywindow.c Sat Apr 13 18:50:42 2024 -0500
@@ -33,7 +33,6 @@
#include "pidginconversation.h"
#include "pidgindisplayitem.h"
-#include "pidgininvitedialog.h"
SIG_CONVERSATION_SWITCHED,
@@ -190,11 +189,6 @@
-static const gchar *pidgin_display_window_chat_conversation_actions[] = {
/******************************************************************************
*****************************************************************************/
@@ -255,7 +249,6 @@
GtkWidget *widget = NULL;
gboolean is_conversation = FALSE;
gboolean is_im_conversation = FALSE;
- gboolean is_chat_conversation = FALSE;
row = gtk_single_selection_get_selected_item(selection);
@@ -266,7 +259,6 @@
if(PURPLE_IS_CONVERSATION(conversation)) {
is_conversation = PURPLE_IS_CONVERSATION(conversation);
is_im_conversation = PURPLE_IS_IM_CONVERSATION(conversation);
- is_chat_conversation = PURPLE_IS_CHAT_CONVERSATION(conversation);
pidgin_display_window_actions_set_enabled(G_ACTION_MAP(window),
@@ -275,9 +267,6 @@
pidgin_display_window_actions_set_enabled(G_ACTION_MAP(window),
pidgin_display_window_im_conversation_actions,
- pidgin_display_window_actions_set_enabled(G_ACTION_MAP(window),
- pidgin_display_window_chat_conversation_actions,
widget = pidgin_display_item_get_widget(item);
if(GTK_IS_WIDGET(widget)) {
--- a/pidgin/pidgininvitedialog.c Sat Apr 13 18:05:52 2024 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,250 +0,0 @@
-/* Purple is the legal property of its developers, whose names are too numerous
- * to list here. Please refer to the COPYRIGHT file distributed with this
- * 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 program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
-#include "pidgininvitedialog.h"
-struct _PidginInviteDialog {
- PurpleChatConversation *conversation;
-static GParamSpec *properties[N_PROPERTIES] = {NULL, };
-G_DEFINE_FINAL_TYPE(PidginInviteDialog, pidgin_invite_dialog, GTK_TYPE_DIALOG)
-/******************************************************************************
- *****************************************************************************/
-pidgin_invite_dialog_set_conversation(PidginInviteDialog *dialog,
- PurpleChatConversation *conversation)
- g_return_if_fail(PIDGIN_IS_INVITE_DIALOG(dialog));
- dialog->conversation = g_object_ref(conversation);
- g_object_notify_by_pspec(G_OBJECT(dialog), properties[PROP_CONVERSATION]);
-/******************************************************************************
- *****************************************************************************/
-pidgin_invite_dialog_get_property(GObject *obj,
- PidginInviteDialog *dialog = PIDGIN_INVITE_DIALOG(obj);
- g_value_set_string(value,
- pidgin_invite_dialog_get_contact(dialog));
- g_value_set_string(value,
- pidgin_invite_dialog_get_message(dialog));
- case PROP_CONVERSATION:
- g_value_set_object(value,
- pidgin_invite_dialog_get_conversation(dialog));
- G_OBJECT_WARN_INVALID_PROPERTY_ID(obj, param_id, pspec);
-pidgin_invite_dialog_set_property(GObject *obj,
- PidginInviteDialog *dialog = PIDGIN_INVITE_DIALOG(obj);
- pidgin_invite_dialog_set_contact(dialog,
- g_value_get_string(value));
- pidgin_invite_dialog_set_message(dialog,
- g_value_get_string(value));
- case PROP_CONVERSATION:
- pidgin_invite_dialog_set_conversation(dialog,
- g_value_get_object(value));
- G_OBJECT_WARN_INVALID_PROPERTY_ID(obj, param_id, pspec);
-pidgin_invite_dialog_finalize(GObject *obj) {
- PidginInviteDialog *dialog = PIDGIN_INVITE_DIALOG(obj);
- g_clear_pointer(&dialog->contact, g_free);
- g_clear_pointer(&dialog->message, g_free);
- g_clear_object(&dialog->conversation);
- G_OBJECT_CLASS(pidgin_invite_dialog_parent_class)->finalize(obj);
-pidgin_invite_dialog_init(PidginInviteDialog *dialog) {
- gtk_widget_init_template(GTK_WIDGET(dialog));
-pidgin_invite_dialog_class_init(PidginInviteDialogClass *klass) {
- GObjectClass *obj_class = G_OBJECT_CLASS(klass);
- GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(klass);
- obj_class->get_property = pidgin_invite_dialog_get_property;
- obj_class->set_property = pidgin_invite_dialog_set_property;
- obj_class->finalize = pidgin_invite_dialog_finalize;
- gtk_widget_class_set_template_from_resource(
- "/im/pidgin/Pidgin3/Conversations/invite_dialog.ui"
- gtk_widget_class_bind_template_child(widget_class, PidginInviteDialog,
- gtk_widget_class_bind_template_child(widget_class, PidginInviteDialog,
- * PidginInviteDialog:contact:
- * The [class@Purple.Contact] that is being invited.
- properties[PROP_CONTACT] = g_param_spec_string(
- "The person that is being invited",
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT);
- * PidginInviteDialog:message:
- * A personalized message for the invite.
- properties[PROP_MESSAGE] = g_param_spec_string(
- "The invite message to send",
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT);
- * PidginInviteDialog:conversation:
- * The [class@Purple.Conversation] that the invite is for.
- properties[PROP_CONVERSATION] = g_param_spec_object(
- "The conversation that someone is being invited to",
- PURPLE_TYPE_CHAT_CONVERSATION,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
- g_object_class_install_properties(obj_class, N_PROPERTIES, properties);
-/******************************************************************************
- *****************************************************************************/
-pidgin_invite_dialog_new(PurpleChatConversation *conversation) {
- PIDGIN_TYPE_INVITE_DIALOG,
- "conversation", conversation,
-pidgin_invite_dialog_get_contact(PidginInviteDialog *dialog) {
- g_return_val_if_fail(PIDGIN_IS_INVITE_DIALOG(dialog), NULL);
- return gtk_editable_get_text(GTK_EDITABLE(dialog->contact));
-pidgin_invite_dialog_set_contact(PidginInviteDialog *dialog,
- g_return_if_fail(PIDGIN_IS_INVITE_DIALOG(dialog));
- gtk_editable_set_text(GTK_EDITABLE(dialog->contact), contact);
- g_object_notify_by_pspec(G_OBJECT(dialog), properties[PROP_CONTACT]);
-pidgin_invite_dialog_get_message(PidginInviteDialog *dialog) {
- g_return_val_if_fail(PIDGIN_IS_INVITE_DIALOG(dialog), NULL);
- return gtk_editable_get_text(GTK_EDITABLE(dialog->message));
-pidgin_invite_dialog_set_message(PidginInviteDialog *dialog,
- g_return_if_fail(PIDGIN_IS_INVITE_DIALOG(dialog));
- gtk_editable_set_text(GTK_EDITABLE(dialog->message), message);
- g_object_notify_by_pspec(G_OBJECT(dialog), properties[PROP_MESSAGE]);
-PurpleChatConversation *
-pidgin_invite_dialog_get_conversation(PidginInviteDialog *dialog) {
- g_return_val_if_fail(PIDGIN_IS_INVITE_DIALOG(dialog), NULL);
- return dialog->conversation;
--- a/pidgin/pidgininvitedialog.h Sat Apr 13 18:05:52 2024 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,160 +0,0 @@
- * Pidgin is the legal property of its developers, whose names are too numerous
- * to list here. Please refer to the COPYRIGHT file distributed with this
- * 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 program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
-#if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION)
-# error "only <pidgin.h> may be included directly"
-#ifndef PIDGIN_INVITE_DIALOG_H
-#define PIDGIN_INVITE_DIALOG_H
-#include "pidginversion.h"
- * #PidginInviteDialog is a simple #GtkDialog that presents the user with an
- * interface to invite another user to a conversation. Name completion is
- * automatically setup as well.
- * |[<!-- language="C" -->
- * invite_response(GtkWidget *widget, int resp, gpointer data) {
- * PidginInviteDialog *dialog = PIDGIN_INVITE_DIALOG(widget);
- * if(resp == GTK_RESPONSE_ACCEPT) {
- * "user wants to invite %s with message %s",
- * pidgin_invite_dialog_get_contact(dialog),
- * pidgin_invite_dialog_get_message(dialog)
- * invite_prompt(PurpleChatConversation *conv) {
- * GtkWidget *dialog = pidgin_invite_dialog_new(conv);
- * g_signal_connect(G_OBJECT(dialog), "response",
- * G_CALLBACK(invite_response), NULL);
-#define PIDGIN_TYPE_INVITE_DIALOG pidgin_invite_dialog_get_type()
-G_DECLARE_FINAL_TYPE(PidginInviteDialog, pidgin_invite_dialog, PIDGIN,
- INVITE_DIALOG, GtkDialog)
- * pidgin_invite_dialog_new:
- * @conversation: The #PurpleChatConversation instance.
- * Creates a new #PidginInviteDialog to invite someone to @conversation.
- * Returns: (transfer full): The new #PidginInviteDialog instance.
-GtkWidget *pidgin_invite_dialog_new(PurpleChatConversation *conversation);
- * pidgin_invite_dialog_set_contact:
- * @dialog: The #PidginInviteDialog instance.
- * @contact: The contact to invite.
- * Sets the contact that should be invited. This function is intended to be
- * used to prepopulate the dialog in cases where you just need to prompt the
- * user for an invite message.
-void pidgin_invite_dialog_set_contact(PidginInviteDialog *dialog, const gchar *contact);
- * pidgin_invite_dialog_get_contact:
- * @dialog: #PidginInviteDialog instance.
- * Gets the contact that was entered in @dialog. This string is only valid as
- * long as @dialog exists.
- * Returns: (transfer none): The contact that was entered.
-const gchar *pidgin_invite_dialog_get_contact(PidginInviteDialog *dialog);
- * pidgin_invite_dialog_set_message:
- * @dialog: The #PidginInviteDialog instance.
- * @message: The message that should be displayed.
- * Sets the message to be displayed in @dialog. The main use case is to
- * prepopulate the message.
-void pidgin_invite_dialog_set_message(PidginInviteDialog *dialog, const gchar *message);
- * pidgin_invite_dialog_get_message:
- * @dialog: The #PidginInviteDialog instance.
- * Gets the message that was entered in @dialog. The returned value is only
- * valid as long as @dialog exists.
- * Returns: (transfer none): The message that was entered in @dialog.
-const gchar *pidgin_invite_dialog_get_message(PidginInviteDialog *dialog);
- * pidgin_invite_dialog_get_conversation:
- * @dialog: The #PidginInviteDialog instance.
- * Gets the #PurpleChatConversation that @dialog was created for.
- * Returns: (transfer none): The #PurpleChatConversation that @dialog was
-PurpleChatConversation *pidgin_invite_dialog_get_conversation(PidginInviteDialog *dialog);
-#endif /* PIDGIN_INVITE_DIALOG_H */
--- a/pidgin/resources/Conversations/invite_dialog.ui Sat Apr 13 18:05:52 2024 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,118 +0,0 @@
-<?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/>.
--->
- <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="PidginInviteDialog" parent="GtkDialog">
- <property name="title" translatable="1">Invite to conversation...</property>
- <property name="resizable">0</property>
- <child internal-child="content_area">
- <object class="GtkBox">
- <property name="orientation">vertical</property>
- <property name="spacing">2</property>
- <object class="GtkGrid">
- <property name="vexpand">1</property>
- <property name="margin-bottom">6</property>
- <property name="row-spacing">6</property>
- <object class="GtkLabel">
- <property name="label" translatable="1">Please enter the name of the user you wish to invite, along with an optional invite message.</property>
- <property name="wrap">1</property>
- <property name="xalign">0</property>
- <property name="column">0</property>
- <property name="row">0</property>
- <property name="column-span">2</property>
- <object class="GtkLabel" id="label_contact">
- <property name="label" translatable="1">Contact:</property>
- <property name="xalign">0</property>
- <property name="column">0</property>
- <property name="row">1</property>
- <object class="GtkLabel" id="label_message">
- <property name="label" translatable="1">Message:</property>
- <property name="xalign">0</property>
- <property name="column">0</property>
- <property name="row">2</property>
- <object class="GtkEntry" id="contact">
- <property name="focusable">1</property>
- <property name="activates-default">1</property>
- <property name="column">1</property>
- <property name="row">1</property>
- <relation name="labelled-by">label_contact</relation>
- <object class="GtkEntry" id="message">
- <property name="focusable">1</property>
- <property name="activates-default">1</property>
- <property name="column">1</property>
- <property name="row">2</property>
- <relation name="labelled-by">label_message</relation>
- <object class="GtkButton" id="button1">
- <property name="label" translatable="1">Cancel</property>
- <property name="focusable">1</property>
- <property name="receives-default">1</property>
- <object class="GtkButton" id="button2">
- <property name="label" translatable="1">Invite</property>
- <property name="focusable">1</property>
- <property name="receives-default">1</property>
- <action-widget response="cancel">button1</action-widget>
- <action-widget response="accept">button2</action-widget>
--- a/pidgin/resources/pidgin.gresource.xml Sat Apr 13 18:05:52 2024 -0500
+++ b/pidgin/resources/pidgin.gresource.xml Sat Apr 13 18:50:42 2024 -0500
@@ -10,7 +10,6 @@
<file compressed="true" preprocess="xml-stripblanks">Accounts/manager-row.ui</file>
<file compressed="true" preprocess="xml-stripblanks">avatar.ui</file>
<file compressed="true" preprocess="xml-stripblanks">Conversations/conversation.ui</file>
- <file compressed="true" preprocess="xml-stripblanks">Conversations/invite_dialog.ui</file>
<file compressed="true" preprocess="xml-stripblanks">Conversations/message.ui</file>
<file compressed="true" preprocess="xml-stripblanks">Debug/debug.ui</file>
<file compressed="true" preprocess="xml-stripblanks">Display/window.ui</file>
--- a/po/POTFILES.in Sat Apr 13 18:05:52 2024 -0500
+++ b/po/POTFILES.in Sat Apr 13 18:50:42 2024 -0500
@@ -148,7 +148,6 @@
pidgin/pidgindisplaywindow.c
-pidgin/pidgininvitedialog.c
pidgin/pidginpluginsdialog.c
pidgin/pidginpluginsmenu.c
@@ -178,7 +177,6 @@
pidgin/resources/Accounts/manager.ui
pidgin/resources/Accounts/manager-row.ui
pidgin/resources/avatar.ui
-pidgin/resources/Conversations/invite_dialog.ui
pidgin/resources/Debug/debug.ui
pidgin/resources/Display/window.ui
pidgin/resources/Keypad/keypad.ui