summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk/Makefile.am1
-rw-r--r--gtk/gtkaboutdialog.c2
-rw-r--r--gtk/gtkaccelgroup.c1
-rw-r--r--gtk/gtkcombobox.c1
-rw-r--r--gtk/gtkentrycompletion.c2
-rw-r--r--gtk/gtkimmodule.c1
-rw-r--r--gtk/gtklabel.c1
-rw-r--r--gtk/gtklinkbutton.c2
-rw-r--r--gtk/gtkmain.c40
-rw-r--r--gtk/gtkmainprivate.h30
-rw-r--r--gtk/gtkmenushell.c1
-rw-r--r--gtk/gtkmodules.c28
-rw-r--r--gtk/gtkmodulesprivate.h2
-rw-r--r--gtk/gtkoverlay.c1
-rw-r--r--gtk/gtkprintoperation.c1
-rw-r--r--gtk/gtkrange.c1
-rw-r--r--gtk/gtkscale.c1
-rw-r--r--gtk/gtksocket.c1
-rw-r--r--gtk/gtkspinbutton.c1
-rw-r--r--gtk/gtktextattributes.c1
-rw-r--r--gtk/gtktexttag.c1
-rw-r--r--gtk/gtktoolbar.c2
-rw-r--r--gtk/gtktoolitem.c1
-rw-r--r--gtk/gtktreeview.c1
-rw-r--r--gtk/gtkwidget.c1
25 files changed, 39 insertions, 86 deletions
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 68df3c9633..906c158221 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -416,7 +416,6 @@ gtk_private_h_sources = \
gtkimcontextsimpleseqs.h \
gtkintl.h \
gtkkeyhash.h \
- gtkmainprivate.h \
gtkmenuprivate.h \
gtkmenuitemprivate.h \
gtkmenushellprivate.h \
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index 65ddfa08f1..aaa82fbb77 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -49,7 +49,7 @@
#include "gtktextview.h"
#include "gtkiconfactory.h"
#include "gtkshow.h"
-#include "gtkmainprivate.h"
+#include "gtkmain.h"
#include "gtkmessagedialog.h"
#include "gtktogglebutton.h"
#include "gtktypebuiltins.h"
diff --git a/gtk/gtkaccelgroup.c b/gtk/gtkaccelgroup.c
index 929cb038ee..154ad295e1 100644
--- a/gtk/gtkaccelgroup.c
+++ b/gtk/gtkaccelgroup.c
@@ -33,7 +33,6 @@
#include "gtkaccellabel.h"
#include "gtkaccelmap.h"
#include "gtkintl.h"
-#include "gtkmainprivate.h"
#include "gtkmarshalers.h"
#include "gtkprivate.h"
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index c0bf2c8bf1..a7948c9d96 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -41,7 +41,6 @@
#include "gtkseparator.h"
#include "gtkwindow.h"
#include "gtktypebuiltins.h"
-#include "gtkmainprivate.h"
#include "gtkprivate.h"
#include <gobject/gvaluecollector.h>
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index d3d3a0405e..4847b9d696 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -82,7 +82,7 @@
#include "gtkbox.h"
#include "gtkwindow.h"
#include "gtkentry.h"
-#include "gtkmainprivate.h"
+#include "gtkmain.h"
#include "gtkmarshalers.h"
#include "gtkprivate.h"
diff --git a/gtk/gtkimmodule.c b/gtk/gtkimmodule.c
index 93ac7b9077..ef547fc5f9 100644
--- a/gtk/gtkimmodule.c
+++ b/gtk/gtkimmodule.c
@@ -35,7 +35,6 @@
#include "gtkimmodule.h"
#include "gtkimcontextsimple.h"
#include "gtksettings.h"
-#include "gtkmainprivate.h"
#include "gtkprivate.h"
#include "gtkintl.h"
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 7035da484f..26fb56af49 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -31,7 +31,6 @@
#include "gtklabel.h"
#include "gtkaccellabel.h"
#include "gtkdnd.h"
-#include "gtkmainprivate.h"
#include "gtkmarshalers.h"
#include "gtkpango.h"
#include "gtkwindow.h"
diff --git a/gtk/gtklinkbutton.c b/gtk/gtklinkbutton.c
index ffa89c086f..f0724275bb 100644
--- a/gtk/gtklinkbutton.c
+++ b/gtk/gtklinkbutton.c
@@ -55,7 +55,7 @@
#include "gtkdnd.h"
#include "gtkimagemenuitem.h"
#include "gtklabel.h"
-#include "gtkmainprivate.h"
+#include "gtkmain.h"
#include "gtkmarshalers.h"
#include "gtkmenu.h"
#include "gtkmenuitem.h"
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index a4c38f62a4..25e61ebc47 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -91,9 +91,6 @@
#include "config.h"
-#include "gtkmainprivate.h"
-
-#include <glib.h>
#include "gdk/gdk.h"
#include <locale.h>
@@ -117,19 +114,20 @@
#include "gtkaccelmap.h"
#include "gtkbox.h"
#include "gtkclipboard.h"
+#include "gtkdebug.h"
#include "gtkdnd.h"
-#include "gtkversion.h"
+#include "gtkmain.h"
+#include "gtkmenu.h"
#include "gtkmodules.h"
#include "gtkmodulesprivate.h"
+#include "gtkprivate.h"
#include "gtkrecentmanager.h"
#include "gtkselectionprivate.h"
#include "gtksettingsprivate.h"
+#include "gtktooltip.h"
+#include "gtkversion.h"
#include "gtkwidgetprivate.h"
#include "gtkwindowprivate.h"
-#include "gtktooltip.h"
-#include "gtkdebug.h"
-#include "gtkmenu.h"
-#include "gtkprivate.h"
/* Private type definitions
@@ -622,32 +620,6 @@ setlocale_initialization (void)
}
}
-/* Return TRUE if module_to_check causes version conflicts.
- * If module_to_check is NULL, check the main module.
- */
-gboolean
-_gtk_module_has_mixed_deps (GModule *module_to_check)
-{
- GModule *module;
- gpointer func;
- gboolean result;
-
- if (!module_to_check)
- module = g_module_open (NULL, 0);
- else
- module = module_to_check;
-
- if (g_module_symbol (module, "gtk_progress_get_type", &func))
- result = TRUE;
- else
- result = FALSE;
-
- if (!module_to_check)
- g_module_close (module);
-
- return result;
-}
-
static void
do_pre_parse_initialization (int *argc,
char ***argv)
diff --git a/gtk/gtkmainprivate.h b/gtk/gtkmainprivate.h
deleted file mode 100644
index 2932ed2c0a..0000000000
--- a/gtk/gtkmainprivate.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* GTK - The GIMP Toolkit
- * Copyright (C) 2011 Red Hat, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free
- * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-
-#ifndef __GTK_MAIN_PRIVATE_H__
-#define __GTK_MAIN_PRIVATE_H__
-
-#include "gtkmain.h"
-
-G_BEGIN_DECLS
-
-gboolean _gtk_module_has_mixed_deps (GModule *module);
-
-G_END_DECLS
-
-#endif /* __GTK_MAIN_PRIVATE_H__ */
diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c
index 4b6749df96..7bda535561 100644
--- a/gtk/gtkmenushell.c
+++ b/gtk/gtkmenushell.c
@@ -42,7 +42,6 @@
#include "gtkbindings.h"
#include "gtkkeyhash.h"
#include "gtklabel.h"
-#include "gtkmainprivate.h"
#include "gtkmarshalers.h"
#include "gtkmenubar.h"
#include "gtkmenuitemprivate.h"
diff --git a/gtk/gtkmodules.c b/gtk/gtkmodules.c
index cdd85db5e1..f94c0d198f 100644
--- a/gtk/gtkmodules.c
+++ b/gtk/gtkmodules.c
@@ -27,7 +27,7 @@
#include "gtksettings.h"
#include "gtkdebug.h"
#include "gtkprivate.h"
-#include "gtkmainprivate.h"
+#include "gtkmodulesprivate.h"
#include "gtkintl.h"
#include <gmodule.h>
@@ -599,3 +599,29 @@ _gtk_modules_settings_changed (GtkSettings *settings,
new_modules,
settings_destroy_notify);
}
+
+/* Return TRUE if module_to_check causes version conflicts.
+ * If module_to_check is NULL, check the main module.
+ */
+gboolean
+_gtk_module_has_mixed_deps (GModule *module_to_check)
+{
+ GModule *module;
+ gpointer func;
+ gboolean result;
+
+ if (!module_to_check)
+ module = g_module_open (NULL, 0);
+ else
+ module = module_to_check;
+
+ if (g_module_symbol (module, "gtk_progress_get_type", &func))
+ result = TRUE;
+ else
+ result = FALSE;
+
+ if (!module_to_check)
+ g_module_close (module);
+
+ return result;
+}
diff --git a/gtk/gtkmodulesprivate.h b/gtk/gtkmodulesprivate.h
index 88f1c5e7cf..dc8ea28e6c 100644
--- a/gtk/gtkmodulesprivate.h
+++ b/gtk/gtkmodulesprivate.h
@@ -39,6 +39,8 @@ void _gtk_modules_init (gint *argc,
void _gtk_modules_settings_changed (GtkSettings *settings,
const gchar *modules);
+gboolean _gtk_module_has_mixed_deps (GModule *module);
+
G_END_DECLS
#endif /* __GTK_MODULES_PRIVATE_H__ */
diff --git a/gtk/gtkoverlay.c b/gtk/gtkoverlay.c
index 40125babaa..e8b66aab4e 100644
--- a/gtk/gtkoverlay.c
+++ b/gtk/gtkoverlay.c
@@ -25,7 +25,6 @@
#include "gtkoverlay.h"
#include "gtkbuildable.h"
#include "gtkscrolledwindow.h"
-#include "gtkmainprivate.h"
#include "gtkmarshalers.h"
#include "gtkprivate.h"
diff --git a/gtk/gtkprintoperation.c b/gtk/gtkprintoperation.c
index ebc7ad4565..b6fa95d4c6 100644
--- a/gtk/gtkprintoperation.c
+++ b/gtk/gtkprintoperation.c
@@ -31,7 +31,6 @@
#include "gtkmarshalers.h"
#include "gtkintl.h"
#include "gtkprivate.h"
-#include "gtkmainprivate.h"
#include "gtkmessagedialog.h"
#include "gtktypebuiltins.h"
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 94594ddc9f..69b959b7d3 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -30,7 +30,6 @@
#include <stdio.h>
#include <math.h>
-#include "gtkmainprivate.h"
#include "gtkmarshalers.h"
#include "gtkorientableprivate.h"
#include "gtkrange.h"
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index 69c54e40d0..3266f2eb06 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -41,7 +41,6 @@
#include "gtkintl.h"
#include "gtkbuildable.h"
#include "gtkbuilderprivate.h"
-#include "gtkmainprivate.h"
#include "a11y/gtkscaleaccessible.h"
diff --git a/gtk/gtksocket.c b/gtk/gtksocket.c
index d20a567ece..d7f6df6937 100644
--- a/gtk/gtksocket.c
+++ b/gtk/gtksocket.c
@@ -31,7 +31,6 @@
#include <string.h>
-#include "gtkmainprivate.h"
#include "gtkmarshalers.h"
#include "gtksizerequest.h"
#include "gtkplug.h"
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 9a6b3eaeda..6be36aac6b 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -38,7 +38,6 @@
#include "gtkbindings.h"
#include "gtkspinbutton.h"
#include "gtkentryprivate.h"
-#include "gtkmainprivate.h"
#include "gtkmarshalers.h"
#include "gtksettings.h"
#include "gtkprivate.h"
diff --git a/gtk/gtktextattributes.c b/gtk/gtktextattributes.c
index 8aca3b8c9f..d9bb885644 100644
--- a/gtk/gtktextattributes.c
+++ b/gtk/gtktextattributes.c
@@ -51,7 +51,6 @@
#include "gtktextattributes.h"
-#include "gtkmainprivate.h"
#include "gtktexttag.h"
#include "gtktexttypes.h"
diff --git a/gtk/gtktexttag.c b/gtk/gtktexttag.c
index 827a2ddfed..81f7932670 100644
--- a/gtk/gtktexttag.c
+++ b/gtk/gtktexttag.c
@@ -68,7 +68,6 @@
#include <stdlib.h>
#include <string.h>
-#include "gtkmainprivate.h"
#include "gtktexttag.h"
#include "gtktexttypes.h"
#include "gtktexttagtable.h"
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
index 2bd9be7d5d..5e7cfe1168 100644
--- a/gtk/gtktoolbar.c
+++ b/gtk/gtktoolbar.c
@@ -42,7 +42,7 @@
#include "gtkcontainerprivate.h"
#include "gtkimage.h"
#include "gtklabel.h"
-#include "gtkmainprivate.h"
+#include "gtkmain.h"
#include "gtkmarshalers.h"
#include "gtkmenu.h"
#include "gtkorientable.h"
diff --git a/gtk/gtktoolitem.c b/gtk/gtktoolitem.c
index 408494d395..213fc82093 100644
--- a/gtk/gtktoolitem.c
+++ b/gtk/gtktoolitem.c
@@ -32,7 +32,6 @@
#include "gtksizerequest.h"
#include "gtkactivatable.h"
#include "gtkintl.h"
-#include "gtkmainprivate.h"
#include "gtkprivate.h"
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index f7c5444682..6ac647515f 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -28,7 +28,6 @@
#include "gtktreednd.h"
#include "gtktreeprivate.h"
#include "gtkcellrenderer.h"
-#include "gtkmainprivate.h"
#include "gtkmarshalers.h"
#include "gtkbuildable.h"
#include "gtkbutton.h"
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 3e9e1d5e76..8ebc2f5dc7 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -39,7 +39,6 @@
#include "gtkclipboard.h"
#include "gtkiconfactory.h"
#include "gtkintl.h"
-#include "gtkmainprivate.h"
#include "gtkmarshalers.h"
#include "gtkselectionprivate.h"
#include "gtksettingsprivate.h"