[gucharmap] Remove python bindings



commit cfab00cf3ee4fe6d36b4e5895fd5fef7c78582fe
Author: Christian Persch <chpe gnome org>
Date:   Tue Sep 7 11:15:12 2010 +0200

    Remove python bindings
    
    The manual python bindings are obsolete, now that we support g-i.

 Makefile.am                                  |    4 -
 bindings/Makefile.am                         |    7 -
 bindings/python/Makefile.am                  |   88 ---
 bindings/python/gucharmap.defs               |  845 --------------------------
 bindings/python/gucharmap.override           |   26 -
 bindings/python/gucharmapmodule.c            |   32 -
 configure.ac                                 |   76 ---
 docs/reference/tmpl/gucharmap-charmap.sgml   |   23 +
 docs/reference/tmpl/gucharmap-chartable.sgml |   23 +
 9 files changed, 46 insertions(+), 1078 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 97d0e09..1e2ad0a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5,10 +5,6 @@ GITIGNOREFILES = m4
 
 SUBDIRS = po pixmaps gucharmap docs
 
-if HAVE_GTK_2
-SUBDIRS += bindings
-endif
-
 if ENABLE_CHARMAP
 if HAVE_GNOME_DOC_UTILS
 SUBDIRS += help
diff --git a/configure.ac b/configure.ac
index 8a340b8..cd7a386 100644
--- a/configure.ac
+++ b/configure.ac
@@ -200,80 +200,6 @@ AC_SUBST([GETTEXT_PACKAGE])
 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[The gucharmap gettext domain])
 AM_GLIB_GNU_GETTEXT
 
-# ***************
-# Python Bindings
-# ***************
-
-# Only support this on gtk+-2.0; on 3.0 you should just use gobject-introspection
-
-if test "$with_gtk" = "2.0"; then
-
-AC_MSG_CHECKING([whether python bindings are requested])
-AC_ARG_ENABLE([python-bindings],
-        AS_HELP_STRING([--enable-python-bindings],[Enable python bindings]),
-        [],[enable_python_bindings=no])
-AC_MSG_RESULT([$enable_python_bindings])
-
-if test "$enable_python_bindings" = "yes"; then
-  AM_PATH_PYTHON([2.4])
-  AM_CHECK_PYTHON_HEADERS([],[AC_MSG_ERROR([Python headers not found])])
-
-  PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'`
-  PY_EXEC_PREFIX=`$PYTHON -c 'import sys ; print sys.exec_prefix'`
-  PYTHON_LIBS="-lpython$PYTHON_VERSION"
-  PYTHON_LIB_LOC="-L$PY_EXEC_PREFIX/lib/python$PYTHON_VERSION/config"
-  PYTHON_CFLAGS="-I$PY_PREFIX/include/python$PYTHON_VERSION"
-  PYTHON_MAKEFILE="$PY_EXEC_PREFIX/lib/python$PYTHON_VERSION/config/Makefile"
-  PYTHON_BASEMODLIBS=`sed -n -e 's/^BASEMODLIBS=\(.*\)/\1/p' $PYTHON_MAKEFILE`
-  PYTHON_OTHER_LIBS=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $PYTHON_MAKEFILE`
-  PYTHON_EXTRA_LIBS="$PYTHON_BASEMODLIBS $PYTHON_OTHER_LIBS"
-  AC_SUBST([PYTHON_LIBS])
-  AC_SUBST([PYTHON_LIB_LOC])
-  AC_SUBST([PYTHON_CFLAGS])
-  AC_SUBST([PYTHON_EXTRA_LIBS])
-
-  PYGTK_REQUIRED=2.7.1
-  PKG_CHECK_MODULES([PYGTK],[pygtk-2.0 >= $PYGTK_REQUIRED])
-
-  AC_SUBST([PYGTK_CFLAGS])
-  AC_SUBST([PYGTK_LIBS])
-
-  AC_MSG_CHECKING([for pygtk defs])
-  PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
-  AC_MSG_RESULT([$PYGTK_DEFSDIR])
-
-  AC_MSG_CHECKING([for pygtk codegen])
-  PYGTK_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/codegen.py"
-  AC_MSG_RESULT([$PYGTK_CODEGEN])
-
-  AC_MSG_CHECKING([for pygtk h2def])
-  PYGTK_H2DEF="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/h2def.py"
-  AC_MSG_RESULT([$PYGTK_H2DEF])
-
-  AC_SUBST([PYGTK_DEFSDIR])
-  AC_SUBST([PYGTK_CODEGEN])
-  AC_SUBST([PYGTK_H2DEF])
-
-  dnl Check for -fno-strict-aliasing
-  FLAGS="-fno-strict-aliasing"
-  save_CFLAGS="$CFLAGS"
-  CFLAGS="$CFLAGS $FLAGS"
-  AC_MSG_CHECKING([whether [$]CC understands $FLAGS])
-  AC_TRY_COMPILE([], [], [compiler_has_option=yes], [compiler_has_option=no])
-  CFLAGS="$save_CFLAGS"
-  AC_MSG_RESULT($compiler_has_option)
-  if test $compiler_has_option = yes; then
-          NO_STRICT_ALIASING_CFLAGS="$FLAGS"
-  fi
-  AC_SUBST([NO_STRICT_ALIASING_CFLAGS])
-fi
-
-else # with_gtk = 3.0
-  enable_python_bindings=no
-fi # with_gtk = 2.0
-
-AM_CONDITIONAL([ENABLE_PYTHON_BINDINGS],[test "$enable_python_bindings" = "yes"])
-
 # ***
 # GIR 
 # ***
@@ -330,8 +256,6 @@ Makefile
 gucharmap.desktop.in
 gucharmap.nsi
 gucharmap.spec
-bindings/Makefile
-bindings/python/Makefile
 docs/Makefile
 docs/reference/Makefile
 gucharmap/Makefile
diff --git a/docs/reference/tmpl/gucharmap-charmap.sgml b/docs/reference/tmpl/gucharmap-charmap.sgml
index 529eec8..a806758 100644
--- a/docs/reference/tmpl/gucharmap-charmap.sgml
+++ b/docs/reference/tmpl/gucharmap-charmap.sgml
@@ -79,6 +79,11 @@ GucharmapCharmap
 
 </para>
 
+<!-- ##### ARG GucharmapCharmap:font-fallback ##### -->
+<para>
+
+</para>
+
 <!-- ##### ARG GucharmapCharmap:snap-power-2 ##### -->
 <para>
 
@@ -138,6 +143,24 @@ GucharmapCharmap
 @font_desc: 
 
 
+<!-- ##### FUNCTION gucharmap_charmap_set_font_fallback ##### -->
+<para>
+
+</para>
+
+ charmap: 
+ enable_font_fallback: 
+
+
+<!-- ##### FUNCTION gucharmap_charmap_get_font_fallback ##### -->
+<para>
+
+</para>
+
+ charmap: 
+ Returns: 
+
+
 <!-- ##### FUNCTION gucharmap_charmap_get_chartable ##### -->
 <para>
 
diff --git a/docs/reference/tmpl/gucharmap-chartable.sgml b/docs/reference/tmpl/gucharmap-chartable.sgml
index 6565143..d62fa0b 100644
--- a/docs/reference/tmpl/gucharmap-chartable.sgml
+++ b/docs/reference/tmpl/gucharmap-chartable.sgml
@@ -95,6 +95,11 @@ GucharmapChartable
 
 </para>
 
+<!-- ##### ARG GucharmapChartable:font-fallback ##### -->
+<para>
+
+</para>
+
 <!-- ##### ARG GucharmapChartable:snap-power-2 ##### -->
 <para>
 
@@ -128,6 +133,24 @@ GucharmapChartable
 @font_desc: 
 
 
+<!-- ##### FUNCTION gucharmap_chartable_set_font_fallback ##### -->
+<para>
+
+</para>
+
+ chartable: 
+ enable_font_fallback: 
+
+
+<!-- ##### FUNCTION gucharmap_chartable_get_font_fallback ##### -->
+<para>
+
+</para>
+
+ chartable: 
+ Returns: 
+
+
 <!-- ##### FUNCTION gucharmap_chartable_get_active_character ##### -->
 <para>
 



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