From f4378aa19e250862197d6caad17030b3e1f0cd9e Mon Sep 17 00:00:00 2001 From: John Ralls Date: Fri, 18 May 2012 13:58:24 -0700 Subject: [PATCH 1/1] Disable documentation of gtk_plug_get_type and gtk_socket_get_type for quartz They're not built for quartz and consequently can't be introspected. --- configure.ac | 4 +++- docs/reference/gtk/gtk3.types.in | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 34fc68706..122de29b3 100644 --- a/configure.ac +++ b/configure.ac @@ -361,12 +361,14 @@ else AM_CONDITIONAL(USE_WIN32, false) fi +DISABLE_ON_QUARTZ='' if test "x$enable_quartz_backend" = xyes; then cairo_backends="$cairo_backends cairo-quartz" GDK_BACKENDS="$GDK_BACKENDS quartz" GDK_WINDOWING="$GDK_WINDOWING #define GDK_WINDOWING_QUARTZ" GDK_EXTRA_LIBS="$GDK_EXTRA_LIBS -framework Cocoa" + DISABLE_ON_QUARTZ='%' AM_CONDITIONAL(USE_QUARTZ, true) if test "x$quartz_relocation" = xyes; then AC_DEFINE([QUARTZ_RELOCATION], [1], [Use NSBundle functions to determine load paths for libraries, translations, etc.]) @@ -375,7 +377,7 @@ if test "x$enable_quartz_backend" = xyes; then else AM_CONDITIONAL(USE_QUARTZ, false) fi - +AC_SUBST(DISABLE_ON_QUARTZ) if test "x$enable_broadway_backend" == xyes; then GDK_BACKENDS="$GDK_BACKENDS broadway" diff --git a/docs/reference/gtk/gtk3.types.in b/docs/reference/gtk/gtk3.types.in index c056794a6..5b9b3bd01 100644 --- a/docs/reference/gtk/gtk3.types.in +++ b/docs/reference/gtk/gtk3.types.in @@ -118,7 +118,7 @@ gtk_page_setup_get_type @DISABLE_ON_W32@gtk_page_setup_unix_dialog_get_type gtk_paned_get_type gtk_paper_size_get_type -@DISABLE_ON_W32@gtk_plug_get_type +@DISABLE_ON_W32@@DISABLE_ON_QUARTZ@gtk_plug_get_type @DISABLE_ON_W32@gtk_printer_get_type gtk_print_context_get_type @DISABLE_ON_W32@gtk_print_job_get_type @@ -149,7 +149,7 @@ gtk_separator_menu_item_get_type gtk_separator_tool_item_get_type gtk_settings_get_type gtk_size_group_get_type -@DISABLE_ON_W32@gtk_socket_get_type +@DISABLE_ON_W32@@DISABLE_ON_QUARTZ@gtk_socket_get_type gtk_spin_button_get_type gtk_spinner_get_type gtk_statusbar_get_type -- 2.43.2