Bug 471877 - Cleanup GTK includes; r+sr=roc

This commit is contained in:
Arpad Borsos 2009-01-03 08:37:52 +01:00
parent 081dcf1186
commit 880d20fa55
26 changed files with 28 additions and 47 deletions

View File

@ -68,7 +68,7 @@
#include <pango/pangofc-fontmap.h>
#ifdef MOZ_WIDGET_GTK2
#include <gdk/gdkscreen.h>
#include <gdk/gdk.h>
#endif
#include <math.h>

View File

@ -167,7 +167,7 @@ enum { XKeyPress = KeyPress };
#undef KeyPress
#endif
#ifdef MOZ_WIDGET_GTK2
#include <gdk/gdkwindow.h>
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
#endif
#endif

View File

@ -43,8 +43,7 @@
#include <X11/Xatom.h> // for XA_STRING
#include <stdlib.h>
#include <gtk/gtkinvisible.h> // For some reason GTK+ doesn't include this file
// automatically from gtk.h
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <gdk/gdkx.h>

View File

@ -49,7 +49,7 @@
#define _GTK_DRAWING_H_
#include <gdk/gdk.h>
#include <gtk/gtkstyle.h>
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" {

View File

@ -37,7 +37,7 @@
* ***** END LICENSE BLOCK ***** */
#include "mozcontainer.h"
#include <gtk/gtkprivate.h>
#include <gtk/gtk.h>
#include <stdio.h>
#ifdef ACCESSIBILITY

View File

@ -39,7 +39,7 @@
#ifndef __MOZ_CONTAINER_H__
#define __MOZ_CONTAINER_H__
#include <gtk/gtkcontainer.h>
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" {

View File

@ -39,8 +39,8 @@
#ifndef __MOZ_DRAWINGAREA_H__
#define __MOZ_DRAWINGAREA_H__
#include <gdk/gdkwindow.h>
#include <gtk/gtkversion.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include "mozcontainer.h"
#ifdef __cplusplus

View File

@ -41,7 +41,7 @@
#ifndef __NS_ACCESSIBILITY_HELPER_H__
#define __NS_ACCESSIBILITY_HELPER_H__
#include <gtk/gtkdialog.h>
#include <gtk/gtk.h>
// This helper function attach/deattach the AtkObject of the dialog
// to Gecko a11y root, before/after calling gtk_dialog_run.

View File

@ -40,7 +40,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <gdk/gdkwindow.h>
#include <gdk/gdk.h>
#include "nsAppShell.h"
#include "nsWindow.h"
#include "prlog.h"

View File

@ -48,13 +48,11 @@
#include "nsImageToPixbuf.h"
#include "nsStringStream.h"
#include <gtk/gtkclipboard.h>
#include <gtk/gtkinvisible.h>
#include <gtk/gtk.h>
// For manipulation of the X event queue
#include <X11/Xlib.h>
#include <gdk/gdkx.h>
#include <gtk/gtkmain.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>

View File

@ -40,7 +40,7 @@
#define __nsClipboard_h_
#include "nsIClipboard.h"
#include <gtk/gtkselection.h>
#include <gtk/gtk.h>
class nsClipboard : public nsIClipboard
{

View File

@ -48,8 +48,7 @@
#include "nsCRT.h" /* should be <limits.h>? */
#include <gtk/gtk.h>
#include <gtk/gtkprinter.h>
#include <gtk/gtkprintjob.h>
#include <gtk/gtkunixprint.h>
#define NS_PORTRAIT 0
#define NS_LANDSCAPE 1

View File

@ -56,7 +56,7 @@
#include "nsPrimitiveHelpers.h"
#include "prtime.h"
#include "prthread.h"
#include <gtk/gtkinvisible.h>
#include <gtk/gtk.h>
#include <gdk/gdkx.h>
#include "nsCRT.h"

View File

@ -35,14 +35,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include <gtk/gtkwindow.h>
#include <gtk/gtkdialog.h>
#include <gtk/gtkstock.h>
#include <gtk/gtkmessagedialog.h>
#include <gtk/gtkimage.h>
#include <gtk/gtkfilechooser.h>
#include <gtk/gtkfilechooserdialog.h>
#include <gtk/gtkmisc.h>
#include <gtk/gtk.h>
#include "nsIFileURL.h"
#include "nsIURI.h"

View File

@ -38,7 +38,7 @@
#ifndef nsFilePicker_h__
#define nsFilePicker_h__
#include <gtk/gtkwidget.h>
#include <gtk/gtk.h>
#include "nsBaseFilePicker.h"
#include "nsString.h"

View File

@ -38,7 +38,7 @@
* ***** END LICENSE BLOCK ***** */
#include <gdk/gdkkeysyms.h>
#include <gdk/gdkevents.h>
#include <gdk/gdk.h>
#ifdef MOZ_X11
#include <gdk/gdkx.h>
#endif /* MOZ_X11 */

View File

@ -39,7 +39,7 @@
* ***** END LICENSE BLOCK ***** */
#include "nsLookAndFeel.h"
#include <gtk/gtkinvisible.h>
#include <gtk/gtk.h>
#include "gtkdrawing.h"

View File

@ -42,12 +42,9 @@
#include "nsGtkKeyUtils.h"
#include "nsGUIEvent.h"
#include <gtk/gtkentry.h>
#include <gtk/gtktextview.h>
#include <gtk/gtkbindings.h>
#include <gtk/gtkmain.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <gdk/gdkevents.h>
#include <gdk/gdk.h>
static nsINativeKeyBindings::DoCommandCallback gCurrentCallback;
static void *gCurrentCallbackData;

View File

@ -45,7 +45,7 @@
#endif
#include "nsINativeKeyBindings.h"
#include <gtk/gtkwidget.h>
#include <gtk/gtk.h>
enum NativeKeyBindingsType {
eKeyBindings_Input,

View File

@ -42,7 +42,7 @@
#include "nsIObserver.h"
#include "nsNativeTheme.h"
#include <gtk/gtkwidget.h>
#include <gtk/gtk.h>
#include "gtkdrawing.h"
class nsNativeThemeGTK: private nsNativeTheme,

View File

@ -37,7 +37,7 @@
* ***** END LICENSE BLOCK ***** */
#include <gtk/gtk.h>
#include <gtk/gtkprintunixdialog.h>
#include <gtk/gtkunixprint.h>
#include <stdlib.h>
#include "mozcontainer.h"

View File

@ -43,8 +43,7 @@
extern "C" {
#include <gtk/gtk.h>
#include <gtk/gtkprinter.h>
#include <gtk/gtkprintjob.h>
#include <gtk/gtkunixprint.h>
}
#define NS_PRINTSETTINGSGTK_IID \

View File

@ -40,7 +40,6 @@
#ifdef MOZ_PLATFORM_HILDON
#define MAEMO_CHANGES
#include <gtk/gtkimcontext.h>
#endif
#include "prlink.h"
@ -61,7 +60,7 @@
#include "nsGtkKeyUtils.h"
#include "nsGtkCursors.h"
#include <gtk/gtkwindow.h>
#include <gtk/gtk.h>
#ifdef MOZ_X11
#include <gdk/gdkx.h>
#include <X11/XF86keysym.h>

View File

@ -54,7 +54,7 @@
#include "nsBaseWidget.h"
#include "nsGUIEvent.h"
#include <gdk/gdkevents.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#ifdef MOZ_DFB
@ -64,7 +64,6 @@
#ifdef MOZ_X11
#include <gdk/gdkx.h>
#endif /* MOZ_X11 */
#include <gtk/gtkwindow.h>
#ifdef ACCESSIBILITY
#include "nsIAccessNode.h"
@ -72,7 +71,6 @@
#endif
#ifdef USE_XIM
#include <gtk/gtkimmulticontext.h>
#include "pldhash.h"
#endif

View File

@ -44,8 +44,7 @@
#include "xembed.h"
#include "gtk2xtbin.h"
#include <gtk/gtkmain.h>
#include <gtk/gtkprivate.h>
#include <gtk/gtk.h>
#include <gdk/gdkx.h>
#include <glib.h>
#include <assert.h>

View File

@ -40,7 +40,7 @@
#ifndef __GTK_XTBIN_H__
#define __GTK_XTBIN_H__
#include <gtk/gtksocket.h>
#include <gtk/gtk.h>
#include <X11/Intrinsic.h>
#include <X11/Xutil.h>
#include <X11/Xlib.h>