Rename UI_MANAGER to ENABLE_UI_MANAGER, put it into
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 22 Aug 2011 08:08:38 +0000 (08:08 +0000)
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 22 Aug 2011 08:08:38 +0000 (08:08 +0000)
  CMakeOptions and enable it by default.
Update comment in proto_help that this feature is no
  longer built by default.
Enable PYTHON by default.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38659 f5534014-38df-0310-8fa8-9805f1628bb7

CMakeLists.txt
CMakeOptions.txt
gtk/CMakeLists.txt
gtk/proto_help.c

index 32051badfd97241259560ee46d3664800736d27f..63f3915ffeb2d682161ab9092cb188cdcb0b8844 100644 (file)
@@ -431,6 +431,9 @@ add_subdirectory( wsutil )
 
 if(BUILD_wireshark AND GTK_FOUND)
        add_subdirectory( gtk )
+       if (ENABLE_UI_MANAGER)
+               set(MAIN_MENU_USE_UIMANAGER 1)
+       endif()
 endif()
 
 # Basedir where to install guides
index 3d5a99843d154f4dcbd508507c171d7014025204..414ad071cd17034660ff66dae2a469770db97db0 100644 (file)
@@ -18,6 +18,7 @@ option(AUTOGEN_pidl      "Autogenerate pidl dissectors" OFF)
 option(DISABLE_WERROR    "Do not treat Warnings as errors" OFF)
 option(ENABLE_EXTRA_GCC_CHECKS "Do additional -W checks in GCC (disables -Werror)" OFF)
 option(ENABLE_GTK3       "Use GTK3 instead of GTK2 (does not compile yet)" OFF)
+option(ENABLE_UI_MANAGER) "Build GTK UI with the new UI-Manager API" ON)
 #
 # Do not make this the default on UN*X; AirPcap support is available
 # only on Windows.  It might be nice to have it, on Windows, check
@@ -37,7 +38,7 @@ option(ENABLE_PCRE       "Build with pcre support" OFF)
 option(ENABLE_PORTAUDIO  "Build with portaudio support" ON)
 option(ENABLE_ZLIB       "Build with zlib compression support" ON)
 option(ENABLE_LUA        "Build with lua dissector support" ON)
-option(ENABLE_PYTHON     "Build with python dissector support" OFF)
+option(ENABLE_PYTHON     "Build with python dissector support" ON)
 option(ENABLE_SMI        "Build with smi snmp support" ON)
 option(ENABLE_GNUTLS     "Build with GNU TLS support" ON)
 option(ENABLE_GCRYPT     "Build with GNU crypto support" ON)
index 0dcc8deece47ad4b79fa8232d95de99fd825b0f8..b9ca691be18753cf6885dc152328304ad7b32395 100644 (file)
@@ -221,12 +221,6 @@ if (WERROR)
        )
 endif()
 
-if (UI_MANAGER)
-       add_definitions(
-               -DMAIN_MENU_USE_UIMANAGER=1
-       )
-endif()
-
 if (NOT ENABLE_GTK3)
        add_definitions(
                # We are only allowed to include gtk/gtk.h, no other files. When
index 1f7ee8526c2442c008fd7744da9c4a798c2b2037..ac17499a577478c0d539b64b8e50971cda806019 100644 (file)
@@ -63,8 +63,8 @@
    See http://developer.gnome.org/gtk/2.24/GtkItemFactory.html: "As of GTK+ 2.4,
    GtkItemFactory has been deprecated in favour of GtkUIManager."
    This needs to be rewritten by the people who added this code or some other
-   volunteers. Otherwise this functionality will be lost once the UI_MANAGER
-   stuff becomes default.
+   volunteers. Otherwise this functionality will be lost once the non UI_MANAGER
+   stuff gets removed it isn't built by default any more.
  */
 #ifdef MAIN_MENU_USE_UIMANAGER
 void proto_help_menu_modify(GtkTreeSelection *selection _U_, capture_file *cf _U_) {}