[gtk+] Fix generation of plug/socket docs



commit e86f979e45a4343ccce2e6fe0f99b2f7ee04abdc
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Oct 6 15:49:00 2013 -0400

    Fix generation of plug/socket docs
    
    The docs for GtkPlug/GtkSocket were not generated if any
    of the win32, quartz, wayland backends were enabled. What
    we really mean though, is that we want the docs to be generated
    whenever GtkPlug/GtkSocket are included in the library, which
    is when the x11 backend is enabled.

 configure.ac                     |    6 +++---
 docs/reference/gtk/gtk3.types.in |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 73a2c47..40dcb04 100644
--- a/configure.ac
+++ b/configure.ac
@@ -332,6 +332,7 @@ GDK_EXTRA_CFLAGS=
 GDK_WINDOWING=
 PANGO_PACKAGES="pango pangocairo"
 
+ENABLE_ON_X11='%'
 if test "$enable_x11_backend" = "yes"; then
   # GDK calls the xlib backend "x11," cairo calls it "xlib." Other
   # backend names are identical.
@@ -343,7 +344,9 @@ if test "$enable_x11_backend" = "yes"; then
   backend_immodules="$backend_immodules,xim"
   GDK_WINDOWING="$GDK_WINDOWING
 #define GDK_WINDOWING_X11"
+  ENABLE_ON_X11=''
 fi
+AC_SUBST(ENABLE_ON_X11)
 
 if test "$enable_win32_backend" = "yes"; then
   cairo_backends="$cairo_backends cairo-win32"
@@ -409,7 +412,6 @@ if test "$enable_wayland_backend" = "maybe" ; then
   AC_MSG_RESULT($enable_wayland_backend)
 fi
 
-DISABLE_ON_WAYLAND=''
 if test "$enable_wayland_backend" = "yes"; then
   # For the cairo image backend
   cairo_backends="$cairo_backends cairo"
@@ -417,7 +419,6 @@ if test "$enable_wayland_backend" = "yes"; then
   have_gio_unix=yes
   GDK_WINDOWING="$GDK_WINDOWING
 #define GDK_WINDOWING_WAYLAND"
-  DISABLE_ON_WAYLAND='%'
   WAYLAND_PACKAGES="$WAYLAND_DEPENDENCIES"
   AC_PATH_PROG([WAYLAND_SCANNER],[wayland-scanner],[no])
   AS_IF([test "x$WAYLAND_SCANNER" = "xno"],
@@ -428,7 +429,6 @@ if test "$enable_wayland_backend" = "yes"; then
 else
   AM_CONDITIONAL(USE_WAYLAND, false)
 fi
-AC_SUBST(DISABLE_ON_WAYLAND)
 
 # strip leading space
 GDK_BACKENDS=${GDK_BACKENDS#* }
diff --git a/docs/reference/gtk/gtk3.types.in b/docs/reference/gtk/gtk3.types.in
index 6c37354..2d8b44a 100644
--- a/docs/reference/gtk/gtk3.types.in
+++ b/docs/reference/gtk/gtk3.types.in
@@ -123,7 +123,7 @@ gtk_page_setup_get_type
 gtk_paned_get_type
 gtk_paper_size_get_type
 gtk_places_sidebar_get_type
- DISABLE_ON_W32@@DISABLE_ON_QUARTZ@@DISABLE_ON_WAYLAND gtk_plug_get_type
+ ENABLE_ON_X11@gtk_plug_get_type
 @DISABLE_ON_W32 gtk_printer_get_type
 gtk_print_context_get_type
 @DISABLE_ON_W32 gtk_print_job_get_type
@@ -157,7 +157,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@@DISABLE_ON_QUARTZ@@DISABLE_ON_WAYLAND gtk_socket_get_type
+ ENABLE_ON_X11@gtk_socket_get_type
 gtk_spin_button_get_type
 gtk_spinner_get_type
 gtk_stack_get_type


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]