pidgin.h phase3: create pidgin.h and force its usage
fix the section id of pidgincore.h
Generate our pidgin.h file
Add include guard to all pidgin/*.h files and deal with the fallout from that.
Also had to namespace PIDGIN_BLIST_COLUMN_NAME, will come back and get the rest at a later time.
Testing Done:
Compile test, including some plugins that don't build by default. Also ran everything seems fine.
Reviewed at https://reviews.imfreedom.org/r/50/
--- a/pidgin/gtkaccount.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkaccount.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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 _PIDGINACCOUNT_H_
#define _PIDGINACCOUNT_H_
--- a/pidgin/gtkblist-theme-loader.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkblist-theme-loader.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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_BLIST_THEME_LOADER_H
#define PIDGIN_BLIST_THEME_LOADER_H
--- a/pidgin/gtkblist-theme.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkblist-theme.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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_BLIST_THEME_H
#define PIDGIN_BLIST_THEME_H
--- a/pidgin/gtkblist.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkblist.c Thu Aug 06 22:22:03 2020 -0500
@@ -121,6 +121,27 @@
G_DEFINE_TYPE_WITH_PRIVATE(PidginBuddyList, pidgin_buddy_list,
+ STATUS_ICON_VISIBLE_COLUMN, + BUDDY_ICON_VISIBLE_COLUMN, + GROUP_EXPANDER_VISIBLE_COLUMN, + CONTACT_EXPANDER_COLUMN, + CONTACT_EXPANDER_VISIBLE_COLUMN, + PROTOCOL_ICON_VISIBLE_COLUMN, #define PIDGIN_WINDOW_ICONIFIED(x) \
(gdk_window_get_state(gtk_widget_get_window(GTK_WIDGET(x))) & \
GDK_WINDOW_STATE_ICONIFIED)
--- a/pidgin/gtkblist.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkblist.h Thu Aug 06 22:22:03 2020 -0500
@@ -33,28 +33,6 @@
typedef struct _PidginBuddyList PidginBuddyList;
- STATUS_ICON_VISIBLE_COLUMN,
- BUDDY_ICON_VISIBLE_COLUMN,
- GROUP_EXPANDER_VISIBLE_COLUMN,
- CONTACT_EXPANDER_COLUMN,
- CONTACT_EXPANDER_VISIBLE_COLUMN,
- PROTOCOL_ICON_VISIBLE_COLUMN,
PIDGIN_STATUS_ICON_LARGE,
--- a/pidgin/gtkcellrendererexpander.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkcellrendererexpander.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
+#if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION) +# error "only <pidgin.h> may be included directly" #ifndef _PIDGINCELLRENDEREREXPANDER_H_
#define _PIDGINCELLRENDEREREXPANDER_H_
--- a/pidgin/gtkconn.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkconn.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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" --- a/pidgin/gtkconv.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkconv.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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_CONVERSATION_H_
#define _PIDGIN_CONVERSATION_H_
--- a/pidgin/gtkconvwin.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkconvwin.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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_CONVERSATION_WINDOW_H_
#define _PIDGIN_CONVERSATION_WINDOW_H_
--- a/pidgin/gtkdialogs.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkdialogs.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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 _PIDGINDIALOGS_H_
#define _PIDGINDIALOGS_H_
--- a/pidgin/gtkdnd-hints.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkdnd-hints.h Thu Aug 06 22:22:03 2020 -0500
@@ -17,6 +17,10 @@
* 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_DND_HINTS_H_
#define _PIDGIN_DND_HINTS_H_
--- a/pidgin/gtkicon-theme-loader.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkicon-theme-loader.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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_ICON_THEME_LOADER_H
#define PIDGIN_ICON_THEME_LOADER_H
--- a/pidgin/gtkicon-theme.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkicon-theme.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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_ICON_THEME_H
#define PIDGIN_ICON_THEME_H
--- a/pidgin/gtkidle.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkidle.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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" --- a/pidgin/gtkinternal.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkinternal.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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_INTERNAL_H_
#define _PIDGIN_INTERNAL_H_
--- a/pidgin/gtkmedia.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkmedia.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+#if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION) +# error "only <pidgin.h> may be included directly" --- a/pidgin/gtknickcolors.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtknickcolors.h Thu Aug 06 22:22:03 2020 -0500
@@ -18,6 +18,10 @@
* 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 _PIDGINNICKCOLORS_H_
#define _PIDGINNICKCOLORS_H_
--- a/pidgin/gtknotify.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtknotify.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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" --- a/pidgin/gtkpluginpref.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkpluginpref.h Thu Aug 06 22:22:03 2020 -0500
@@ -20,6 +20,10 @@
+#if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION) +# error "only <pidgin.h> may be included directly" #ifndef _PIDGINPLUGINPREF_H_
#define _PIDGINPLUGINPREF_H_
--- a/pidgin/gtkpounce.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkpounce.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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" --- a/pidgin/gtkprefs.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkprefs.h Thu Aug 06 22:22:03 2020 -0500
@@ -20,6 +20,10 @@
+#if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION) +# error "only <pidgin.h> may be included directly" --- a/pidgin/gtkprivacy.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkprivacy.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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 _PIDGINPRIVACY_H_
#define _PIDGINPRIVACY_H_
--- a/pidgin/gtkrequest.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkrequest.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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 _PIDGINREQUEST_H_
#define _PIDGINREQUEST_H_
--- a/pidgin/gtkroomlist.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkroomlist.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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 _PIDGINROOMLIST_H_
#define _PIDGINROOMLIST_H_
--- a/pidgin/gtksavedstatuses.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtksavedstatuses.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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 _PIDGINSAVEDSTATUSES_H_
#define _PIDGINSAVEDSTATUSES_H_
--- a/pidgin/gtkscrollbook.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkscrollbook.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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_SCROLL_BOOK_H__
#define __PIDGIN_SCROLL_BOOK_H__
--- a/pidgin/gtksmiley-manager.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtksmiley-manager.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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_SMILEY_MANAGER_H_
#define _PIDGIN_SMILEY_MANAGER_H_
--- a/pidgin/gtksmiley-theme.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtksmiley-theme.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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_SMILEY_THEME_H_
#define _PIDGIN_SMILEY_THEME_H_
--- a/pidgin/gtksound.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtksound.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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" --- a/pidgin/gtkstatus-icon-theme.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkstatus-icon-theme.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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_STATUS_ICON_THEME_H
#define PIDGIN_STATUS_ICON_THEME_H
--- a/pidgin/gtkstatusbox.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkstatusbox.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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_STATUS_BOX_H__
#define __PIDGIN_STATUS_BOX_H__
--- a/pidgin/gtkstyle.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkstyle.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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" * @section_id: pidgin-gtkstyle
--- a/pidgin/gtkutils.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkutils.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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" --- a/pidgin/gtkwhiteboard.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkwhiteboard.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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 _PIDGINWHITEBOARD_H_
#define _PIDGINWHITEBOARD_H_
--- a/pidgin/gtkxfer.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/gtkxfer.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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" --- a/pidgin/meson.build Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/meson.build Thu Aug 06 22:22:03 2020 -0500
@@ -93,9 +93,9 @@
- 'pidginaccountactionsmenu.c',
+ 'pidginaccountactionsmenu.h', 'pidginaccountchooser.h',
- 'pidginaccountsmenu.c',
+ 'pidginaccountsmenu.h', 'pidgincontactcompletion.h',
@@ -163,6 +163,19 @@
+ foreach header : libpidgin_headers + PIDGIN_H_INCLUDES += '#include <pidgin/@0@>'.format(header) + pidgin_h_conf = configuration_data() + pidgin_h_conf.set('PIDGIN_H_INCLUDES', '\n'.join(PIDGIN_H_INCLUDES)) + pidgin_h = configure_file(input : 'pidgin.h.in', + configuration : pidgin_h_conf, + install_dir : get_option('includedir') / purple_filebase) install_headers(libpidgin_headers, subdir : 'pidgin-3')
_libpidgin_dependencies = [
@@ -184,6 +197,7 @@
libpidgin = shared_library('pidgin3',
+ c_args : ['-DPIDGIN_COMPILATION'], include_directories : [toplevel_inc],
version : PURPLE_LIB_VERSION,
dependencies : _libpidgin_dependencies,
@@ -191,7 +205,7 @@
libpidgin_dep = declare_dependency(
include_directories : [toplevel_inc, libpidgin_inc],
- dependencies : [gtk, glib, math])
+ dependencies : [gtk, glib, math, talkatu_dep]) pidgin = executable('pidgin3',
@@ -256,7 +270,7 @@
talkatu_include_directories,
- extra_args : ['--quiet'])
+ extra_args : ['-DPIDGIN_COMPILATION', '--quiet']) --- a/pidgin/minidialog.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/minidialog.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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_MINI_DIALOG_H__
#define __PIDGIN_MINI_DIALOG_H__
--- a/pidgin/pidgin.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidgin.c Thu Aug 06 22:22:03 2020 -0500
@@ -21,7 +21,9 @@
/* suppress gcc "no previous prototype" warning */
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/pidgin/pidgin.h.in Thu Aug 06 22:22:03 2020 -0500
@@ -0,0 +1,48 @@
+ * 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, it can be viewed online at + * https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. + * @section_id: libpurple-purple + * @short_description: <filename>pidgin.h</filename> + * @title: Global header for Pidgin + * This file contains all the necessary preprocessor directives to include + * Pidgin's headers and other preprocessor directives required for plugins + * to build. Including this file eliminates the need to directly include any +#ifndef PIDGIN_GLOBAL_HEADER_INSIDE +#define PIDGIN_GLOBAL_HEADER_INSIDE +#undef PIDGIN_GLOBAL_HEADER_INSIDE +#endif /* PIDGIN_PIDGIN_H */ --- a/pidgin/pidginabout.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidginabout.h Thu Aug 06 22:22:03 2020 -0500
@@ -1,3 +1,7 @@
+#if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION) +# error "only <pidgin.h> may be included directly" --- a/pidgin/pidginaccountactionsmenu.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidginaccountactionsmenu.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,11 @@
* 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_ACCOUNT_ACTIONS_MENU_H
#define PIDGIN_ACCOUNT_ACTIONS_MENU_H
--- a/pidgin/pidginaccountchooser.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidginaccountchooser.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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_ACCOUNT_CHOOSER_H
#define PIDGIN_ACCOUNT_CHOOSER_H
--- a/pidgin/pidginaccountsmenu.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidginaccountsmenu.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,11 @@
* 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_ACCOUNTS_MENU_H
#define PIDGIN_ACCOUNTS_MENU_H
--- a/pidgin/pidginactiongroup.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidginactiongroup.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,11 @@
* 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_ACTION_GROUP_H
#define PIDGIN_ACTION_GROUP_H
--- a/pidgin/pidginbuddylistmenu.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidginbuddylistmenu.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,11 @@
* 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_BUDDY_LIST_MENU_H
#define PIDGIN_BUDDY_LIST_MENU_H
--- a/pidgin/pidgincontactcompletion.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidgincontactcompletion.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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_CONTACT_COMPLETION_H
#define PIDGIN_CONTACT_COMPLETION_H
--- a/pidgin/pidgincore.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidgincore.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,17 +19,19 @@
* 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"
- * @section_id: pidgin-pidgin
+ * @section_id: pidgin-core * @short_description: <filename>pidgincore.h</filename>
* @title: UI Definitions and Includes
-#include <glib/gi18n-lib.h>
--- a/pidgin/pidgindebug.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidgindebug.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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" --- a/pidgin/pidgingdkpixbuf.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidgingdkpixbuf.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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_GDK_PIXBUF_H
#define PIDGIN_GDK_PIXBUF_H
--- a/pidgin/pidginicon.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidginicon.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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" --- a/pidgin/pidgininvitedialog.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidgininvitedialog.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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
--- a/pidgin/pidginlog.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidginlog.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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" --- a/pidgin/pidginmenutray.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidginmenutray.h Thu Aug 06 22:22:03 2020 -0500
@@ -17,6 +17,10 @@
* 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_MENU_TRAY_H
#define PIDGIN_MENU_TRAY_H
--- a/pidgin/pidginmessage.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidginmessage.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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" --- a/pidgin/pidginmooddialog.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidginmooddialog.h Thu Aug 06 22:22:03 2020 -0500
@@ -20,6 +20,10 @@
* 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_MOOD_DIALOG_H
#define PIDGIN_MOOD_DIALOG_H
--- a/pidgin/pidginplugininfo.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidginplugininfo.h Thu Aug 06 22:22:03 2020 -0500
@@ -18,6 +18,11 @@
* 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_PLUGIN_INFO_H
#define PIDGIN_PLUGIN_INFO_H
--- a/pidgin/pidginpluginsdialog.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidginpluginsdialog.c Thu Aug 06 22:22:03 2020 -0500
@@ -23,10 +23,7 @@
#include "pidginpluginsdialog.h"
-# warning "fix this when pidgincore.h no longer icnludes gi18n.h"
--- a/pidgin/pidginpluginsdialog.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidginpluginsdialog.h Thu Aug 06 22:22:03 2020 -0500
@@ -20,6 +20,10 @@
+#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
--- a/pidgin/pidginpluginsmenu.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidginpluginsmenu.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,11 @@
* 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_MENU_H
#define PIDGIN_PLUGINS_MENU_H
--- a/pidgin/pidginprotocolchooser.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidginprotocolchooser.h Thu Aug 06 22:22:03 2020 -0500
@@ -21,6 +21,10 @@
* 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_PROTOCOL_CHOOSER_H
#define PIDGIN_PROTOCOL_CHOOSER_H
--- a/pidgin/pidginprotocolstore.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidginprotocolstore.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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_PROTOCOL_STORE_H
#define PIDGIN_PROTOCOL_STORE_H
--- a/pidgin/pidginstock.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidginstock.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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" --- a/pidgin/pidgintalkatu.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidgintalkatu.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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" --- a/pidgin/pidgintooltip.h Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/pidgintooltip.h Thu Aug 06 22:22:03 2020 -0500
@@ -19,6 +19,10 @@
* 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_TOOLTIP_H_
#define _PIDGIN_TOOLTIP_H_
--- a/pidgin/plugins/contact_priority.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/contact_priority.c Thu Aug 06 22:22:03 2020 -0500
@@ -24,9 +24,7 @@
-#include "pidginplugininfo.h"
-#include "pidginaccountchooser.h"
#define CONTACT_PRIORITY_PLUGIN_ID "gtk-contact-priority"
--- a/pidgin/plugins/disco/gtkdisco.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/disco/gtkdisco.c Thu Aug 06 22:22:03 2020 -0500
@@ -1,8 +1,3 @@
- * @file gtkdisco.c GTK+ Service Discovery UI
* Pidgin is the legal property of its developers, whose names are too numerous
@@ -32,9 +27,7 @@
-#include "pidginaccountchooser.h"
-#include "pidgintooltip.h"
--- a/pidgin/plugins/disco/xmppdisco.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/disco/xmppdisco.c Thu Aug 06 22:22:03 2020 -0500
@@ -40,8 +40,7 @@
-#include "pidginplugininfo.h"
--- a/pidgin/plugins/gestures/gestures.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/gestures/gestures.c Thu Aug 06 22:22:03 2020 -0500
@@ -23,8 +23,7 @@
--- a/pidgin/plugins/gevolution/add_buddy_dialog.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/gevolution/add_buddy_dialog.c Thu Aug 06 22:22:03 2020 -0500
@@ -18,16 +18,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
--- a/pidgin/plugins/gevolution/assoc-buddy.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/gevolution/assoc-buddy.c Thu Aug 06 22:22:03 2020 -0500
@@ -18,17 +18,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
--- a/pidgin/plugins/gevolution/eds-utils.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/gevolution/eds-utils.c Thu Aug 06 22:22:03 2020 -0500
@@ -19,10 +19,7 @@
--- a/pidgin/plugins/gevolution/gevo-util.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/gevolution/gevo-util.c Thu Aug 06 22:22:03 2020 -0500
@@ -18,10 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
--- a/pidgin/plugins/gevolution/gevolution.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/gevolution/gevolution.c Thu Aug 06 22:22:03 2020 -0500
@@ -18,15 +18,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+#include <glib/gi18n-lib.h>
-#include "pidginplugininfo.h"
--- a/pidgin/plugins/gevolution/new_person_dialog.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/gevolution/new_person_dialog.c Thu Aug 06 22:22:03 2020 -0500
@@ -18,11 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-#include "pidginaccountchooser.h"
--- a/pidgin/plugins/gtk-signals-test.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/gtk-signals-test.c Thu Aug 06 22:22:03 2020 -0500
@@ -26,10 +26,7 @@
-#include "pidginplugininfo.h"
/**************************************************************************
* Account subsystem signal callbacks
--- a/pidgin/plugins/gtkbuddynote.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/gtkbuddynote.c Thu Aug 06 22:22:03 2020 -0500
@@ -19,10 +19,9 @@
-#include <pidginplugininfo.h>
append_to_tooltip(PurpleBlistNode *node, GString *text, gboolean full)
--- a/pidgin/plugins/iconaway.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/iconaway.c Thu Aug 06 22:22:03 2020 -0500
@@ -22,8 +22,7 @@
-#include "pidginplugininfo.h"
#define ICONAWAY_PLUGIN_ID "gtk-iconaway"
--- a/pidgin/plugins/musicmessaging/musicmessaging.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/musicmessaging/musicmessaging.c Thu Aug 06 22:22:03 2020 -0500
@@ -28,9 +28,7 @@
#define DBUS_API_SUBJECT_TO_CHANGE
--- a/pidgin/plugins/notify.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/notify.c Thu Aug 06 22:22:03 2020 -0500
@@ -83,14 +83,11 @@
* -Added Raise option, formally in Purple proper
+#include <glib/gi18n-lib.h>
#define NOTIFY_PLUGIN_ID "gtk-x11-notify"
--- a/pidgin/plugins/relnot.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/relnot.c Thu Aug 06 22:22:03 2020 -0500
@@ -26,11 +26,7 @@
-#include "pidginplugininfo.h"
static SoupSession *session = NULL;
--- a/pidgin/plugins/spellchk.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/spellchk.c Thu Aug 06 22:22:03 2020 -0500
@@ -30,18 +30,15 @@
* or nearly directly from xchat, version 1.4.2 by Peter Zelezny and others.
+#include <glib/gi18n-lib.h>
#define SPELLCHECK_PLUGIN_ID "gtk-spellcheck"
#define SPELLCHK_OBJECT_KEY "spellchk"
--- a/pidgin/plugins/ticker/ticker.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/ticker/ticker.c Thu Aug 06 22:22:03 2020 -0500
@@ -29,10 +29,7 @@
-#include "pidginplugininfo.h"
-#include "pidginstock.h"
--- a/pidgin/plugins/unity.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/unity.c Thu Aug 06 22:22:03 2020 -0500
@@ -16,12 +16,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
#include <messaging-menu.h>
--- a/pidgin/plugins/win32/winprefs/winprefs.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/win32/winprefs/winprefs.c Thu Aug 06 22:22:03 2020 -0500
@@ -20,18 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
--- a/pidgin/plugins/xmppconsole/xmppconsole.c Mon Aug 03 20:20:02 2020 -0500
+++ b/pidgin/plugins/xmppconsole/xmppconsole.c Thu Aug 06 22:22:03 2020 -0500
@@ -23,12 +23,11 @@
#include <glib/gi18n-lib.h>
+#include <gdk/gdkkeysyms.h>
-#include "pidginplugininfo.h"
-#include <gdk/gdkkeysyms.h>
#define PLUGIN_ID "gtk-xmpp"
#define PLUGIN_DOMAIN (g_quark_from_static_string(PLUGIN_ID))