Remove the plugins dialog
This was moved into the main display window awhile ago, but this hadn't been
removed yet.
Testing Done:
Ran with the turtles and verified the menu item and dialog was gone.
Reviewed at https://reviews.imfreedom.org/r/3137/
--- a/pidgin/meson.build Thu Apr 18 00:42:04 2024 -0500
+++ b/pidgin/meson.build Fri Apr 19 16:39:24 2024 -0500
@@ -39,7 +39,6 @@
'pidginnotificationauthorizationrequest.c',
'pidginnotificationconnectionerror.c',
'pidginnotificationlist.c',
- 'pidginpluginsdialog.c',
'pidginprotocolchooser.c',
@@ -91,7 +90,6 @@
'pidginnotificationauthorizationrequest.h',
'pidginnotificationconnectionerror.h',
'pidginnotificationlist.h',
- 'pidginpluginsdialog.h',
'pidginprotocolchooser.h',
--- a/pidgin/pidginapplication.c Thu Apr 18 00:42:04 2024 -0500
+++ b/pidgin/pidginapplication.c Fri Apr 19 16:39:24 2024 -0500
@@ -42,7 +42,6 @@
#include "pidgindisplaywindow.h"
-#include "pidginpluginsdialog.h"
#include "pidginpluginsmenu.h"
@@ -432,22 +431,6 @@
-pidgin_application_plugins(G_GNUC_UNUSED GSimpleAction *simple,
- G_GNUC_UNUSED GVariant *parameter, gpointer data)
- PidginApplication *application = data;
- static GtkWidget *dialog = NULL;
- if(!GTK_IS_WIDGET(dialog)) {
- dialog = pidgin_plugins_dialog_new();
- g_object_add_weak_pointer(G_OBJECT(dialog), (gpointer)&dialog);
- pidgin_application_present_transient_window(application,
pidgin_application_preferences(G_GNUC_UNUSED GSimpleAction *simple,
G_GNUC_UNUSED GVariant *parameter,
@@ -519,9 +502,6 @@
.name = "manage-accounts",
.activate = pidgin_application_accounts,
- .name = "manage-plugins",
- .activate = pidgin_application_plugins,
.activate = pidgin_application_online_help,
--- a/pidgin/pidginpluginsdialog.c Thu Apr 18 00:42:04 2024 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,100 +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
-#include "pidginpluginsdialog.h"
-#define G_SETTINGS_ENABLE_BACKEND
-#include <gio/gsettingsbackend.h>
-#include <gplugin-gtk.h>
-struct _PidginPluginsDialog {
-/******************************************************************************
- *****************************************************************************/
-pidgin_plugins_dialog_response_cb(GtkDialog* self, gint response_id,
- G_GNUC_UNUSED gpointer data)
- case GTK_RESPONSE_DELETE_EVENT:
- gtk_window_destroy(GTK_WINDOW(self));
-/******************************************************************************
- * GObject Implementation
- *****************************************************************************/
-G_DEFINE_FINAL_TYPE(PidginPluginsDialog, pidgin_plugins_dialog,
-pidgin_plugins_dialog_class_init(PidginPluginsDialogClass *klass) {
- GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(klass);
- gtk_widget_class_set_template_from_resource(
- "/im/pidgin/Pidgin3/Plugins/dialog.ui"
- gtk_widget_class_bind_template_child(widget_class, PidginPluginsDialog,
- gtk_widget_class_bind_template_callback(widget_class,
- pidgin_plugins_dialog_response_cb);
-pidgin_plugins_dialog_init(PidginPluginsDialog *dialog) {
- GPluginManager *manager = NULL;
- GSettingsBackend *backend = NULL;
- gtk_widget_init_template(GTK_WIDGET(dialog));
- manager = gplugin_manager_get_default();
- gplugin_gtk_view_set_manager(GPLUGIN_GTK_VIEW(dialog->view), manager);
- backend = purple_core_get_settings_backend();
- gplugin_gtk_view_set_settings_backend(GPLUGIN_GTK_VIEW(dialog->view),
-/******************************************************************************
- *****************************************************************************/
-pidgin_plugins_dialog_new(void) {
- return g_object_new(PIDGIN_TYPE_PLUGINS_DIALOG, NULL);
--- a/pidgin/pidginpluginsdialog.h Thu Apr 18 00:42:04 2024 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,65 +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_PLUGINS_DIALOG_H
-#define PIDGIN_PLUGINS_DIALOG_H
-#include "pidginversion.h"
- * A dialog that allows the user to configure their plugins.
-#define PIDGIN_TYPE_PLUGINS_DIALOG (pidgin_plugins_dialog_get_type())
-G_DECLARE_FINAL_TYPE(PidginPluginsDialog, pidgin_plugins_dialog, PIDGIN,
- PLUGINS_DIALOG, GtkDialog)
- * pidgin_plugins_dialog_new:
- * Creates a new instance of #PidginPluginsDialog.
- * Returns: (transfer full): The new #PidginPluginsDialog.
-GtkWidget *pidgin_plugins_dialog_new(void);
-#endif /* PIDGIN_PLUGINS_DIALOG_H */
--- a/pidgin/resources/Plugins/dialog.ui Thu Apr 18 00:42:04 2024 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,43 +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 program; if not, see <https://www.gnu.org/licenses/>.
--->
- <requires lib="gtk" version="4.0"/>
- <requires lib="gplugin-gtk4" version="0.35"/>
- <!-- interface-license-type gplv2 -->
- <!-- interface-name Pidgin -->
- <!-- interface-description Internet Messenger -->
- <!-- interface-copyright Pidgin Developers <devel@pidgin.im> -->
- <template class="PidginPluginsDialog" parent="GtkDialog">
- <property name="title" translatable="1">Plugins</property>
- <property name="default-height">700</property>
- <property name="default-width">560</property>
- <signal name="response" handler="pidgin_plugins_dialog_response_cb" swapped="no"/>
- <child internal-child="content_area">
- <object class="GtkBox">
- <property name="orientation">vertical</property>
- <object class="GPluginGtkView" id="view">
- <property name="vexpand">1</property>
- <child internal-child="action_area"/>
--- a/pidgin/resources/gtk/menus.ui Thu Apr 18 00:42:04 2024 -0500
+++ b/pidgin/resources/gtk/menus.ui Fri Apr 19 16:39:24 2024 -0500
@@ -84,12 +84,6 @@
<attribute name="label" translatable="yes">_Plugins</attribute>
- <attribute name="label" translatable="yes">Manage Plu_gins</attribute>
- <attribute name="action">app.manage-plugins</attribute>
<section id="plugins-menu"/>
--- a/pidgin/resources/pidgin.gresource.xml Thu Apr 18 00:42:04 2024 -0500
+++ b/pidgin/resources/pidgin.gresource.xml Fri Apr 19 16:39:24 2024 -0500
@@ -18,7 +18,6 @@
<file compressed="true" preprocess="xml-stripblanks">Notifications/addcontact.ui</file>
<file compressed="true" preprocess="xml-stripblanks">Notifications/authorizationrequest.ui</file>
<file compressed="true" preprocess="xml-stripblanks">Notifications/connectionerror.ui</file>
- <file compressed="true" preprocess="xml-stripblanks">Plugins/dialog.ui</file>
<file compressed="true" preprocess="xml-stripblanks">Prefs/away.ui</file>
<file compressed="true" preprocess="xml-stripblanks">Prefs/conversation.ui</file>
<file compressed="true" preprocess="xml-stripblanks">Prefs/credentials.ui</file>
--- a/po/POTFILES.in Thu Apr 18 00:42:04 2024 -0500
+++ b/po/POTFILES.in Fri Apr 19 16:39:24 2024 -0500
@@ -128,7 +128,6 @@
-pidgin/pidginpluginsdialog.c
pidgin/pidginpluginsmenu.c
pidgin/pidginpresenceicon.c
pidgin/pidginprotocolchooser.c
@@ -160,7 +159,6 @@
pidgin/resources/Display/window.ui
pidgin/resources/Keypad/keypad.ui
pidgin/resources/Media/window.ui
-pidgin/resources/Plugins/dialog.ui
pidgin/resources/Prefs/away.ui
pidgin/resources/Prefs/credentialprovider.ui
pidgin/resources/Prefs/credentials.ui