phase2 of pidgin.h: move existing file to pidgincore.h
Rename pidgin.h to pidgincore.h and update everything accordingly.
Testing Done:
Compile test only.
Reviewed at https://reviews.imfreedom.org/r/43/
--- a/pidgin/gtkaccount.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkaccount.c Thu Jul 23 20:13:47 2020 -0500
@@ -25,8 +25,6 @@
#include <glib/gi18n-lib.h>
@@ -34,6 +32,7 @@
#include "gtkstatusbox.h"
#include "pidginprotocolchooser.h"
--- a/pidgin/gtkblist.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkblist.c Thu Jul 23 20:13:47 2020 -0500
@@ -25,8 +25,6 @@
#include <glib/gi18n-lib.h>
@@ -48,6 +46,7 @@
#include "pidgin/pidginaccountchooser.h"
#include "pidgin/pidginactiongroup.h"
#include "pidgin/pidginbuddylistmenu.h"
+#include "pidgin/pidgincore.h" #include "pidgin/pidgindebug.h"
#include "pidgin/pidgingdkpixbuf.h"
#include "pidgin/pidginlog.h"
--- a/pidgin/gtkblist.h Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkblist.h Thu Jul 23 20:13:47 2020 -0500
@@ -63,7 +63,6 @@
#include "gtkblist-theme.h"
/**************************************************************************
--- a/pidgin/gtkconn.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkconn.c Thu Jul 23 20:13:47 2020 -0500
@@ -18,7 +18,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
@@ -26,6 +25,7 @@
#include "gtkstatusbox.h"
--- a/pidgin/gtkconv.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkconv.c Thu Jul 23 20:13:47 2020 -0500
@@ -29,8 +29,6 @@
@@ -54,6 +52,7 @@
#include "pidgingdkpixbuf.h"
#include "pidgininvitedialog.h"
@@ -6759,8 +6758,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
#include <gdk/gdkkeysyms.h>
--- a/pidgin/gtkconv.h Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkconv.h Thu Jul 23 20:13:47 2020 -0500
@@ -75,7 +75,6 @@
/**************************************************************************
--- a/pidgin/gtkconvwin.h Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkconvwin.h Thu Jul 23 20:13:47 2020 -0500
@@ -28,6 +28,8 @@
* @title: Conversation Window API
#define PIDGIN_TYPE_CONV_WINDOW (pidgin_conv_window_get_type())
typedef struct _PidginConvWindowMenu PidginConvWindowMenu;
--- a/pidgin/gtkdialogs.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkdialogs.c Thu Jul 23 20:13:47 2020 -0500
@@ -27,7 +27,6 @@
#include "package_revision.h"
#include "meson-config.h"
@@ -38,6 +37,7 @@
--- a/pidgin/gtkdialogs.h Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkdialogs.h Thu Jul 23 20:13:47 2020 -0500
@@ -28,8 +28,6 @@
--- a/pidgin/gtkmedia.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkmedia.c Thu Jul 23 20:13:47 2020 -0500
@@ -25,11 +25,13 @@
#include <glib/gi18n-lib.h>
--- a/pidgin/gtknotify.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtknotify.c Thu Jul 23 20:13:47 2020 -0500
@@ -24,15 +24,14 @@
#include <gdk/gdkkeysyms.h>
-#include "pidginstock.h"
+#include "pidginstock.h" --- a/pidgin/gtkpluginpref.h Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkpluginpref.h Thu Jul 23 20:13:47 2020 -0500
@@ -31,8 +31,6 @@
--- a/pidgin/gtkpounce.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkpounce.c Thu Jul 23 20:13:47 2020 -0500
@@ -24,8 +24,6 @@
@@ -35,6 +33,7 @@
#include "pidginaccountchooser.h"
#include "pidgintalkatu.h"
#include <gdk/gdkkeysyms.h>
--- a/pidgin/gtkprefs.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkprefs.c Thu Jul 23 20:13:47 2020 -0500
@@ -32,8 +32,6 @@
@@ -45,6 +43,7 @@
#include "gtkstatus-icon-theme.h"
--- a/pidgin/gtkprivacy.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkprivacy.c Thu Jul 23 20:13:47 2020 -0500
@@ -21,8 +21,6 @@
#include <glib/gi18n-lib.h>
--- a/pidgin/gtkrequest.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkrequest.c Thu Jul 23 20:13:47 2020 -0500
@@ -23,16 +23,15 @@
-#include "pidginstock.h"
#include "pidginaccountchooser.h"
+#include "pidginstock.h" #include <gdk/gdkkeysyms.h>
--- a/pidgin/gtkroomlist.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkroomlist.c Thu Jul 23 20:13:47 2020 -0500
@@ -21,16 +21,17 @@
#include <glib/gi18n-lib.h>
+#include "gtkroomlist.h" #include "pidginaccountchooser.h"
#include "pidgintooltip.h"
-#include "gtkroomlist.h"
#define PIDGIN_TYPE_ROOMLIST_DIALOG (pidgin_roomlist_dialog_get_type())
G_DECLARE_FINAL_TYPE(PidginRoomlistDialog, pidgin_roomlist_dialog, PIDGIN,
ROOMLIST_DIALOG, GtkDialog)
--- a/pidgin/gtksavedstatuses.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtksavedstatuses.c Thu Jul 23 20:13:47 2020 -0500
@@ -26,10 +26,10 @@
#include "gtksavedstatuses.h"
* TODO: Should attach to the account-deleted and account-added signals
--- a/pidgin/gtksmiley-theme.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtksmiley-theme.c Thu Jul 23 20:13:47 2020 -0500
@@ -23,13 +23,14 @@
-#include "gtksmiley-theme.h"
+#include <glib/gstdio.h>
+#include "gtksmiley-theme.h" -#include <glib/gstdio.h>
#define PIDGIN_SMILEY_THEME_MAX_LINES 1024
#define PIDGIN_SMILEY_THEME_MAX_TOKENS 1024
--- a/pidgin/gtksound.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtksound.c Thu Jul 23 20:13:47 2020 -0500
@@ -30,8 +30,6 @@
#include <glib/gi18n-lib.h>
@@ -45,6 +43,7 @@
struct pidgin_sound_event {
--- a/pidgin/gtkstatusbox.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkstatusbox.c Thu Jul 23 20:13:47 2020 -0500
@@ -37,16 +37,18 @@
#include <glib/gi18n-lib.h>
#include <gdk/gdkkeysyms.h>
#include "gtksavedstatuses.h"
-#include "pidginstock.h"
#include "gtkstatusbox.h"
#include "pidgingdkpixbuf.h"
+#include "pidginstock.h" /* Timeout for typing notifications in seconds */
--- a/pidgin/gtkutils.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkutils.c Thu Jul 23 20:13:47 2020 -0500
@@ -30,8 +30,6 @@
@@ -41,17 +39,16 @@
-#include "pidginstock.h"
-#include "pidgin/minidialog.h"
+#include "pidginstock.h" /******************************************************************************
--- a/pidgin/gtkutils.h Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkutils.h Thu Jul 23 20:13:47 2020 -0500
@@ -29,7 +29,6 @@
--- a/pidgin/gtkwhiteboard.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkwhiteboard.c Thu Jul 23 20:13:47 2020 -0500
@@ -23,6 +23,8 @@
#include <glib/gi18n-lib.h>
--- a/pidgin/gtkwhiteboard.h Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkwhiteboard.h Thu Jul 23 20:13:47 2020 -0500
@@ -28,8 +28,6 @@
* @title: Whiteboard Frontend
/*****************************************************************************/
--- a/pidgin/gtkxfer.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/gtkxfer.c Thu Jul 23 20:13:47 2020 -0500
@@ -21,13 +21,14 @@
#include <glib/gi18n-lib.h>
--- a/pidgin/libpidgin.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/libpidgin.c Thu Jul 23 20:13:47 2020 -0500
@@ -31,7 +31,6 @@
@@ -54,6 +53,7 @@
#include "gtkwhiteboard.h"
#include "pidginplugininfo.h"
--- a/pidgin/meson.build Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/meson.build Thu Jul 23 20:13:47 2020 -0500
@@ -99,6 +99,7 @@
'pidgincontactcompletion.h',
@@ -114,7 +115,6 @@
--- a/pidgin/minidialog.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/minidialog.c Thu Jul 23 20:13:47 2020 -0500
@@ -23,8 +23,7 @@
-#include "pidgin/minidialog.h"
-#include "pidgin/pidgin.h"
static void pidgin_mini_dialog_init (PidginMiniDialog *self);
static void pidgin_mini_dialog_class_init (PidginMiniDialogClass *klass);
--- a/pidgin/pidgin.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/pidgin.c Thu Jul 23 20:13:47 2020 -0500
@@ -21,7 +21,7 @@
/* suppress gcc "no previous prototype" warning */
--- a/pidgin/pidgin.h Wed Jul 22 06:12:44 2020 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,69 +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
-/* #warning ***pidgin*** */
- * @section_id: pidgin-pidgin
- * @short_description: <filename>pidgin.h</filename>
- * @title: UI Definitions and Includes
-#include <glib/gi18n-lib.h>
-# include "win32/gtkwin32dep.h"
-/* leave this as gtk-gaim until we have a decent way to migrate UI-prefs */
-#define PIDGIN_UI "gtk-gaim"
-/* change this only when we have a sane upgrade path for old prefs */
-#define PIDGIN_PREFS_ROOT "/pidgin"
-/* Translators may want to transliterate the name.
- It is not to be translated. */
-#define PIDGIN_NAME _("Pidgin")
-# define PIDGIN_ALERT_TITLE ""
-# define PIDGIN_ALERT_TITLE PIDGIN_NAME
- * Start pidgin with the given command line arguments.
-int pidgin_start(int argc, char *argv[]);
--- a/pidgin/pidginabout.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/pidginabout.c Thu Jul 23 20:13:47 2020 -0500
@@ -27,10 +27,12 @@
#include <json-glib/json-glib.h>
+#include "pidginabout.h" #include "package_revision.h"
-#include "pidginabout.h"
#include "pidginresources.h"
--- a/pidgin/pidginaccountactionsmenu.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/pidginaccountactionsmenu.c Thu Jul 23 20:13:47 2020 -0500
@@ -24,9 +24,9 @@
-#include "pidgin/gtkaccount.h"
-#include "pidgin/pidgin.h"
-#include "pidgin/pidginmooddialog.h"
+#include "pidginmooddialog.h" struct _PidginAccountActionsMenu {
--- a/pidgin/pidginaccountchooser.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/pidginaccountchooser.c Thu Jul 23 20:13:47 2020 -0500
@@ -18,7 +18,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
#include "pidginaccountchooser.h"
--- a/pidgin/pidginaccountchooser.h Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/pidginaccountchooser.h Thu Jul 23 20:13:47 2020 -0500
@@ -32,8 +32,6 @@
#define PIDGIN_TYPE_ACCOUNT_CHOOSER (pidgin_account_chooser_get_type())
--- a/pidgin/pidginaccountsmenu.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/pidginaccountsmenu.c Thu Jul 23 20:13:47 2020 -0500
@@ -24,9 +24,10 @@
-#include "pidgin/gtkaccount.h"
-#include "pidgin/pidgin.h"
-#include "pidgin/pidginaccountactionsmenu.h"
+#include "pidginaccountactionsmenu.h" struct _PidginAccountsMenu {
--- a/pidgin/pidginactiongroup.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/pidginactiongroup.c Thu Jul 23 20:13:47 2020 -0500
@@ -24,17 +24,18 @@
-#include "pidgin/gtkblist.h"
-#include "pidgin/gtkdialogs.h"
-#include "pidgin/gtkpounce.h"
-#include "pidgin/gtkprefs.h"
-#include "pidgin/gtkprivacy.h"
-#include "pidgin/gtkroomlist.h"
-#include "pidgin/gtksmiley-manager.h"
-#include "pidgin/gtkxfer.h"
-#include "pidgin/pidginabout.h"
-#include "pidgin/pidginlog.h"
-#include "pidgin/pidginmooddialog.h"
+#include "gtkroomlist.h" +#include "gtksmiley-manager.h" +#include "pidginabout.h" +#include "pidginmooddialog.h" struct _PidginActionGroup {
GSimpleActionGroup parent;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/pidgin/pidgincore.h Thu Jul 23 20:13:47 2020 -0500
@@ -0,0 +1,68 @@
+ * 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 + * @section_id: pidgin-pidgin + * @short_description: <filename>pidgincore.h</filename> + * @title: UI Definitions and Includes +#include <glib/gi18n-lib.h> +# include "win32/gtkwin32dep.h" +/* leave this as gtk-gaim until we have a decent way to migrate UI-prefs */ +#define PIDGIN_UI "gtk-gaim" +/* change this only when we have a sane upgrade path for old prefs */ +#define PIDGIN_PREFS_ROOT "/pidgin" +/* Translators may want to transliterate the name. + It is not to be translated. */ +#define PIDGIN_NAME _("Pidgin") +# define PIDGIN_ALERT_TITLE "" +# define PIDGIN_ALERT_TITLE PIDGIN_NAME + * Start pidgin with the given command line arguments. +int pidgin_start(int argc, char *argv[]); +#endif /* PIDGIN_CORE_H */ --- a/pidgin/pidgindebug.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/pidgindebug.c Thu Jul 23 20:13:47 2020 -0500
@@ -26,12 +26,13 @@
#include <glib/gi18n-lib.h>
--- a/pidgin/pidginlog.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/pidginlog.c Thu Jul 23 20:13:47 2020 -0500
@@ -21,16 +21,18 @@
#include <glib/gi18n-lib.h>
-#include "pidginstock.h"
+#include "pidginstock.h" #define PIDGIN_TYPE_LOG_VIEWER pidgin_log_viewer_get_type()
--- a/pidgin/pidginlog.h Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/pidginlog.h Thu Jul 23 20:13:47 2020 -0500
@@ -29,8 +29,6 @@
* @see_also: <link linkend="chapter-signals-gtklog">Log signals</link>
--- a/pidgin/pidginplugininfo.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/pidginplugininfo.c Thu Jul 23 20:13:47 2020 -0500
@@ -20,6 +20,8 @@
#include "pidginplugininfo.h"
struct _PidginPluginInfo {
--- a/pidgin/pidginplugininfo.h Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/pidginplugininfo.h Thu Jul 23 20:13:47 2020 -0500
@@ -25,8 +25,6 @@
#define PIDGIN_TYPE_PLUGIN_INFO (pidgin_plugin_info_get_type())
--- a/pidgin/pidginpluginsdialog.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/pidginpluginsdialog.c Thu Jul 23 20:13:47 2020 -0500
@@ -23,7 +23,10 @@
#include "pidginpluginsdialog.h"
+# warning "fix this when pidgincore.h no longer icnludes gi18n.h" @@ -31,6 +34,7 @@
#include "gtkpluginpref.h"
struct _PidginPluginsDialog {
--- a/pidgin/pidginstock.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/pidginstock.c Thu Jul 23 20:13:47 2020 -0500
@@ -27,11 +27,10 @@
+#include "pidginstock.h" #include "gtkicon-theme-loader.h"
-#include "pidginstock.h"
#warning GtkStock is deprecated. Port usage of PidginStock to GtkIconTheme \
--- a/pidgin/pidgintooltip.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/pidgintooltip.c Thu Jul 23 20:13:47 2020 -0500
@@ -23,7 +23,6 @@
#include "pidgintooltip.h"
static gboolean enable_tooltips;
--- a/pidgin/plugins/contact_priority.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/plugins/contact_priority.c Thu Jul 23 20:13:47 2020 -0500
@@ -20,14 +20,14 @@
#include <glib/gi18n-lib.h>
#include "pidginplugininfo.h"
#include "pidginaccountchooser.h"
#define CONTACT_PRIORITY_PLUGIN_ID "gtk-contact-priority"
--- a/pidgin/plugins/disco/gtkdisco.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/plugins/disco/gtkdisco.c Thu Jul 23 20:13:47 2020 -0500
@@ -33,7 +33,6 @@
#include "pidginaccountchooser.h"
#include "pidgintooltip.h"
--- a/pidgin/plugins/disco/xmppdisco.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/plugins/disco/xmppdisco.c Thu Jul 23 20:13:47 2020 -0500
@@ -38,8 +38,6 @@
#include <glib/gi18n-lib.h>
--- a/pidgin/plugins/gtk-signals-test.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/plugins/gtk-signals-test.c Thu Jul 23 20:13:47 2020 -0500
@@ -20,6 +20,8 @@
#define GTK_SIGNAL_TEST_PLUGIN_ID "gtk-signals-test"
--- a/pidgin/plugins/gtkbuddynote.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/plugins/gtkbuddynote.c Thu Jul 23 20:13:47 2020 -0500
@@ -17,6 +17,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301, USA.
#include <pidginplugininfo.h>
--- a/pidgin/plugins/iconaway.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/plugins/iconaway.c Thu Jul 23 20:13:47 2020 -0500
@@ -22,8 +22,6 @@
#include "pidginplugininfo.h"
--- a/pidgin/plugins/relnot.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/plugins/relnot.c Thu Jul 23 20:13:47 2020 -0500
@@ -28,11 +28,10 @@
#include "pidginplugininfo.h"
static SoupSession *session = NULL;
--- a/pidgin/plugins/ticker/ticker.c Wed Jul 22 06:12:44 2020 -0500
+++ b/pidgin/plugins/ticker/ticker.c Thu Jul 23 20:13:47 2020 -0500
@@ -27,8 +27,6 @@
#include <glib/gi18n-lib.h>