diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-09-10 06:39:16 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-09-10 06:39:16 +0000 |
commit | f45a35921aec248e0b8494a2145b907684a21fe5 (patch) | |
tree | b21e00507445a307553ebd219326fe1fcbef362e | |
parent | 77cdc290b98acd6f77922645b2a2e53d750b332d (diff) | |
download | gtk+-f45a35921aec248e0b8494a2145b907684a21fe5.tar.gz |
Commit a patch by Behdad to fix typos, omissions and other errors in the
2006-09-10 Matthias Clasen <mclasen@redhat.com>
* Commit a patch by Behdad to fix typos, omissions and other
errors in the symbol aliasing, and add checks for local PLT
entries. (#354687, Behdad Esfahbod)
67 files changed, 215 insertions, 143 deletions
@@ -1,5 +1,9 @@ 2006-09-10 Matthias Clasen <mclasen@redhat.com> + * Commit a patch by Behdad to fix typos, omissions and other + errors in the symbol aliasing, and add checks for local PLT + entries. (#354687, Behdad Esfahbod) + * gtk/gtktreeview.c (gtk_tree_view_search_scroll_event): Renew the flush timeout. (#354043, Nelson Benitez) diff --git a/gdk-pixbuf/Makefile.am b/gdk-pixbuf/Makefile.am index bcbdcf4477..826d1f7775 100644 --- a/gdk-pixbuf/Makefile.am +++ b/gdk-pixbuf/Makefile.am @@ -50,7 +50,7 @@ gdk-pixbuf-aliasdef.c: gdk-pixbuf.symbols $(PERL) $(srcdir)/makegdkpixbufalias.pl -def < $(srcdir)/gdk-pixbuf.symbols > gdk-pixbuf-aliasdef.c if OS_LINUX -TESTS = abicheck.sh +TESTS = abicheck.sh pltcheck.sh endif lib_LTLIBRARIES = \ @@ -273,7 +273,6 @@ INCLUDES = \ -DGTK_SYSCONFDIR=\"$(sysconfdir)\" \ -DGTK_VERSION=\"$(GTK_VERSION)\" \ -DGTK_BINARY_VERSION=\"$(GTK_BINARY_VERSION)\" \ - -DGDK_PIXBUF_DISABLE_DEPRECATED \ -DGTK_PREFIX=\"$(prefix)\" \ $(INCLUDED_LOADER_DEFINE) \ $(GTK_DEBUG_FLAGS) \ diff --git a/gdk-pixbuf/abicheck.sh b/gdk-pixbuf/abicheck.sh index 2d2a8d19fb..dd8f37a61e 100755 --- a/gdk-pixbuf/abicheck.sh +++ b/gdk-pixbuf/abicheck.sh @@ -2,4 +2,4 @@ cpp -DINCLUDE_VARIABLES -P -DALL_FILES ${srcdir:-.}/gdk-pixbuf.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE$//' | sort > expected-abi nm -D -g --defined-only .libs/libgdk_pixbuf-2.0.so | cut -d ' ' -f 3 | sort > actual-abi -diff -u expected-abi actual-abi && rm expected-abi actual-abi +diff -u expected-abi actual-abi && rm -f expected-abi actual-abi diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c index 3476bfed4b..95103ff95f 100644 --- a/gdk-pixbuf/gdk-pixbuf-io.c +++ b/gdk-pixbuf/gdk-pixbuf-io.c @@ -2277,7 +2277,3 @@ gdk_pixbuf_get_formats (void) #define __GDK_PIXBUF_IO_C__ #include "gdk-pixbuf-aliasdef.c" - - - - diff --git a/gdk-pixbuf/gdk-pixbuf.c b/gdk-pixbuf/gdk-pixbuf.c index 944ae6ba94..42c91887b5 100644 --- a/gdk-pixbuf/gdk-pixbuf.c +++ b/gdk-pixbuf/gdk-pixbuf.c @@ -30,6 +30,9 @@ #define GDK_PIXBUF_COMPILATION #include "gdk-pixbuf.h" #include "gdk-pixbuf-private.h" +/* Include the marshallers */ +#include <glib-object.h> +#include "gdk-pixbuf-marshal.c" #include "gdk-pixbuf-alias.h" static void gdk_pixbuf_finalize (GObject *object); @@ -753,11 +756,5 @@ gdk_pixbuf_get_property (GObject *object, } } - - -/* Include the marshallers */ -#include <glib-object.h> -#include "gdk-pixbuf-marshal.c" - #define __GDK_PIXBUF_C__ #include "gdk-pixbuf-aliasdef.c" diff --git a/gdk-pixbuf/gdk-pixdata.c b/gdk-pixbuf/gdk-pixdata.c index ddafb0ef18..266d20eb44 100644 --- a/gdk-pixbuf/gdk-pixdata.c +++ b/gdk-pixbuf/gdk-pixdata.c @@ -17,9 +17,9 @@ * Boston, MA 02111-1307, USA. */ #include <config.h> -#include "gdk-pixdata.h" #include "gdk-pixbuf-private.h" +#include "gdk-pixdata.h" #include "gdk-pixbuf-alias.h" #include <string.h> diff --git a/gdk-pixbuf/pltcheck.sh b/gdk-pixbuf/pltcheck.sh new file mode 100755 index 0000000000..7c0dd52303 --- /dev/null +++ b/gdk-pixbuf/pltcheck.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +LANG=C + +status=0 + +if ! which readelf 2>/dev/null >/dev/null; then + echo "'readelf' not found; skipping test" + exit 0 +fi + +for so in .libs/libgdk_pixbuf*.so; do + echo Checking $so for local PLT entries + readelf -r $so | grep 'JU\?MP_SLOT' | grep 'gdk_pixbuf' && status=1 +done + +exit $status diff --git a/gdk/Makefile.am b/gdk/Makefile.am index e4762b2bb6..6d341ff600 100644 --- a/gdk/Makefile.am +++ b/gdk/Makefile.am @@ -24,8 +24,7 @@ INCLUDES = \ -I$(top_srcdir) \ -I$(top_builddir)/gdk \ -I$(top_srcdir)/gdk-pixbuf \ - -DGDK_PIXBUF_DISABLE_DEPRECATED \ - -DGDK_DISABLE_DEPRECATED \ + -DGDK_PIXBUF_DISABLE_DEPRECATED \ $(GTK_DEBUG_FLAGS) \ $(GDK_DEP_CFLAGS) @@ -199,7 +198,7 @@ gdkaliasdef.c: gdk.symbols $(PERL) $(srcdir)/makegdkalias.pl -def < $(srcdir)/gdk.symbols > gdkaliasdef.c if OS_LINUX -TESTS = abicheck.sh +TESTS = pltcheck.sh abicheck.sh endif diff --git a/gdk/abicheck.sh b/gdk/abicheck.sh index 6832afd73c..e8ed7f4191 100755 --- a/gdk/abicheck.sh +++ b/gdk/abicheck.sh @@ -2,4 +2,4 @@ cpp -DINCLUDE_VARIABLES -P -DALL_FILES -DGDK_ENABLE_BROKEN -DGDK_WINDOWING_X11 ${srcdir:-.}/gdk.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' | sort | uniq > expected-abi nm -D -g --defined-only .libs/libgdk-x11-2.0.so | cut -d ' ' -f 3 | sort > actual-abi -diff -u expected-abi actual-abi && rm expected-abi actual-abi +diff -u expected-abi actual-abi && rm -f expected-abi actual-abi diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols index 103ed0cb5e..b84fef78d6 100644 --- a/gdk/gdk.symbols +++ b/gdk/gdk.symbols @@ -137,15 +137,12 @@ gdk_threads_set_lock_functions #endif #if IN_HEADER(__GDK_H__) -#if IN_FILE(__GDK_INPUT_C__) +#if IN_FILE(__GDK_EVENTS_C__) #ifndef GDK_DISABLE_DEPRECATED gdk_input_add gdk_input_remove gdk_input_add_full #endif -#ifdef GTK_COMPILATION -gdk_input_add_full -#endif #endif #endif @@ -642,9 +639,6 @@ gdk_window_clear_area gdk_window_clear_area_e gdk_window_constrain_size gdk_window_destroy -#ifndef GDK_DISABLE_DEPRECATED -gdk_window_destroy_notify -#endif gdk_window_end_paint gdk_window_foreign_new gdk_window_freeze_updates @@ -1092,6 +1086,12 @@ gdk_synthesize_window_state #endif #endif +#if IN_HEADER(__GDK_PRIVATE_H__) +#if IN_FILE(__GDK_WINDOW_X11_C__) +gdk_window_destroy_notify +#endif +#endif + #ifdef GDK_WINDOWING_WIN32 #if IN_HEADER(__GDK_WIN32_H__) #if IN_FILE(__GDK_WIN32ID_C__) diff --git a/gdk/gdkglobals.c b/gdk/gdkglobals.c index 3a033caf3d..4a512fea15 100644 --- a/gdk/gdkglobals.c +++ b/gdk/gdkglobals.c @@ -30,6 +30,7 @@ #include "gdktypes.h" #include "gdkprivate.h" +#include "gdkalias.h" guint _gdk_debug_flags = 0; gint _gdk_error_code = 0; diff --git a/gdk/gdkpango.c b/gdk/gdkpango.c index 43d2a18b79..a5c971dbcd 100644 --- a/gdk/gdkpango.c +++ b/gdk/gdkpango.c @@ -28,9 +28,8 @@ #include "gdkrgb.h" #include "gdkprivate.h" #include "gdkscreen.h" -#include "gdkalias.h" - #include "gdkintl.h" +#include "gdkalias.h" #define GDK_INFO_KEY "gdk-info" diff --git a/gdk/pltcheck.sh b/gdk/pltcheck.sh new file mode 100755 index 0000000000..ac669998ff --- /dev/null +++ b/gdk/pltcheck.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +LANG=C + +status=0 + +if ! which readelf 2>/dev/null >/dev/null; then + echo "'readelf' not found; skipping test" + exit 0 +fi + +for so in .libs/lib*.so; do + echo Checking $so for local PLT entries + readelf -r $so | grep 'JU\?MP_SLOT' | grep -v 'gdk_pixbuf' | grep gdk && status=1 +done + +exit $status diff --git a/gdk/x11/Makefile.am b/gdk/x11/Makefile.am index a4ee87854c..1730fb34bd 100644 --- a/gdk/x11/Makefile.am +++ b/gdk/x11/Makefile.am @@ -9,7 +9,6 @@ INCLUDES = \ -I$(top_srcdir)/gdk \ -I$(top_builddir)/gdk \ -DGDK_PIXBUF_DISABLE_DEPRECATED \ - -DGDK_DISABLE_DEPRECATED \ $(GTK_DEBUG_FLAGS) \ $(GDK_DEP_CFLAGS) diff --git a/gdk/x11/gdkglobals-x11.c b/gdk/x11/gdkglobals-x11.c index 5332bc5ede..f769caadc1 100644 --- a/gdk/x11/gdkglobals-x11.c +++ b/gdk/x11/gdkglobals-x11.c @@ -29,6 +29,7 @@ #include "gdktypes.h" #include "gdkprivate-x11.h" +#include "gdkalias.h" gboolean _gdk_use_xshm = TRUE; /* used as a cmd line arg */ Display *gdk_display = NULL; diff --git a/gtk/Makefile.am b/gtk/Makefile.am index a514461545..1849efd850 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -33,7 +33,6 @@ INCLUDES = \ -I$(top_srcdir)/gdk-pixbuf -I../gdk-pixbuf \ -DGDK_PIXBUF_DISABLE_DEPRECATED \ -DGDK_DISABLE_DEPRECATED \ - -DGTK_DISABLE_DEPRECATED \ -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED \ -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED \ $(GTK_DEBUG_FLAGS) \ @@ -89,8 +88,15 @@ gtkalias.h: gtk.symbols gtkaliasdef.c: gtk.symbols $(PERL) $(srcdir)/makegtkalias.pl -def < $(srcdir)/gtk.symbols > gtkaliasdef.c +check-aliases: + @$(TESTS_ENVIRONMENT) $(srcdir)/aliasfilescheck.sh + +.PHONY: check-aliases + +TESTS_ENVIRONMENT = gtk_all_c_sources="$(gtk_all_c_sources)" +TESTS = aliasfilescheck.sh if OS_LINUX -TESTS = abicheck.sh +TESTS += abicheck.sh pltcheck.sh endif # libtool stuff: set version and export symbols for resolving @@ -319,7 +325,7 @@ gtk_unix_print_public_h_sources = \ # Installed header files without compatibility guarantees -# that are not include in gtk/gtk.h +# that are not included in gtk/gtk.h gtk_semi_private_h_sources = \ gtktextlayout.h \ gtkfilesystem.h @@ -336,7 +342,11 @@ gtk_private_h_sources = \ gtkfilechooserutils.h \ gtkfilesystemmodel.h \ gtkfilesystemunix.h \ + gtkhsv.h \ gtkiconcache.h \ + gtkintl.h \ + gtkkeyhash.h \ + gtkmnemonichash.h \ gtkpathbar.h \ gtkplugprivate.h \ gtkprintoperation-private.h\ @@ -348,6 +358,7 @@ gtk_private_h_sources = \ gtksequence.h \ gtksocketprivate.h \ gtktextbtree.h \ + gtktextbufferserialize.h\ gtktextchildprivate.h \ gtktextiterprivate.h \ gtktextmarkprivate.h \ @@ -362,7 +373,7 @@ gtk_private_h_sources = \ gtkwindow-decorate.h # GTK+ C sources to build the library from -gtk_c_sources = \ +gtk_base_c_sources = \ fnmatch.c \ gtkaboutdialog.c \ gtkaccelgroup.c \ @@ -440,7 +451,6 @@ gtk_c_sources = \ gtkhscrollbar.c \ gtkhseparator.c \ gtkhsv.c \ - gtkhsv.h \ gtkiconcache.c \ gtkiconfactory.c \ gtkicontheme.c \ @@ -452,12 +462,10 @@ gtk_c_sources = \ gtkimmodule.c \ gtkimmulticontext.c \ gtkinputdialog.c \ - gtkintl.h \ gtkinvisible.c \ gtkitem.c \ gtkitemfactory.c \ gtkkeyhash.c \ - gtkkeyhash.h \ gtklabel.c \ gtklayout.c \ gtklinkbutton.c \ @@ -475,7 +483,6 @@ gtk_c_sources = \ gtkmessagedialog.c \ gtkmisc.c \ gtkmnemonichash.c \ - gtkmnemonichash.h \ gtkmodules.c \ gtknotebook.c \ gtkobject.c \ @@ -535,14 +542,11 @@ gtk_c_sources = \ gtktextbuffer.c \ gtktextbufferrichtext.c \ gtktextbufferserialize.c\ - gtktextbufferserialize.h\ gtktextchild.c \ gtktextdisplay.c \ gtktextiter.c \ - gtktextiterprivate.h \ gtktextlayout.c \ gtktextmark.c \ - gtktextmarkprivate.h \ gtktextsegment.c \ gtktexttag.c \ gtktexttagtable.c \ @@ -584,19 +588,11 @@ gtk_c_sources = \ gtkwidget.c \ gtkwindow-decorate.c \ gtkwindow.c \ - xembed.h \ $(gtk_clipboard_dnd_c_sources) +gtk_c_sources = $(gtk_base_c_sources) +gtk_all_c_sources = $(gtk_base_c_sources) -if OS_UNIX -gtk_private_h_sources += \ - gtkfilesystemunix.h \ - gtkprintbackend.h \ - gtkprinter-private.h \ - gtkprinteroption.h \ - gtkprinteroptionset.h \ - gtkprinteroptionwidget.h - -gtk_c_sources += \ +gtk_os_unix_c_sources = \ gtkfilesystemunix.c \ gtkpagesetupunixdialog.c \ gtkprinter.c \ @@ -607,30 +603,51 @@ gtk_c_sources += \ gtkprintoperation-unix.c \ gtkprintunixdialog.c \ gtkprintbackend.c +gtk_all_c_sources += $(gtk_os_unix_c_sources) +if OS_UNIX +gtk_private_h_sources += \ + gtkfilesystemunix.h \ + gtkprintbackend.h \ + gtkprinter-private.h \ + gtkprinteroption.h \ + gtkprinteroptionset.h \ + gtkprinteroptionwidget.h +gtk_c_sources += $(gtk_os_unix_c_sources) endif -if OS_WIN32 -gtk_private_h_sources += gtkfilesystemwin32.h gtkprint-win32.h - -gtk_c_sources += \ +gtk_os_win32_c_sources = \ gtkfilesystemwin32.c \ gtkprint-win32.c \ gtkprintoperation-win32.c +gtk_all_c_sources += $(gtk_os_win32_c_sources) +if OS_WIN32 +gtk_private_h_sources += gtkfilesystemwin32.h gtkprint-win32.h +gtk_c_sources += $(gtk_os_win32_c_sources) endif -if USE_X11 -gtk_private_h_sources += gtkxembed.h gtktrayicon.h -gtk_c_sources += \ +gtk_use_x11_c_sources = \ gtkplug-x11.c \ gtksocket-x11.c \ gtkxembed.c \ gtktrayicon-x11.c +gtk_use_win32_c_sources = \ + gtkplug-win32.c \ + gtksocket-win32.c \ + gtkwin32embed.c \ + gtkwin32embedwidget.c +gtk_use_stuc_c_sources = \ + gtkplug-stub.c \ + gtksocket-stub.c +gtk_all_c_sources += $(gtk_use_x11_c_sources) $(gtk_use_win32_c_sources) $(gtk_use_stuc_c_sources) +if USE_X11 +gtk_private_h_sources += gtkxembed.h gtktrayicon.h xembed.h +gtk_c_sources += $(gtk_use_x11_c_sources) else if USE_WIN32 gtk_private_h_sources += gtkwin32embed.h gtkwin32embedwidget.h -gtk_c_sources += gtkplug-win32.c gtksocket-win32.c gtkwin32embed.c gtkwin32embedwidget.c +gtk_c_sources += $(gtk_use_win32_c_sources) else -gtk_c_sources += gtkplug-stub.c gtksocket-stub.c +gtk_c_sources += $(gtk_use_stub_c_sources) endif endif @@ -653,7 +670,7 @@ gtk_built_public_sources = \ gtkmarshal.h \ gtktypebuiltins.h -# built sources that don't get installed +# built headers that don't get installed gtk_built_private_headers = \ gtkalias.h \ gtkmarshalers.h \ @@ -663,7 +680,6 @@ gtk_built_sources = \ gtkaliasdef.c \ gtktypebuiltins.c \ gtkmarshalers.c \ - gtkmarshalers.h \ gtkmarshal.c \ ${gtk_built_private_headers} \ ${gtk_built_public_sources} @@ -717,7 +733,9 @@ stamp-gtkmarshalers.h: @REBUILD@ gtkmarshalers.list && rm -f xgen-gmlh \ && echo timestamp > $(@F) gtkmarshalers.c: @REBUILD@ gtkmarshalers.list - (echo "#include \"gtkalias.h\""; $(GLIB_GENMARSHAL) --prefix=_gtk_marshal $(srcdir)/gtkmarshalers.list --body) >> xgen-gmlc \ + (echo "#include \"gtkmarshalers.h\""; \ + echo "#include \"gtkalias.h\""; \ + $(GLIB_GENMARSHAL) --prefix=_gtk_marshal $(srcdir)/gtkmarshalers.list --body) >> xgen-gmlc \ && cp xgen-gmlc gtkmarshalers.c \ && rm -f xgen-gmlc @@ -731,7 +749,11 @@ stamp-gtkmarshal.h: @REBUILD@ gtkmarshal.list && rm -f xgen-gmh \ && echo timestamp > $(@F) gtkmarshal.c: @REBUILD@ gtkmarshal.list - (echo "#include \"gtkalias.h\""; $(GLIB_GENMARSHAL) --prefix=gtk_marshal $(srcdir)/gtkmarshal.list --body) >> xgen-gmc \ + (echo "#include \"gtkmarshal.h\""; \ + echo "#include \"gtkalias.h\""; \ + $(GLIB_GENMARSHAL) --prefix=gtk_marshal $(srcdir)/gtkmarshal.list --body; \ + echo "#define __gtk_marshal_MARSHAL_C__"; \ + echo "#include \"gtkaliasdef.c\"") >> xgen-gmc \ && cp xgen-gmc gtkmarshal.c \ && rm -f xgen-gmc diff --git a/gtk/abicheck.sh b/gtk/abicheck.sh index b1c27f3451..f657d465cf 100755 --- a/gtk/abicheck.sh +++ b/gtk/abicheck.sh @@ -2,4 +2,4 @@ cpp -DINCLUDE_VARIABLES -P -DG_OS_UNIX -DGTK_WINDOWING_X11 -DALL_FILES ${srcdir:-.}/gtk.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE//' | sort > expected-abi nm -D -g --defined-only .libs/libgtk-x11-2.0.so | cut -d ' ' -f 3 | sort > actual-abi -diff -u expected-abi actual-abi && rm expected-abi actual-abi +diff -u expected-abi actual-abi && rm -f expected-abi actual-abi diff --git a/gtk/aliasfilescheck.sh b/gtk/aliasfilescheck.sh new file mode 100755 index 0000000000..f350663fb7 --- /dev/null +++ b/gtk/aliasfilescheck.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +if test "x$gtk_all_c_sources" = x; then + echo gtk_all_c_sources variable not defined + exit 1 +fi + +grep 'IN_FILE' gtk.symbols | sed 's/.*(//;s/).*//' | grep __ | sort -u > expected-files +grep '^ *# *define __' $gtk_all_c_sources | sed 's/.*define //;s/ *$//' | sort > actual-files + +diff expected-files actual-files && rm -f expected-files actual-files + diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols index b90c633275..001ef33110 100644 --- a/gtk/gtk.symbols +++ b/gtk/gtk.symbols @@ -596,8 +596,8 @@ gtk_check_button_new_with_mnemonic #endif #endif -#if IN_HEADER(__GTK_MENU_CHECK_ITEM_H__) -#if IN_FILE(__GTK_MENU_CHECK_ITEM_C__) +#if IN_HEADER(__GTK_CHECK_MENU_ITEM_H__) +#if IN_FILE(__GTK_CHECK_MENU_ITEM_C__) gtk_check_menu_item_get_active gtk_check_menu_item_get_draw_as_radio gtk_check_menu_item_get_inconsistent @@ -884,8 +884,8 @@ gtk_container_unset_focus_chain #endif #endif -#if IN_HEADER(__C_TREE_H__) -#if IN_FILE(__G_TREE_C__) +#if IN_HEADER(__GTK_CTREE_H__) +#if IN_FILE(__GTK_CTREE_C__) #ifndef GTK_DISABLE_DEPRECATED gtk_ctree_collapse gtk_ctree_collapse_recursive @@ -1477,7 +1477,6 @@ gtk_file_system_unix_new #ifdef G_OS_WIN32 gtk_file_system_win32_get_type G_GNUC_CONST gtk_file_system_win32_new -_gtk_file_system_win32_path_compare #endif #endif #endif @@ -1537,8 +1536,8 @@ gtk_font_button_set_use_size #endif #endif -#if IN_HEADER(__GTK_FONSEL_H__) -#if IN_FILE(__GTK_FONSEL_C__) +#if IN_HEADER(__GTK_FONTSEL_H__) +#if IN_FILE(__GTK_FONTSEL_C__) gtk_font_selection_dialog_get_font_name gtk_font_selection_dialog_get_preview_text gtk_font_selection_dialog_get_type G_GNUC_CONST @@ -1939,7 +1938,7 @@ gtk_item_toggle #endif #endif -#if IN_HEADER(__GTK_ITEM__FACTORY_H__) +#if IN_HEADER(__GTK_ITEM_FACTORY_H__) #if IN_FILE(__GTK_ITEM_FACTORY_C__) #ifndef GTK_DISABLE_DEPRECATED gtk_item_factories_path_delete @@ -2189,6 +2188,7 @@ gtk_input_dialog_new #if IN_HEADER(__gtk_marshal_MARSHAL_H__) #if IN_FILE(__gtk_marshal_MARSHAL_C__) +#ifndef GTK_DISABLE_DEPRECATED gtk_marshal_BOOLEAN__POINTER gtk_marshal_BOOLEAN__POINTER_INT_INT gtk_marshal_BOOLEAN__POINTER_INT_INT_UINT @@ -2217,6 +2217,7 @@ gtk_marshal_VOID__UINT_POINTER_UINT_UINT_ENUM gtk_marshal_VOID__UINT_STRING #endif #endif +#endif #if IN_HEADER(__GTK_MENU_BAR_H__) #if IN_FILE(__GTK_MENU_BAR_C__) @@ -4371,19 +4372,21 @@ gtk_vbox_new #endif #endif -#if IN_HEADER(__GTK_VBUTTONBOX_H__) -#if IN_FILE(__GTK_VBUTTONBOX_C__) +#if IN_HEADER(__GTK_VBBOX_H__) +#if IN_FILE(__GTK_VBBOX_C__) +#ifndef GTK_DISABLE_DEPRECATED gtk_vbutton_box_get_layout_default gtk_vbutton_box_get_spacing_default -gtk_vbutton_box_get_type G_GNUC_CONST -gtk_vbutton_box_new gtk_vbutton_box_set_layout_default gtk_vbutton_box_set_spacing_default #endif +gtk_vbutton_box_get_type G_GNUC_CONST +gtk_vbutton_box_new +#endif #endif -#if IN_HEADER(__GTK_VIEPORT_H__) -#if IN_FILE(__GTK_VIEPORT_C__) +#if IN_HEADER(__GTK_VIEWPORT_H__) +#if IN_FILE(__GTK_VIEWPORT_C__) gtk_viewport_get_hadjustment gtk_viewport_get_shadow_type gtk_viewport_get_type G_GNUC_CONST @@ -4687,6 +4690,14 @@ gtk_window_unstick #endif #endif +#if IN_HEADER(__GTK_WIN32_EMBED_WIDGET_H__) +#if IN_FILE(__GTK_WIN32_EMBED_WIDGET_C__) +#ifdef G_OS_WIN32 +gtk_win32_embed_widget_get_type G_GNUC_CONST +#endif +#endif +#endif + #ifdef INCLUDE_VARIABLES gtk_binary_age gtk_interface_age diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c index 7e75fd1549..13762a0604 100644 --- a/gtk/gtkcalendar.c +++ b/gtk/gtkcalendar.c @@ -49,7 +49,6 @@ #undef GTK_DISABLE_DEPRECATED #include "gtkcalendar.h" -#define GTK_DISABLE_DEPRECATED #include "gtkdnd.h" #include "gtkintl.h" diff --git a/gtk/gtkclipboard-quartz.c b/gtk/gtkclipboard-quartz.c index ba87b42973..2922a4ccff 100644 --- a/gtk/gtkclipboard-quartz.c +++ b/gtk/gtkclipboard-quartz.c @@ -30,10 +30,9 @@ #include "gtkmain.h" #include "gtkmarshalers.h" #include "gtkintl.h" -#include "gtkalias.h" #include "gtktextbuffer.h" - #include "gtkquartz.h" +#include "gtkalias.h" enum { OWNER_CHANGE, diff --git a/gtk/gtkdnd-quartz.c b/gtk/gtkdnd-quartz.c index 1f2f72cf47..606aaf0856 100644 --- a/gtk/gtkdnd-quartz.c +++ b/gtk/gtkdnd-quartz.c @@ -43,9 +43,8 @@ #include "gtkstock.h" #include "gtkwindow.h" #include "gtkintl.h" -#include "gtkalias.h" - #include "gtkquartz.h" +#include "gtkalias.h" #include "gdk/quartz/gdkquartz.h" typedef struct _GtkDragSourceSite GtkDragSourceSite; diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index 0d0f056b67..71376c6d54 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -43,6 +43,7 @@ #include "gtkstock.h" #include "gtkwindow.h" #include "gtkintl.h" +#include "gtkdndcursors.h" #include "gtkalias.h" static GSList *source_widgets = NULL; @@ -300,8 +301,6 @@ static void set_icon_stock_pixbuf (GdkDragContext *context, * Cursor and Icon data * ************************/ -#include "gtkdndcursors.h" - static struct { GdkDragAction action; const gchar *name; diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c index ce454a372b..a1a321d3cf 100644 --- a/gtk/gtkexpander.c +++ b/gtk/gtkexpander.c @@ -32,8 +32,8 @@ #include "gtkintl.h" #include "gtkprivate.h" #include <gdk/gdkkeysyms.h> -#include "gtkalias.h" #include "gtkdnd.h" +#include "gtkalias.h" #define GTK_EXPANDER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GTK_TYPE_EXPANDER, GtkExpanderPrivate)) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 74d2dc5439..e580f894dc 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -8670,6 +8670,3 @@ shortcuts_model_filter_new (GtkFileChooserDefault *impl, return GTK_TREE_MODEL (model); } - -#define __GTK_FILE_CHOOSER_DEFAULT_C__ -#include "gtkaliasdef.c" diff --git a/gtk/gtkfilechooserembed.c b/gtk/gtkfilechooserembed.c index b3d4414f91..68415b459a 100644 --- a/gtk/gtkfilechooserembed.c +++ b/gtk/gtkfilechooserembed.c @@ -219,6 +219,3 @@ _gtk_file_chooser_embed_get_resizable_hints (GtkFileChooserEmbed *chooser_embed, GTK_FILE_CHOOSER_EMBED_GET_IFACE (chooser_embed)->get_resizable_hints (chooser_embed, resize_horizontally, resize_vertically); } - -#define __GTK_FILE_CHOOSER_EMBED_C__ -#include "gtkaliasdef.c" diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c index 221230483b..4beaf1a791 100644 --- a/gtk/gtkfilechooserentry.c +++ b/gtk/gtkfilechooserentry.c @@ -1075,6 +1075,3 @@ _gtk_file_chooser_entry_get_is_folder (GtkFileChooserEntry *chooser_entry, return retval; } - -#define __GTK_FILE_CHOOSER_ENTRY_C__ -#include "gtkaliasdef.c" diff --git a/gtk/gtkfilechoosersettings.c b/gtk/gtkfilechoosersettings.c index ac1a15bafd..dcd769220b 100644 --- a/gtk/gtkfilechoosersettings.c +++ b/gtk/gtkfilechoosersettings.c @@ -34,6 +34,7 @@ #include <string.h> #include <glib/gi18n-lib.h> #include "gtkfilechoosersettings.h" +#include "gtkalias.h" /* Increment this every time you change the configuration format */ #define CONFIG_VERSION 0 diff --git a/gtk/gtkfilechooserutils.c b/gtk/gtkfilechooserutils.c index cbdf713769..a7220c1967 100644 --- a/gtk/gtkfilechooserutils.c +++ b/gtk/gtkfilechooserutils.c @@ -360,6 +360,3 @@ delegate_confirm_overwrite (GtkFileChooser *chooser, g_signal_emit_by_name (data, "confirm-overwrite", &conf); return conf; } - -#define __GTK_FILE_CHOOSER_UTILS_C__ -#include "gtkaliasdef.c" diff --git a/gtk/gtkfilesel.c b/gtk/gtkfilesel.c index aa7fed04c3..4cd5ee5037 100644 --- a/gtk/gtkfilesel.c +++ b/gtk/gtkfilesel.c @@ -78,7 +78,6 @@ #undef GTK_DISABLE_DEPRECATED #include "gtkoptionmenu.h" -#define GTK_DISABLE_DEPRECATED #define WANT_HPANED 1 #include "gtkhpaned.h" diff --git a/gtk/gtkfilesystem.c b/gtk/gtkfilesystem.c index 7e10039871..ce256c1f4a 100644 --- a/gtk/gtkfilesystem.c +++ b/gtk/gtkfilesystem.c @@ -24,8 +24,8 @@ #include "gtkicontheme.h" #include "gtkmodules.h" #include "gtkintl.h" -#include "gtkalias.h" #include "gtkstock.h" +#include "gtkalias.h" #include <string.h> diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c index a85ad7af87..754d0cc36b 100644 --- a/gtk/gtkfilesystemmodel.c +++ b/gtk/gtkfilesystemmodel.c @@ -2021,6 +2021,3 @@ root_files_removed_callback (GtkFileFolder *folder, { do_files_removed (model, NULL, paths); } - -#define __GTK_FILE_SYSTEM_MODEL_C__ -#include "gtkaliasdef.c" diff --git a/gtk/gtkiconcache.c b/gtk/gtkiconcache.c index 55559aac12..4e4e7b655f 100644 --- a/gtk/gtkiconcache.c +++ b/gtk/gtkiconcache.c @@ -21,6 +21,8 @@ #include "gtkdebug.h" #include "gtkiconcache.h" +#include "gtkalias.h" + #include <glib/gstdio.h> #include <gdk-pixbuf/gdk-pixdata.h> diff --git a/gtk/gtkinputdialog.c b/gtk/gtkinputdialog.c index ee685dd0b3..00d3ed8ddf 100644 --- a/gtk/gtkinputdialog.c +++ b/gtk/gtkinputdialog.c @@ -52,7 +52,6 @@ #undef GTK_DISABLE_DEPRECATED #include "gtkoptionmenu.h" -#define GTK_DISABLE_DEPRECATED #include "gtkintl.h" #include "gtkalias.h" diff --git a/gtk/gtkitemfactory.c b/gtk/gtkitemfactory.c index 98145a9c7f..55aff410ef 100644 --- a/gtk/gtkitemfactory.c +++ b/gtk/gtkitemfactory.c @@ -32,7 +32,6 @@ #undef GTK_DISABLE_DEPRECATED #include "gtkitemfactory.h" #include "gtkoptionmenu.h" -#define GTK_DISABLE_DEPRECATED #include "gtkmenubar.h" #include "gtkmenu.h" #include "gtkmenuitem.h" @@ -54,7 +53,7 @@ #endif #include <stdio.h> -#include "gtkalias.h" +#include "gtkalias.h" /* --- defines --- */ #define ITEM_FACTORY_STRING ((gchar*) item_factory_string) diff --git a/gtk/gtkmnemonichash.c b/gtk/gtkmnemonichash.c index 705484aded..51a9514510 100644 --- a/gtk/gtkmnemonichash.c +++ b/gtk/gtkmnemonichash.c @@ -20,6 +20,7 @@ */ #include "gtkmnemonichash.h" +#include "gtkalias.h" struct _GtkMnemnonicHash { diff --git a/gtk/gtkmodules.c b/gtk/gtkmodules.c index 6430cf6e66..97944f13b0 100644 --- a/gtk/gtkmodules.c +++ b/gtk/gtkmodules.c @@ -27,6 +27,7 @@ #include "gtkdebug.h" #include "gtkprivate.h" /* GTK_LIBDIR */ #include "gtkintl.h" +#include "gtkalias.h" #include <gmodule.h> #include <pango/pango-utils.h> /* For pango_split_file_list */ diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 18be2a7fe8..66c44d29d9 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -37,8 +37,8 @@ #include "gtkmarshalers.h" #include "gtkbindings.h" #include "gtkprivate.h" -#include "gtkalias.h" #include "gtkdnd.h" +#include "gtkalias.h" #define SCROLL_DELAY_FACTOR 5 #define SCROLL_THRESHOLD 12 diff --git a/gtk/gtkoptionmenu.c b/gtk/gtkoptionmenu.c index 911db07c5c..69e10495c4 100644 --- a/gtk/gtkoptionmenu.c +++ b/gtk/gtkoptionmenu.c @@ -33,7 +33,6 @@ #undef GTK_DISABLE_DEPRECATED #include "gtkoptionmenu.h" -#define GTK_DISABLE_DEPRECATED #include "gtkprivate.h" #include "gtkalias.h" diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c index 5cd240cee6..2f953faec2 100644 --- a/gtk/gtkpathbar.c +++ b/gtk/gtkpathbar.c @@ -1658,3 +1658,6 @@ _gtk_path_bar_down (GtkPathBar *path_bar) } } } + +#define __GTK_PATH_BAR_C__ +#include "gtkaliasdef.c" diff --git a/gtk/gtkpathbar.h b/gtk/gtkpathbar.h index 9474427b59..3d32bbaad8 100644 --- a/gtk/gtkpathbar.h +++ b/gtk/gtkpathbar.h @@ -17,8 +17,8 @@ * Boston, MA 02111-1307, USA. */ -#ifndef __GTK_PATH_BAR__ -#define __GTK_PATH_BAR__ +#ifndef __GTK_PATH_BAR_H__ +#define __GTK_PATH_BAR_H__ #include "gtkcontainer.h" #include "gtkfilesystem.h" @@ -91,4 +91,4 @@ void _gtk_path_bar_down (GtkPathBar *path_bar); G_END_DECLS -#endif /* __GTK_PATH_BAR__ */ +#endif /* __GTK_PATH_BAR_H__ */ diff --git a/gtk/gtkplug-stub.c b/gtk/gtkplug-stub.c index 3bd1024aab..92c5f10956 100644 --- a/gtk/gtkplug-stub.c +++ b/gtk/gtkplug-stub.c @@ -27,6 +27,7 @@ #include "gtkplug.h" #include "gtkplugprivate.h" +#include "gtkalias.h" GdkNativeWindow _gtk_plug_windowing_get_id (GtkPlug *plug) diff --git a/gtk/gtkplug-win32.c b/gtk/gtkplug-win32.c index bcbc5093a5..58f62c9ee2 100644 --- a/gtk/gtkplug-win32.c +++ b/gtk/gtkplug-win32.c @@ -33,6 +33,7 @@ #include "win32/gdkwin32.h" #include "gtkwin32embed.h" +#include "gtkalias.h" #if defined(_MSC_VER) && (WINVER < 0x0500) #ifndef GA_PARENT diff --git a/gtk/gtkplug-x11.c b/gtk/gtkplug-x11.c index ae687a05d8..0ba2f5807c 100644 --- a/gtk/gtkplug-x11.c +++ b/gtk/gtkplug-x11.c @@ -25,7 +25,6 @@ * GTK+ at ftp://ftp.gtk.org/pub/gtk/. */ -#include "gtkalias.h" #include "gtkmain.h" #include "gtkmarshalers.h" #include "gtkplug.h" @@ -35,6 +34,7 @@ #include "x11/gdkx.h" #include "gtkxembed.h" +#include "gtkalias.h" static void xembed_set_info (GdkWindow *window, unsigned long flags); diff --git a/gtk/gtkprintoperation-unix.c b/gtk/gtkprintoperation-unix.c index 8461bb5ae5..2739f1de5f 100644 --- a/gtk/gtkprintoperation-unix.c +++ b/gtk/gtkprintoperation-unix.c @@ -44,8 +44,8 @@ #include "gtkprinter-private.h" #include "gtkprintjob.h" #include "gtklabel.h" -#include "gtkalias.h" #include "gtkintl.h" +#include "gtkalias.h" typedef struct { diff --git a/gtk/gtkprintoperation-win32.c b/gtk/gtkprintoperation-win32.c index f47f763dc6..159ed6d2ed 100644 --- a/gtk/gtkprintoperation-win32.c +++ b/gtk/gtkprintoperation-win32.c @@ -40,9 +40,9 @@ #include "gtkinvisible.h" #include "gtkplug.h" #include "gtkstock.h" -#include "gtkalias.h" #include "gtk.h" #include "gtkwin32embedwidget.h" +#include "gtkalias.h" #define MAX_PAGE_RANGES 20 #define STATUS_POLLING_TIME 2000 @@ -1909,3 +1909,6 @@ gtk_print_run_page_setup_dialog_async (GtkWindow *parent, done_cb (new_page_setup, data); g_object_unref (new_page_setup); } + +#define __GTK_PRINT_OPERATION_WIN32_C__ +#include "gtkaliasdef.c" diff --git a/gtk/gtkprintutils.c b/gtk/gtkprintutils.c index dced6e8a4d..33896a55a5 100644 --- a/gtk/gtkprintutils.c +++ b/gtk/gtkprintutils.c @@ -20,6 +20,7 @@ #include "config.h" #include "gtkprintutils.h" +#include "gtkalias.h" gdouble _gtk_print_convert_to_mm (gdouble len, diff --git a/gtk/gtkprogress.c b/gtk/gtkprogress.c index 09a89dfab8..a9f3f44102 100644 --- a/gtk/gtkprogress.c +++ b/gtk/gtkprogress.c @@ -29,7 +29,6 @@ #include <string.h> #undef GTK_DISABLE_DEPRECATED #include "gtkprogress.h" -#define GTK_DISABLE_DEPRECATED #include "gtkprivate.h" #include "gtkintl.h" #include "gtkalias.h" diff --git a/gtk/gtkquartz.c b/gtk/gtkquartz.c index 57556643cf..ed3c65255b 100644 --- a/gtk/gtkquartz.c +++ b/gtk/gtkquartz.c @@ -21,6 +21,7 @@ #include <config.h> #include "gtkquartz.h" +#include "gtkalias.h" NSImage * _gtk_quartz_create_image_from_pixbuf (GdkPixbuf *pixbuf) diff --git a/gtk/gtkrecentchooserdefault.c b/gtk/gtkrecentchooserdefault.c index de89c664d6..c56e1722c9 100644 --- a/gtk/gtkrecentchooserdefault.c +++ b/gtk/gtkrecentchooserdefault.c @@ -2069,6 +2069,3 @@ _gtk_recent_chooser_default_new (GtkRecentManager *manager) "recent-manager", manager, NULL); } - -#define __GTK_RECENT_CHOOSER_DEFAULT_C__ -#include "gtkaliasdef.c" diff --git a/gtk/gtkrecentchooserutils.c b/gtk/gtkrecentchooserutils.c index 366e8e648e..f931486c6c 100644 --- a/gtk/gtkrecentchooserutils.c +++ b/gtk/gtkrecentchooserutils.c @@ -27,6 +27,7 @@ #include "config.h" #include "gtkrecentchooserutils.h" +#include "gtkalias.h" /* Methods */ static void delegate_set_sort_func (GtkRecentChooser *chooser, diff --git a/gtk/gtksequence.c b/gtk/gtksequence.c index ce39370788..64e3784b01 100644 --- a/gtk/gtksequence.c +++ b/gtk/gtksequence.c @@ -20,6 +20,7 @@ #include <glib.h> #include "gtksequence.h" +#include "gtkalias.h" typedef struct _GtkSequenceNode GtkSequenceNode; diff --git a/gtk/gtksignal.c b/gtk/gtksignal.c index 36c1af79ff..2132088b84 100644 --- a/gtk/gtksignal.c +++ b/gtk/gtksignal.c @@ -21,7 +21,7 @@ #include <config.h> #include "gtksignal.h" -#include "gtkalias.h" +#include "gtkalias.h" /* the real parameter limit is of course given by GSignal, bu we need * an upper limit for the implementations. so this should be adjusted diff --git a/gtk/gtksocket-stub.c b/gtk/gtksocket-stub.c index b839048b88..fbc8aedcfd 100644 --- a/gtk/gtksocket-stub.c +++ b/gtk/gtksocket-stub.c @@ -27,6 +27,7 @@ #include "gtksocket.h" #include "gtksocketprivate.h" +#include "gtkalias.h" GdkNativeWindow _gtk_socket_windowing_get_id (GtkSocket *socket) diff --git a/gtk/gtksocket-win32.c b/gtk/gtksocket-win32.c index 4db3957756..3524a1f7ec 100644 --- a/gtk/gtksocket-win32.c +++ b/gtk/gtksocket-win32.c @@ -38,6 +38,7 @@ #include "win32/gdkwin32.h" #include "gtkwin32embed.h" +#include "gtkalias.h" GdkNativeWindow _gtk_socket_windowing_get_id (GtkSocket *socket) diff --git a/gtk/gtkstatusicon.c b/gtk/gtkstatusicon.c index 9b1b6cfd11..92d31b7722 100755 --- a/gtk/gtkstatusicon.c +++ b/gtk/gtkstatusicon.c @@ -39,8 +39,6 @@ #include "gtkprivate.h" #include "gtkwidget.h" -#include "gtkalias.h" - #ifdef GDK_WINDOWING_WIN32 #include "gtkicontheme.h" #include "gtklabel.h" @@ -49,6 +47,8 @@ #define WM_GTK_TRAY_NOTIFICATION (WM_USER+1) #endif +#include "gtkalias.h" + #define BLINK_TIMEOUT 500 enum diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c index 1d10533a06..fed5bf7a89 100644 --- a/gtk/gtkstyle.c +++ b/gtk/gtkstyle.c @@ -32,7 +32,6 @@ #include "gtkmarshalers.h" #undef GTK_DISABLE_DEPRECATED #include "gtkoptionmenu.h" -#define GTK_DISABLE_DEPRECATED #include "gtkrc.h" #include "gtkspinbutton.h" #include "gtkstyle.h" diff --git a/gtk/gtktextbufferrichtext.c b/gtk/gtktextbufferrichtext.c index cdac9d432e..941d023a74 100644 --- a/gtk/gtktextbufferrichtext.c +++ b/gtk/gtktextbufferrichtext.c @@ -25,8 +25,8 @@ #include "gtktextbufferrichtext.h" #include "gtktextbufferserialize.h" -#include "gtkalias.h" #include "gtkintl.h" +#include "gtkalias.h" typedef struct diff --git a/gtk/gtktextbufferserialize.c b/gtk/gtktextbufferserialize.c index cacf6c61d1..217208c4b4 100644 --- a/gtk/gtktextbufferserialize.c +++ b/gtk/gtktextbufferserialize.c @@ -31,8 +31,8 @@ #include "gdk-pixbuf/gdk-pixdata.h" #include "gtktextbufferserialize.h" - #include "gtkintl.h" +#include "gtkalias.h" typedef struct diff --git a/gtk/gtktipsquery.c b/gtk/gtktipsquery.c index 042365d890..f6e482aa33 100644 --- a/gtk/gtktipsquery.c +++ b/gtk/gtktipsquery.c @@ -36,7 +36,7 @@ #include "gtkmain.h" #include "gtkmarshalers.h" #include "gtkintl.h" -#include "gtkalias.h" +#include "gtkalias.h" diff --git a/gtk/gtktoolitem.c b/gtk/gtktoolitem.c index 2cc39f264a..c48b7dfe0f 100644 --- a/gtk/gtktoolitem.c +++ b/gtk/gtktoolitem.c @@ -27,8 +27,8 @@ #include "gtkseparatormenuitem.h" #include "gtkintl.h" #include "gtkmain.h" -#include "gtkalias.h" #include "gtkprivate.h" +#include "gtkalias.h" #include <string.h> diff --git a/gtk/gtktreemodelfilter.c b/gtk/gtktreemodelfilter.c index 6f0b16317d..184309981a 100644 --- a/gtk/gtktreemodelfilter.c +++ b/gtk/gtktreemodelfilter.c @@ -22,8 +22,8 @@ #include "gtktreemodelfilter.h" #include "gtkintl.h" #include "gtktreednd.h" -#include "gtkalias.h" #include "gtkprivate.h" +#include "gtkalias.h" #include <string.h> /* ITER FORMAT: diff --git a/gtk/gtkvbbox.c b/gtk/gtkvbbox.c index 076e6e9f79..4f5957cd6c 100644 --- a/gtk/gtkvbbox.c +++ b/gtk/gtkvbbox.c @@ -277,5 +277,5 @@ gtk_vbutton_box_size_allocate (GtkWidget *widget, } } -#define __GTK_VBBOX_C__ +#define __GTK_VBBOX_C__ #include "gtkaliasdef.c" diff --git a/gtk/gtkvbbox.h b/gtk/gtkvbbox.h index 7889440485..8c21273c97 100644 --- a/gtk/gtkvbbox.h +++ b/gtk/gtkvbbox.h @@ -24,8 +24,8 @@ * GTK+ at ftp://ftp.gtk.org/pub/gtk/. */ -#ifndef __GTK_VBUTTON_BOX_H__ -#define __GTK_VBUTTON_BOX_H__ +#ifndef __GTK_VBBOX_H__ +#define __GTK_VBBOX_H__ #include <gtk/gtkbbox.h> @@ -73,4 +73,4 @@ void gtk_vbutton_box_set_layout_default (GtkButtonBoxStyle layout); G_END_DECLS -#endif /* __GTK_VBUTTON_BOX_H__ */ +#endif /* __GTK_VBBOX_H__ */ diff --git a/gtk/gtkwin32embed.c b/gtk/gtkwin32embed.c index 609ec5b1cb..ce1f3d8490 100644 --- a/gtk/gtkwin32embed.c +++ b/gtk/gtkwin32embed.c @@ -26,6 +26,8 @@ #include "gtkwin32embed.h" +#include "gtkalias.h" + static guint message_type[GTK_WIN32_EMBED_LAST]; static GSList *current_messages; @@ -130,6 +132,3 @@ _gtk_win32_embed_get_focus_wrapped (void) return (msg->lParam & GTK_WIN32_EMBED_FOCUS_WRAPAROUND) != 0; } - - - diff --git a/gtk/makegtkalias.pl b/gtk/makegtkalias.pl index 3011a577cc..a38afbe01b 100755 --- a/gtk/makegtkalias.pl +++ b/gtk/makegtkalias.pl @@ -16,11 +16,6 @@ print <<EOF; #ifdef G_HAVE_GNUC_VISIBILITY -#ifndef GTK_DISABLE_DEPRECATED -#define GTK_DISABLE_DEPRECATED -#define REENABLE_DEPRECATED -#endif - EOF if ($do_def) { @@ -134,10 +129,6 @@ EOF } print <<EOF; -#ifdef REENABLE_DEPRECATED -#undef GTK_DISABLE_DEPRECATED -#endif - #endif /* G_HAVE_GNUC_VISIBILITY */ #endif /* DISABLE_VISIBILITY */ EOF diff --git a/gtk/pltcheck.sh b/gtk/pltcheck.sh new file mode 100755 index 0000000000..d8718cef9d --- /dev/null +++ b/gtk/pltcheck.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +LANG=C + +status=0 + +if ! which readelf 2>/dev/null >/dev/null; then + echo "'readelf' not found; skipping test" + exit 0 +fi + +for so in .libs/lib*.so; do + echo Checking $so for local PLT entries + readelf -r $so | grep 'JU\?MP_SLOT' | grep '\<gtk' && status=1 +done + +exit $status |