Remove PidginCloseButton as it's no longer used
Testing Done:
Compiled and ran.
Reviewed at https://reviews.imfreedom.org/r/1533/
--- a/pidgin/gtkblist.c Thu Jul 21 00:36:23 2022 -0500
+++ b/pidgin/gtkblist.c Thu Jul 21 00:37:53 2022 -0500
@@ -41,7 +41,6 @@
#include "pidgin/pidginaccountstore.h"
#include "pidgin/pidginactiongroup.h"
#include "pidgin/pidgincellrendererexpander.h"
-#include "pidgin/pidginclosebutton.h"
#include "pidgin/pidgincontactlistwindow.h"
#include "pidgin/pidgincore.h"
#include "pidgin/pidgindebug.h"
--- a/pidgin/gtkconv.c Thu Jul 21 00:36:23 2022 -0500
+++ b/pidgin/gtkconv.c Thu Jul 21 00:37:53 2022 -0500
@@ -45,7 +45,6 @@
#include "pidginavatar.h"
-#include "pidginclosebutton.h"
#include "pidginconversationwindow.h"
--- a/pidgin/meson.build Thu Jul 21 00:36:23 2022 -0500
+++ b/pidgin/meson.build Thu Jul 21 00:37:53 2022 -0500
@@ -32,7 +32,6 @@
'pidgincellrendererexpander.c',
'pidginconversationwindow.c',
@@ -108,7 +107,6 @@
'pidgincellrendererexpander.h',
'pidginconversationwindow.h',
'pidgincontactlistwindow.h',
--- a/pidgin/pidginclosebutton.c Thu Jul 21 00:36:23 2022 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,54 +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, see <https://www.gnu.org/licenses/>.
-#include "pidginclosebutton.h"
-struct _PidginCloseButton {
-/******************************************************************************
- * GObject Implementation
- *****************************************************************************/
-G_DEFINE_TYPE(PidginCloseButton, pidgin_close_button, GTK_TYPE_BUTTON)
-pidgin_close_button_init(PidginCloseButton *button) {
- gtk_widget_init_template(GTK_WIDGET(button));
-pidgin_close_button_class_init(PidginCloseButtonClass *klass) {
- GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(klass);
- gtk_widget_class_set_template_from_resource(
- "/im/pidgin/Pidgin3/closebutton.ui"
-/******************************************************************************
- *****************************************************************************/
-pidgin_close_button_new(void) {
- return GTK_WIDGET(g_object_new(PIDGIN_TYPE_CLOSE_BUTTON, NULL));
--- a/pidgin/pidginclosebutton.h Thu Jul 21 00:36:23 2022 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,61 +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, see <https://www.gnu.org/licenses/>.
-#if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION)
-# error "only <pidgin.h> may be included directly"
-#ifndef PIDGIN_CLOSE_BUTTON_H
-#define PIDGIN_CLOSE_BUTTON_H
- * #PidginCloseButton is a transitional widget as we slowly migrate the
- * conversation window to glade.
-#define PIDGIN_TYPE_CLOSE_BUTTON (pidgin_close_button_get_type())
-G_DECLARE_FINAL_TYPE(PidginCloseButton, pidgin_close_button, PIDGIN,
- CLOSE_BUTTON, GtkButton)
- * pidgin_close_button_new:
- * Creates a new #PidginCloseButton instance.
- * Returns: (transfer full): The new #PidginCloseButton instance.
-GtkWidget *pidgin_close_button_new(void);
-#endif /* PIDGIN_CLOSE_BUTTON_H */
--- a/pidgin/resources/closebutton.ui Thu Jul 21 00:36:23 2022 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.22.2
-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="3.20"/>
- <!-- interface-license-type gplv2 -->
- <!-- interface-name Pidgin -->
- <!-- interface-description Internet Messenger -->
- <!-- interface-copyright Pidgin Developers <devel@pidgin.im> -->
- <template class="PidginCloseButton" parent="GtkButton">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="focus_on_click">False</property>
- <property name="receives_default">True</property>
- <property name="tooltip_text" translatable="yes">Close</property>
- <property name="relief">none</property>
- <object class="GtkLabel">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">×</property>
- <property name="single_line_mode">True</property>
--- a/pidgin/resources/pidgin.gresource.xml Thu Jul 21 00:36:23 2022 -0500
+++ b/pidgin/resources/pidgin.gresource.xml Thu Jul 21 00:37:53 2022 -0500
@@ -41,7 +41,6 @@
<file compressed="true">Status/manager.ui</file>
<file compressed="true">Whiteboard/whiteboard.ui</file>
<file compressed="true">Xfer/xfer.ui</file>
- <file compressed="true">closebutton.ui</file>
<file compressed="true">gtk/menus.ui</file>
<file compressed="true">presenceicon.ui</file>
<file compressed="true">proxyoptions.ui</file>
--- a/po/POTFILES.in Thu Jul 21 00:36:23 2022 -0500
+++ b/po/POTFILES.in Thu Jul 21 00:37:53 2022 -0500
@@ -349,7 +349,6 @@
pidgin/pidgincellrendererexpander.c
-pidgin/pidginclosebutton.c
pidgin/pidgincontactlistwindow.c
@@ -405,7 +404,6 @@
pidgin/resources/Avatar/avatar.ui
pidgin/resources/Avatar/menu.ui
pidgin/resources/BuddyList/window.ui
-pidgin/resources/closebutton.ui
pidgin/resources/Conversations/infopane.ui
pidgin/resources/Conversations/invite_dialog.ui
pidgin/resources/Conversations/window.ui