diff --git a/config/config.mk b/config/config.mk index 00410e0e40ba..b620f9e6b746 100644 --- a/config/config.mk +++ b/config/config.mk @@ -814,3 +814,7 @@ PLY_INCLUDE = -I$(topsrcdir)/other-licenses/ply endif export CL_INCLUDES_PREFIX + +ifeq ($(MOZ_WIDGET_GTK),2) +MOZ_GTK2_CFLAGS := -I$(topsrcdir)/widget/gtk2/compat $(MOZ_GTK2_CFLAGS) +endif diff --git a/configure.in b/configure.in index bf82d1be8ffa..7782b5294dc4 100644 --- a/configure.in +++ b/configure.in @@ -65,7 +65,7 @@ PYTHON_VERSION_MAJOR=2 PYTHON_VERSION_MINOR=5 CAIRO_VERSION=1.10 PANGO_VERSION=1.14.0 -GTK2_VERSION=2.10.0 +GTK2_VERSION=2.18.0 WINDRES_VERSION=2.14.90 W32API_VERSION=3.14 GNOMEVFS_VERSION=2.0 @@ -4435,6 +4435,8 @@ dnl ======================================================== dnl = Enable the toolkit as needed = dnl ======================================================== +MOZ_WIDGET_GTK= + case "$MOZ_WIDGET_TOOLKIT" in cairo-windows) @@ -4458,7 +4460,8 @@ cairo-gtk2|cairo-gtk2-x11) TK_CFLAGS='$(MOZ_GTK2_CFLAGS)' TK_LIBS='$(MOZ_GTK2_LIBS)' AC_DEFINE(MOZ_WIDGET_GTK2) - AC_DEFINE(MOZ_WIDGET_GTK,2) + MOZ_WIDGET_GTK=2 + AC_DEFINE_UNQUOTED(MOZ_WIDGET_GTK,$MOZ_WIDGET_GTK) MOZ_PDF_PRINTING=1 MOZ_INSTRUMENT_EVENT_LOOP=1 ;; @@ -4732,6 +4735,7 @@ AC_SUBST(MOZ_ENABLE_QTMOBILITY) AC_SUBST(MOZ_ENABLE_XREMOTE) AC_SUBST(MOZ_GTK2_CFLAGS) AC_SUBST(MOZ_GTK2_LIBS) +AC_SUBST(MOZ_WIDGET_GTK) AC_SUBST(MOZ_QT_CFLAGS) AC_SUBST(MOZ_QT_LIBS) diff --git a/dom/plugins/base/nsPluginNativeWindowGtk2.cpp b/dom/plugins/base/nsPluginNativeWindowGtk2.cpp index 44559818564d..e53a11a1388f 100644 --- a/dom/plugins/base/nsPluginNativeWindowGtk2.cpp +++ b/dom/plugins/base/nsPluginNativeWindowGtk2.cpp @@ -17,7 +17,6 @@ #include #include -#include "gtk2compat.h" #include "gtk2xtbin.h" #include "mozilla/X11Util.h" diff --git a/dom/plugins/ipc/PluginModuleChild.cpp b/dom/plugins/ipc/PluginModuleChild.cpp index 504f8206f489..6275eb6b4fc7 100644 --- a/dom/plugins/ipc/PluginModuleChild.cpp +++ b/dom/plugins/ipc/PluginModuleChild.cpp @@ -23,7 +23,6 @@ #if (MOZ_WIDGET_GTK == 3) #include #endif -#include "gtk2compat.h" #endif #include "nsIFile.h" diff --git a/gfx/thebes/gfxPlatformGtk.cpp b/gfx/thebes/gfxPlatformGtk.cpp index 450cda627007..a77bb0c14b67 100644 --- a/gfx/thebes/gfxPlatformGtk.cpp +++ b/gfx/thebes/gfxPlatformGtk.cpp @@ -28,9 +28,6 @@ #include "cairo.h" #include -#if (MOZ_WIDGET_GTK == 2) -#include "gtk2compat.h" -#endif #include "gfxImageSurface.h" #ifdef MOZ_X11 diff --git a/js/src/config/config.mk b/js/src/config/config.mk index 00410e0e40ba..b620f9e6b746 100644 --- a/js/src/config/config.mk +++ b/js/src/config/config.mk @@ -814,3 +814,7 @@ PLY_INCLUDE = -I$(topsrcdir)/other-licenses/ply endif export CL_INCLUDES_PREFIX + +ifeq ($(MOZ_WIDGET_GTK),2) +MOZ_GTK2_CFLAGS := -I$(topsrcdir)/widget/gtk2/compat $(MOZ_GTK2_CFLAGS) +endif diff --git a/widget/gtk2/Makefile.in b/widget/gtk2/Makefile.in index 4723e23edc3e..36b71263645a 100644 --- a/widget/gtk2/Makefile.in +++ b/widget/gtk2/Makefile.in @@ -78,7 +78,6 @@ EXPORTS = \ nsGTKToolkit.h \ nsIImageToPixbuf.h \ mozcontainer.h \ - gtk2compat.h \ $(NULL) ifdef NATIVE_THEME_SUPPORT diff --git a/widget/gtk2/compat/gdk/gdkdnd.h b/widget/gtk2/compat/gdk/gdkdnd.h new file mode 100644 index 000000000000..e20cdea8433e --- /dev/null +++ b/widget/gtk2/compat/gdk/gdkdnd.h @@ -0,0 +1,33 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef GDKDND_WRAPPER_H +#define GDKDND_WRAPPER_H + +#define gdk_drag_context_get_actions gdk_drag_context_get_actions_ +#define gdk_drag_context_list_targets gdk_drag_context_list_targets_ +#define gdk_drag_context_get_dest_window gdk_drag_context_get_dest_window_ +#include_next +#undef gdk_drag_context_get_actions +#undef gdk_drag_context_list_targets +#undef gdk_drag_context_get_dest_window + +static inline GdkDragAction +gdk_drag_context_get_actions(GdkDragContext *context) +{ + return context->actions; +} + +static inline GList * +gdk_drag_context_list_targets(GdkDragContext *context) +{ + return context->targets; +} + +static inline GdkWindow * +gdk_drag_context_get_dest_window(GdkDragContext *context) +{ + return context->dest_window; +} +#endif /* GDKDND_WRAPPER_H */ diff --git a/widget/gtk2/compat/gdk/gdkvisual.h b/widget/gtk2/compat/gdk/gdkvisual.h new file mode 100644 index 000000000000..6476b4494677 --- /dev/null +++ b/widget/gtk2/compat/gdk/gdkvisual.h @@ -0,0 +1,17 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef GDKVISUAL_WRAPPER_H +#define GDKVISUAL_WRAPPER_H + +#define gdk_visual_get_depth gdk_visual_get_depth_ +#include_next +#undef gdk_visual_get_depth + +static inline gint +gdk_visual_get_depth(GdkVisual *visual) +{ + return visual->depth; +} +#endif /* GDKVISUAL_WRAPPER_H */ diff --git a/widget/gtk2/compat/gdk/gdkwindow.h b/widget/gtk2/compat/gdk/gdkwindow.h new file mode 100644 index 000000000000..1b69da9f2825 --- /dev/null +++ b/widget/gtk2/compat/gdk/gdkwindow.h @@ -0,0 +1,25 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef GDKWINDOW_WRAPPER_H +#define GDKWINDOW_WRAPPER_H + +#define gdk_window_get_display gdk_window_get_display_ +#define gdk_window_get_screen gdk_window_get_screen_ +#include_next +#undef gdk_window_get_display +#undef gdk_window_get_screen + +static inline GdkDisplay * +gdk_window_get_display(GdkWindow *window) +{ + return gdk_drawable_get_display(GDK_DRAWABLE(window)); +} + +static inline GdkScreen* +gdk_window_get_screen(GdkWindow *window) +{ + return gdk_drawable_get_screen (window); +} +#endif /* GDKWINDOW_WRAPPER_H */ diff --git a/widget/gtk2/compat/gdk/gdkx.h b/widget/gtk2/compat/gdk/gdkx.h new file mode 100644 index 000000000000..422358c3a324 --- /dev/null +++ b/widget/gtk2/compat/gdk/gdkx.h @@ -0,0 +1,25 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef GDKX_WRAPPER_H +#define GDKX_WRAPPER_H + +#define gdk_x11_window_lookup_for_display gdk_x11_window_lookup_for_display_ +#define gdk_x11_window_get_xid gdk_x11_window_get_xid_ +#include_next +#undef gdk_x11_window_lookup_for_display +#undef gdk_x11_window_get_xid + +static inline GdkWindow * +gdk_x11_window_lookup_for_display(GdkDisplay *display, Window window) +{ + return gdk_window_lookup_for_display(display, window); +} + +static inline Window +gdk_x11_window_get_xid(GdkWindow *window) +{ + return(GDK_WINDOW_XWINDOW(window)); +} +#endif /* GDKX_WRAPPER_H */ diff --git a/widget/gtk2/compat/glib/gmem.h b/widget/gtk2/compat/glib/gmem.h new file mode 100644 index 000000000000..1e728197e310 --- /dev/null +++ b/widget/gtk2/compat/glib/gmem.h @@ -0,0 +1,56 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef GMEM_WRAPPER_H +#define GMEM_WRAPPER_H + +#define g_malloc_n g_malloc_n_ +#define g_malloc0_n g_malloc0_n_ +#define g_realloc_n g_realloc_n_ +#include_next +#undef g_malloc_n +#undef g_malloc0_n +#undef g_realloc_n + +#include + +#undef g_new +#define g_new(type, num) \ + ((type *) g_malloc_n((num), sizeof(type))) + +#undef g_new0 +#define g_new0(type, num) \ + ((type *) g_malloc0_n((num), sizeof(type))) + +#undef g_renew +#define g_renew(type, ptr, num) \ + ((type *) g_realloc_n(ptr, (num), sizeof(type))) + +#define _CHECK_OVERFLOW(num, type_size) \ + if (G_UNLIKELY(type_size > 0 && num > G_MAXSIZE / type_size)) { \ + g_error("%s: overflow allocating %" G_GSIZE_FORMAT "*%" G_GSIZE_FORMAT " bytes", \ + G_STRLOC, num, type_size); \ + } + +static inline gpointer +g_malloc_n(gsize num, gsize type_size) +{ + _CHECK_OVERFLOW(num, type_size) + return g_malloc(num * type_size); +} + +static inline gpointer +g_malloc0_n(gsize num, gsize type_size) +{ + _CHECK_OVERFLOW(num, type_size) + return g_malloc0(num * type_size); +} + +static inline gpointer +g_realloc_n(gpointer ptr, gsize num, gsize type_size) +{ + _CHECK_OVERFLOW(num, type_size) + return g_realloc(ptr, num * type_size); +} +#endif /* GMEM_WRAPPER_H */ diff --git a/widget/gtk2/compat/gtk/gtkwidget.h b/widget/gtk2/compat/gtk/gtkwidget.h new file mode 100644 index 000000000000..ff0163b00cf1 --- /dev/null +++ b/widget/gtk2/compat/gtk/gtkwidget.h @@ -0,0 +1,47 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef GTKWIDGET_WRAPPER_H +#define GTKWIDGET_WRAPPER_H + +#define gtk_widget_set_mapped gtk_widget_set_mapped_ +#define gtk_widget_get_mapped gtk_widget_get_mapped_ +#define gtk_widget_set_realized gtk_widget_set_realized_ +#define gtk_widget_get_realized gtk_widget_get_realized_ +#include_next +#undef gtk_widget_set_mapped +#undef gtk_widget_get_mapped +#undef gtk_widget_set_realized +#undef gtk_widget_get_realized + +static inline void +gtk_widget_set_mapped(GtkWidget *widget, gboolean mapped) +{ + if (mapped) + GTK_WIDGET_SET_FLAGS (widget, GTK_MAPPED); + else + GTK_WIDGET_UNSET_FLAGS (widget, GTK_MAPPED); +} + +static inline gboolean +gtk_widget_get_mapped(GtkWidget *widget) +{ + return GTK_WIDGET_MAPPED (widget); +} + +static inline void +gtk_widget_set_realized(GtkWidget *widget, gboolean realized) +{ + if (realized) + GTK_WIDGET_SET_FLAGS(widget, GTK_REALIZED); + else + GTK_WIDGET_UNSET_FLAGS(widget, GTK_REALIZED); +} + +static inline gboolean +gtk_widget_get_realized(GtkWidget *widget) +{ + return GTK_WIDGET_REALIZED (widget); +} +#endif /* GTKWIDGET_WRAPPER_H */ diff --git a/widget/gtk2/compat/gtk/gtkwindow.h b/widget/gtk2/compat/gtk/gtkwindow.h new file mode 100644 index 000000000000..3aaba27c5be8 --- /dev/null +++ b/widget/gtk2/compat/gtk/gtkwindow.h @@ -0,0 +1,20 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef GTKWINDOW_WRAPPER_H +#define GTKWINDOW_WRAPPER_H + +#define gtk_window_group_get_current_grab gtk_window_group_get_current_grab_ +#include_next +#undef gtk_window_group_get_current_grab + +static inline GtkWidget * +gtk_window_group_get_current_grab(GtkWindowGroup *window_group) +{ + if (!window_group->grabs) + return NULL; + + return GTK_WIDGET(window_group->grabs->data); +} +#endif /* GTKWINDOW_WRAPPER_H */ diff --git a/widget/gtk2/gtk2compat.h b/widget/gtk2/gtk2compat.h deleted file mode 100644 index a77f2ed5cc45..000000000000 --- a/widget/gtk2/gtk2compat.h +++ /dev/null @@ -1,229 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim:expandtab:shiftwidth=2:tabstop=2: - */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -/** - * gtk2compat.h: GTK2 compatibility routines - * - * gtk2compat provides an API which is not defined in GTK2. - */ - -#ifndef _GTK2_COMPAT_H_ -#define _GTK2_COMPAT_H_ - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -#if !GTK_CHECK_VERSION(2, 14, 0) -static inline GdkWindow* -gtk_widget_get_window(GtkWidget *widget) -{ - return widget->window; -} - -static inline const guchar * -gtk_selection_data_get_data(GtkSelectionData *selection_data) -{ - return selection_data->data; -} - -static inline gint -gtk_selection_data_get_length(GtkSelectionData *selection_data) -{ - return selection_data->length; -} - -static inline GdkAtom -gtk_selection_data_get_target(GtkSelectionData *selection_data) -{ - return selection_data->target; -} - -static inline GtkWidget * -gtk_dialog_get_content_area(GtkDialog *dialog) -{ - return dialog->vbox; -} - -static inline GdkWindow * -gtk_plug_get_socket_window(GtkPlug *plug) -{ - return plug->socket_window; -} -#endif - - -#if !GTK_CHECK_VERSION(2, 16, 0) -static inline GdkAtom -gtk_selection_data_get_selection(GtkSelectionData *selection_data) -{ - return selection_data->selection; -} -#endif - -#if !GTK_CHECK_VERSION(2, 18, 0) -static inline gboolean -gtk_widget_get_visible(GtkWidget *widget) -{ - return GTK_WIDGET_VISIBLE(widget); -} - -static inline gboolean -gtk_widget_has_focus(GtkWidget *widget) -{ - return GTK_WIDGET_HAS_FOCUS(widget); -} - -static inline gboolean -gtk_widget_has_grab(GtkWidget *widget) -{ - return GTK_WIDGET_HAS_GRAB(widget); -} - -static inline void -gtk_widget_get_allocation(GtkWidget *widget, GtkAllocation *allocation) -{ - *allocation = widget->allocation; -} - -static inline void -gtk_widget_set_allocation(GtkWidget *widget, const GtkAllocation *allocation) -{ - widget->allocation = *allocation; -} - -static inline gboolean -gdk_window_is_destroyed(GdkWindow *window) -{ - return GDK_WINDOW_OBJECT(window)->destroyed; -} - -static inline void -gtk_widget_set_can_focus(GtkWidget *widget, gboolean can_focus) -{ - if (can_focus) - GTK_WIDGET_SET_FLAGS (widget, GTK_CAN_FOCUS); - else - GTK_WIDGET_UNSET_FLAGS (widget, GTK_CAN_FOCUS); -} - -static inline void -gtk_widget_set_window(GtkWidget *widget, GdkWindow *window) -{ - widget->window = window; -} - -static inline gboolean -gtk_widget_is_toplevel(GtkWidget *widget) -{ - return GTK_WIDGET_TOPLEVEL(widget); -} -#endif - -#if !GTK_CHECK_VERSION(2, 20, 0) -static inline void -gtk_widget_set_mapped(GtkWidget *widget, gboolean mapped) -{ - if (mapped) - GTK_WIDGET_SET_FLAGS (widget, GTK_MAPPED); - else - GTK_WIDGET_UNSET_FLAGS (widget, GTK_MAPPED); -} - -static inline gboolean -gtk_widget_get_mapped(GtkWidget *widget) -{ - return GTK_WIDGET_MAPPED (widget); -} - -static inline void -gtk_widget_set_realized(GtkWidget *widget, gboolean realized) -{ - if (realized) - GTK_WIDGET_SET_FLAGS(widget, GTK_REALIZED); - else - GTK_WIDGET_UNSET_FLAGS(widget, GTK_REALIZED); -} - -static inline gboolean -gtk_widget_get_realized(GtkWidget *widget) -{ - return GTK_WIDGET_REALIZED (widget); -} -#endif - -#if !GTK_CHECK_VERSION(2, 22, 0) -static inline gint -gdk_visual_get_depth(GdkVisual *visual) -{ - return visual->depth; -} - -static inline GdkDragAction -gdk_drag_context_get_actions(GdkDragContext *context) -{ - return context->actions; -} - -static inline GtkWidget * -gtk_window_group_get_current_grab(GtkWindowGroup *window_group) -{ - if (!window_group->grabs) - return NULL; - - return GTK_WIDGET(window_group->grabs->data); -} - -static inline GList * -gdk_drag_context_list_targets(GdkDragContext *context) -{ - return context->targets; -} -#endif - -#if !GTK_CHECK_VERSION(2, 23, 3) -static inline GdkWindow * -gdk_drag_context_get_dest_window(GdkDragContext *context) -{ - return context->dest_window; -} -#endif - -#if !GTK_CHECK_VERSION(2, 24, 0) -#ifdef GDK_WINDOW_XDISPLAY -static inline GdkWindow * -gdk_x11_window_lookup_for_display(GdkDisplay *display, Window window) -{ - return gdk_window_lookup_for_display(display, window); -} -#endif -static inline GdkDisplay * -gdk_window_get_display(GdkWindow *window) -{ - return gdk_drawable_get_display(GDK_DRAWABLE(window)); -} - -static inline GdkScreen* -gdk_window_get_screen (GdkWindow *window) -{ - return gdk_drawable_get_screen (window); -} -#endif - -#ifdef GDK_WINDOW_XWINDOW -static inline Window -gdk_x11_window_get_xid(GdkWindow *window) -{ - return(GDK_WINDOW_XWINDOW(window)); -} -#endif - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* _GTK2_COMPAT_H_ */ diff --git a/widget/gtk2/mozcontainer.c b/widget/gtk2/mozcontainer.c index eae4b12b14cf..91f4eaff5448 100644 --- a/widget/gtk2/mozcontainer.c +++ b/widget/gtk2/mozcontainer.c @@ -14,10 +14,6 @@ #include "maiRedundantObjectFactory.h" #endif -#if defined(MOZ_WIDGET_GTK2) -#include "gtk2compat.h" -#endif - /* init methods */ static void moz_container_class_init (MozContainerClass *klass); static void moz_container_init (MozContainer *container); diff --git a/widget/gtk2/nsClipboard.cpp b/widget/gtk2/nsClipboard.cpp index 36a3adf54432..df066a08f9f5 100644 --- a/widget/gtk2/nsClipboard.cpp +++ b/widget/gtk2/nsClipboard.cpp @@ -31,10 +31,6 @@ #include #include -#if (MOZ_WIDGET_GTK == 2) -#include "gtk2compat.h" -#endif - using namespace mozilla; // Callback when someone asks us for the data diff --git a/widget/gtk2/nsDragService.cpp b/widget/gtk2/nsDragService.cpp index 13217f999321..4fcdfc557a98 100644 --- a/widget/gtk2/nsDragService.cpp +++ b/widget/gtk2/nsDragService.cpp @@ -25,10 +25,6 @@ #include "nsCRT.h" #include "mozilla/Services.h" -#if (MOZ_WIDGET_GTK == 2) -#include "gtk2compat.h" -#endif - #include "gfxASurface.h" #include "gfxXlibSurface.h" #include "gfxContext.h" diff --git a/widget/gtk2/nsGtkIMModule.cpp b/widget/gtk2/nsGtkIMModule.cpp index 5b1629f1962e..06caa185280a 100644 --- a/widget/gtk2/nsGtkIMModule.cpp +++ b/widget/gtk2/nsGtkIMModule.cpp @@ -24,10 +24,6 @@ #include "mozilla/Services.h" #endif -#if (MOZ_WIDGET_GTK == 2) -#include "gtk2compat.h" -#endif - using namespace mozilla; using namespace mozilla::widget; diff --git a/widget/gtk2/nsIdleServiceGTK.cpp b/widget/gtk2/nsIdleServiceGTK.cpp index 89a4043583f2..f61f231a84e0 100644 --- a/widget/gtk2/nsIdleServiceGTK.cpp +++ b/widget/gtk2/nsIdleServiceGTK.cpp @@ -12,9 +12,6 @@ #include "nsDebug.h" #include "prlink.h" #include "prlog.h" -#if (MOZ_WIDGET_GTK == 2) -#include "gtk2compat.h" -#endif #ifdef PR_LOGGING static PRLogModuleInfo* sIdleLog = nullptr; diff --git a/widget/gtk2/nsPrintDialogGTK.cpp b/widget/gtk2/nsPrintDialogGTK.cpp index 0be3f62d674a..8e7ce6263ec2 100644 --- a/widget/gtk2/nsPrintDialogGTK.cpp +++ b/widget/gtk2/nsPrintDialogGTK.cpp @@ -6,7 +6,6 @@ #include #if (MOZ_WIDGET_GTK == 2) #include -#include "gtk2compat.h" #else #include #endif diff --git a/widget/gtk2/nsScreenGtk.cpp b/widget/gtk2/nsScreenGtk.cpp index 31545e50f7c4..9332b2f1671a 100644 --- a/widget/gtk2/nsScreenGtk.cpp +++ b/widget/gtk2/nsScreenGtk.cpp @@ -11,9 +11,6 @@ #include #endif #include -#if (MOZ_WIDGET_GTK == 2) -#include "gtk2compat.h" -#endif nsScreenGtk :: nsScreenGtk ( ) : mScreenNum(0), diff --git a/widget/gtk2/nsWindow.cpp b/widget/gtk2/nsWindow.cpp index c37cadece65c..c3dd1813da84 100644 --- a/widget/gtk2/nsWindow.cpp +++ b/widget/gtk2/nsWindow.cpp @@ -53,10 +53,6 @@ #include #endif -#if defined(MOZ_WIDGET_GTK2) -#include "gtk2compat.h" -#endif - #include "nsGkAtoms.h" #ifdef MOZ_ENABLE_STARTUP_NOTIFICATION