Hello community,
here is the log from the commit of package python-gtksourceview
checked in at Sat Sep 6 06:08:37 CEST 2008.
--------
--- GNOME/python-gtksourceview/python-gtksourceview.changes 2008-04-24 23:43:29.000000000 +0200
+++ python-gtksourceview/python-gtksourceview.changes 2008-09-05 02:11:41.000000000 +0200
@@ -1,0 +2,9 @@
+Fri Sep 05 23:25:03 CEST 2008 - mboman@novell.com
+
+- Update to version 2.3.0:
+ + add an unofficial distutils based buildsystem that alllows to create
+ win32 installers.
+ + Add new 2.3.0 gtksourceview API.
+ + remove gnomevfs dependency, use gio instead.
+
+-------------------------------------------------------------------
Old:
----
pygtksourceview-2.2.0.tar.bz2
New:
----
pygtksourceview-2.3.0.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-gtksourceview.spec ++++++
--- /var/tmp/diff_new_pack.Q15543/_old 2008-09-06 06:07:00.000000000 +0200
+++ /var/tmp/diff_new_pack.Q15543/_new 2008-09-06 06:07:00.000000000 +0200
@@ -1,10 +1,17 @@
#
-# spec file for package python-gtksourceview (Version 2.2.0)
+# spec file for package python-gtksourceview (Version 2.3.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
@@ -21,7 +28,9 @@
BuildRequires: gtksourceview-devel >= 2.2.0
BuildRequires: python-gobject2-devel >= 2.8.0
BuildRequires: python-gtk-devel >= 2.8.0
-BuildRequires: gcc-c++ gnome-common gnome-doc-utils-devel gnome-patch-translation gtk-doc gtk2-devel intltool python-devel
+BuildRequires: gcc-c++ gnome-common gnome-doc-utils-devel
+BuildRequires: gnome-patch-translation gtk-doc gtk2-devel intltool
+BuildRequires: python-devel
%if 0%{?opensuse_bs}
BuildRequires: pkg-config
%endif
@@ -29,8 +38,8 @@
License: LGPL v2.0 only
Group: Development/Languages/Python
AutoReqProv: on
-Version: 2.2.0
-Release: 2
+Version: 2.3.0
+Release: 1
Summary: Python bindings for the GTK+ source editing widget
Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{_name}/2.2/%{_name}-%{version}.tar.bz2
Requires: python-gtk >= 2.8.0
@@ -109,6 +118,12 @@
%{_libdir}/pkgconfig/*.pc
%changelog
+* Sat Sep 06 2008 mboman@novell.com
+- Update to version 2.3.0:
+ + add an unofficial distutils based buildsystem that alllows to create
+ win32 installers.
+ + Add new 2.3.0 gtksourceview API.
+ + remove gnomevfs dependency, use gio instead.
* Fri Apr 25 2008 maw@suse.de
- Import package from the build service (thanks, Sukimashita!)
- Split out a -devel subpackage.
++++++ pygtksourceview-2.2.0.tar.bz2 -> pygtksourceview-2.3.0.tar.bz2 ++++++
++++ 21460 lines of diff (skipped)
++++ retrying with extended exclude list
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pygtksourceview-2.2.0/ChangeLog new/pygtksourceview-2.3.0/ChangeLog
--- old/pygtksourceview-2.2.0/ChangeLog 2008-03-10 13:49:16.000000000 +0100
+++ new/pygtksourceview-2.3.0/ChangeLog 2008-08-10 21:47:22.000000000 +0200
@@ -1,3 +1,45 @@
+=== pygtksourceview 2.3.0 ===
+
+2008-08-10 Gian Mario Tagliaretti
+
+ * NEWS: updated
+
+ pygtksourceview 2.3.0 released
+
+2008-08-10 Gian Mario Tagliaretti
+
+ * configure.ac: bump pygobject required version 2.15.2
+
+ * test/test-widget.py: remove gnomevfs dependency, use gio instead.
+
+2008-08-10 Gian Mario Tagliaretti
+
+ * gtksourceview2.defs: Add some defaults and null-ok.
+
+ * gtksourceview2.override: Manually wrap
+ gtk_source_view_get_mark_category_background
+
+ * docs/reference/gtksourceview2-gtksourceview.xml:
+ * docs/reference/gtksourceview2-gtksourcelanguagesmanager.xml:
+ Update with the new API.
+
+2008-08-10 Gian Mario Tagliaretti
+
+ * configure.ac: bump gtksourceview required version 2.3.0
+
+2008-08-10 Gian Mario Tagliaretti
+
+ * configure.ac: bump version 2.3.0
+
+ * gtksourceview2.defs: Add new gtksourceview API.
+
+2008-04-28 Paolo Borelli
+
+ * setup.py:
+ * pygtksourceview_postinstall.py:
+
+ add an unofficial distutils based buildsystem that alllows to create
+ win32 installers.
=== pygtksourceview 2.2.0 ===
@@ -23,7 +65,7 @@
2008-02-03 Gian Mario Tagliaretti
* gtksourceview2.defs: define NULL as default for catogory params.
-
+
* docs/reference/gtksourceview2-gtksourcebuffer.xml: fix the docs.
2008-02-01 Paolo Borelli
@@ -68,18 +110,18 @@
* docs/reference/gtksourceview2-gtksourceprintcompositor.xml:
add print_compositor_new_from_view function.
-
+
* docs/reference/gtksourceview2-gtksourceview.xml: add virtuals.
2008-01-20 Gian Mario Tagliaretti
* docs/reference/gtksourceview2-gtksourceprintcompositor.xml: add.
-
+
* docs/reference/gtksourceview2-ref.xml:
* docs/Makefile.am: add gtksourceprintcompositor docs.
-
+
* configure.ac: bump to version 2.1.0 and require gtksourceview 2.1.0.
-
+
* gtksourceview2.defs: fix NULL in parameters.
2008-01-16 Gian Mario Tagliaretti
@@ -94,15 +136,15 @@
2008-01-06 Gian Mario Tagliaretti
* gtksourceview2.defs: Fix null-ok in parameters.
-
+
* docs/reference/gtksourceview2-gtksourcemarker.xml: remove old docs.
-
+
* docs/reference/gtksourceview2-gtksourcemark.xml: add new mark docs.
-
+
* docs/Makefile.am:
* docs/reference/gtksourceview2-gtksourcebuffer.xml:
* docs/reference/gtksourceview2-gtksourceview.xml:
- * docs/reference/gtksourceview2-ref.xml: New mark API documented.
+ * docs/reference/gtksourceview2-ref.xml: New mark API documented.
2008-01-05 Gian Mario Tagliaretti
@@ -167,7 +209,7 @@
* gtksourceview2.defs: add gtk_source_language_get_style_ids and
gtk_source_language_get_style_name.
-
+
* gtksourceview2.override: wrap gtk_source_language_get_style_ids.
2007-12-30 Gian Mario Tagliaretti
@@ -310,7 +352,7 @@
2007-06-20 Paolo Borelli
- * gtksourceview2.defs: remove Buffer signals which are not
+ * gtksourceview2.defs: remove Buffer signals which are not
there anymore.
2007-06-18 Yevgen Muntyan
@@ -352,7 +394,7 @@
pygtksourceview 2.18.1 released
2007-06-03 Gian Mario Tagliaretti
-
+
* configure.ac: bump version to 1.90.0
* Makefile.am: clean build, distcheck now works.
* docs/reference/builddate.xml: deleted, it's a generated file.
@@ -377,7 +419,7 @@
2007-05-12 Gian Mario Tagliaretti
* gtksourceview2.defs: added new enum type GtkSourceViewSmartHomeEndType
-
+
* configure.ac: fix project link
2007-05-02 Gian Mario Tagliaretti
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pygtksourceview-2.2.0/compile new/pygtksourceview-2.3.0/compile
--- old/pygtksourceview-2.2.0/compile 1970-01-01 01:00:00.000000000 +0100
+++ new/pygtksourceview-2.3.0/compile 2006-12-06 16:55:19.000000000 +0100
@@ -0,0 +1,142 @@
+#! /bin/sh
+# Wrapper for compilers which do not understand `-c -o'.
+
+scriptversion=2005-05-14.22
+
+# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
+# Written by Tom Tromey .
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# This file is maintained in Automake, please report
+# bugs to or send patches to
+# .
+
+case $1 in
+ '')
+ echo "$0: No command. Try \`$0 --help' for more information." 1>&2
+ exit 1;
+ ;;
+ -h | --h*)
+ cat <<\EOF
+Usage: compile [--help] [--version] PROGRAM [ARGS]
+
+Wrapper for compilers which do not understand `-c -o'.
+Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
+arguments, and rename the output as expected.
+
+If you are trying to build a whole package this is not the
+right script to run: please start by reading the file `INSTALL'.
+
+Report bugs to .
+EOF
+ exit $?
+ ;;
+ -v | --v*)
+ echo "compile $scriptversion"
+ exit $?
+ ;;
+esac
+
+ofile=
+cfile=
+eat=
+
+for arg
+do
+ if test -n "$eat"; then
+ eat=
+ else
+ case $1 in
+ -o)
+ # configure might choose to run compile as `compile cc -o foo foo.c'.
+ # So we strip `-o arg' only if arg is an object.
+ eat=1
+ case $2 in
+ *.o | *.obj)
+ ofile=$2
+ ;;
+ *)
+ set x "$@" -o "$2"
+ shift
+ ;;
+ esac
+ ;;
+ *.c)
+ cfile=$1
+ set x "$@" "$1"
+ shift
+ ;;
+ *)
+ set x "$@" "$1"
+ shift
+ ;;
+ esac
+ fi
+ shift
+done
+
+if test -z "$ofile" || test -z "$cfile"; then
+ # If no `-o' option was seen then we might have been invoked from a
+ # pattern rule where we don't need one. That is ok -- this is a
+ # normal compilation that the losing compiler can handle. If no
+ # `.c' file was seen then we are probably linking. That is also
+ # ok.
+ exec "$@"
+fi
+
+# Name of file we expect compiler to create.
+cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
+
+# Create the lock directory.
+# Note: use `[/.-]' here to ensure that we don't use the same name
+# that we are using for the .o file. Also, base the name on the expected
+# object file name, since that is what matters with a parallel build.
+lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d
+while true; do
+ if mkdir "$lockdir" >/dev/null 2>&1; then
+ break
+ fi
+ sleep 1
+done
+# FIXME: race condition here if user kills between mkdir and trap.
+trap "rmdir '$lockdir'; exit 1" 1 2 15
+
+# Run the compile.
+"$@"
+ret=$?
+
+if test -f "$cofile"; then
+ mv "$cofile" "$ofile"
+elif test -f "${cofile}bj"; then
+ mv "${cofile}bj" "$ofile"
+fi
+
+rmdir "$lockdir"
+exit $ret
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-end: "$"
+# End:
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pygtksourceview-2.2.0/configure.ac new/pygtksourceview-2.3.0/configure.ac
--- old/pygtksourceview-2.2.0/configure.ac 2008-03-10 13:46:18.000000000 +0100
+++ new/pygtksourceview-2.3.0/configure.ac 2008-08-10 21:26:31.000000000 +0200
@@ -2,14 +2,14 @@
dnl the pygtksourceview version number
m4_define(pygtksourceview_major_version, 2)
-m4_define(pygtksourceview_minor_version, 2)
+m4_define(pygtksourceview_minor_version, 3)
m4_define(pygtksourceview_micro_version, 0)
m4_define(pygtksourceview_version, pygtksourceview_major_version.pygtksourceview_minor_version.pygtksourceview_micro_version)
dnl versions of packages we require ...
-m4_define(pygobject_required_version, 2.8.0)
+m4_define(pygobject_required_version, 2.15.2)
m4_define(pygtk_required_version, 2.8.0)
-m4_define(gtksourceview_required_version, 2.2.0)
+m4_define(gtksourceview_required_version, 2.3.0)
AC_INIT(pygtksourceview, pygtksourceview_version, [http://bugzilla.gnome.org/browse.cgi?product=gtksourceview/])
@@ -118,7 +118,7 @@
if test -f $CODEGENDIR/codegen.py; then
CODEGEN=$CODEGENDIR/codegen.py
AC_MSG_RESULT(yes)
-else
+else
AC_MSG_RESULT(no)
AC_MSG_ERROR([Error: codegen not found (should be shipped with pygtk!)])
fi
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pygtksourceview-2.2.0/docs/reference/gtksourceview2-gtksourcelanguagesmanager.xml new/pygtksourceview-2.3.0/docs/reference/gtksourceview2-gtksourcelanguagesmanager.xml
--- old/pygtksourceview-2.2.0/docs/reference/gtksourceview2-gtksourcelanguagesmanager.xml 2008-01-22 19:35:57.000000000 +0100
+++ new/pygtksourceview-2.3.0/docs/reference/gtksourceview2-gtksourcelanguagesmanager.xml 2008-08-10 18:47:01.000000000 +0200
@@ -13,7 +13,7 @@
<refsect1>
<title>Synopsis</title>
-
+
<classsynopsis language="python">
<ooclass><classname>gtksourceview2.LanguageManager</classname></ooclass>
<ooclass><classname><link linkend="class-gobject">gobject.GObject</link></classname></ooclass>
@@ -21,23 +21,29 @@
<constructorsynopsis language="python">
<methodname><link linkend="constructor-gtksourcelanguagemanager2">gtksourceview2.LanguageManager</link></methodname>
<methodparam></methodparam>
- </constructorsynopsis>
+ </constructorsynopsis>
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourcelanguagemanager2--get-language">get_language</link></methodname>
<methodparam><parameter role="keyword">id</parameter></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourcelanguagemanager2--get-language-ids">get_language_ids</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourcelanguagemanager2--get-search-path">get_search_path</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
-
+
+ <methodsynopsis language="python">
+ <methodname><link linkend="method-gtksourcelanguagemanager2--guess-language">guess_language</link></methodname>
+ <methodparam><parameter role="keyword">filename</parameter><initializer>None</initializer></methodparam>
+ <methodparam><parameter role="keyword">content_type</parameter><initializer>None</initializer></methodparam>
+ </methodsynopsis>
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourcelanguagemanager2--set-search-path">set_search_path</link></methodname>
<methodparam></methodparam>
@@ -85,13 +91,13 @@
<entry>Read</entry>
<entry>List of the ids of the available languages.</entry>
</row>
-
+
<row valign="top">
<entry>"search-path"</entry>
<entry>Read-Write</entry>
<entry>List of directories where the language specification files (.lang) are located.</entry>
</row>
-
+
</tbody>
</tgroup>
</informaltable>
@@ -123,7 +129,7 @@
<methodname>gtksourceview2.LanguageManager</methodname>
<methodparam><parameter role="keyword"></parameter></methodparam>
</constructorsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
@@ -149,7 +155,7 @@
<methodname>get_language</methodname>
<methodparam><parameter role="keyword">id</parameter></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><emphasis>id</emphasis> :</term>
@@ -176,7 +182,7 @@
<methodname>get_language_ids</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
@@ -197,7 +203,7 @@
<methodname>get_search_path</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
@@ -210,14 +216,49 @@
gets the list directories where @lm looks for language files.
</para>
</refsect2>
-
+
+ <refsect2 id="method-gtksourcelanguagemanager2--guess-language">
+ <title>gtksourceview2.LanguageManager.guess_language</title>
+ <programlisting><methodsynopsis language="python">
+ <methodname>guess_language</methodname>
+ <methodparam><parameter role="keyword">filename</parameter><initializer>None</initializer></methodparam>
+ <methodparam><parameter role="keyword">content_type</parameter><initializer>None</initializer></methodparam>
+ </methodsynopsis></programlisting>
+
+ <variablelist>
+ <varlistentry>
+ <term><emphasis>filename</emphasis> :</term>
+ <listitem><simpara>a filename in Glib filename encoding, or
+ <literal>None</literal>.</simpara></listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><emphasis>content_type</emphasis> :</term>
+ <listitem><simpara>a content type (as in GIO API), or
+ <literal>None</literal>.</simpara></listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><emphasis>Returns</emphasis> :</term>
+ <listitem><simpara>a
+ <link linkend="class-gtksourcelanguage2"><classname>gtksourceview2.Language</classname></link>
+ or <literal>None</literal> if there is no suitable language for given filename
+ and/or content_type.</simpara></listitem>
+ </varlistentry>
+ </variablelist>
+
+ <para>
+ The <methodname>set_search_path</methodname>() method sets the list of directories
+ where the lm looks for language files.
+ If dirs is <literal>None</literal>, the search path is reset to default.
+ </para>
+ </refsect2>
+
<refsect2 id="method-gtksourcelanguagemanager2--set-search-path">
<title>gtksourceview2.LanguageManager.set_search_path</title>
<programlisting><methodsynopsis language="python">
<methodname>set_search_path</methodname>
<methodparam><parameter role="keyword">dirs</parameter></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><emphasis>dirs</emphasis> :</term>
@@ -247,7 +288,7 @@
<methodname>gtksourceview2.language_manager_get_default</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
@@ -260,5 +301,5 @@
<link linkend="class-gtksourcelanguagemanager2"><classname>gtksourceview2.LanguageManager</classname></link> instance.
</para>
</refsect2>
-</refsect1>
+</refsect1>
</refentry>
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pygtksourceview-2.2.0/docs/reference/gtksourceview2-gtksourceview.xml new/pygtksourceview-2.3.0/docs/reference/gtksourceview2-gtksourceview.xml
--- old/pygtksourceview-2.2.0/docs/reference/gtksourceview2-gtksourceview.xml 2008-01-22 19:35:57.000000000 +0100
+++ new/pygtksourceview-2.3.0/docs/reference/gtksourceview2-gtksourceview.xml 2008-08-10 21:03:06.000000000 +0200
@@ -27,129 +27,150 @@
<methodname><link linkend="method-gtksourceview2--get-auto-indent">get_auto_indent</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
-
+
+ <methodsynopsis language="python">
+ <methodname><link linkend="method-gtksourceview2--get-draw-spaces">get_draw_spaces</link></methodname>
+ <methodparam></methodparam>
+ </methodsynopsis>
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--get-highlight-current-line">get_highlight_current_line</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--get-indent-on-tab">get_indent_on_tab</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--get-indent-width">get_indent_width</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--get-insert-spaces-instead-of-tabs">get_insert_spaces_instead_of_tabs</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
-
+
+ <methodsynopsis language="python">
+ <methodname><link linkend="method-gtksourceview2--get-mark-category-background">get_mark_category_background</link></methodname>
+ <methodparam><parameter role="keyword">category</parameter></methodparam>
+ </methodsynopsis>
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--get-mark-category-pixbuf">get_mark_category_pixbuf</link></methodname>
<methodparam><parameter role="keyword">category</parameter></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--get-mark-category-priority">get_mark_category_priority</link></methodname>
<methodparam><parameter role="keyword">category</parameter></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--get-right-margin-position">get_right_margin_position</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--get-show-line-marks">get_show_line_marks</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--get-show-line-numbers">get_show_line_numbers</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--get-show-right-margin">get_show_right_margin</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--get-smart-home-end">get_smart_home_end</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--get-tab-width">get_tab_width</link></methodname>
<methodparam></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--set-auto-indent">set_auto_indent</link></methodname>
<methodparam><parameter role="keyword">enable</parameter></methodparam>
</methodsynopsis>
-
+
+ <methodsynopsis language="python">
+ <methodname><link linkend="method-gtksourceview2--set-draw-spaces">set_draw_spaces</link></methodname>
+ <methodparam><parameter role="keyword">flags</parameter></methodparam>
+ </methodsynopsis>
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--set-highlight-current-line">set_highlight_current_line</link></methodname>
<methodparam><parameter role="keyword">show</parameter></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--set-indent-on-tab">set_indent_on_tab</link></methodname>
<methodparam><parameter role="keyword">enable</parameter></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--set-indent-width">set_indent_width</link></methodname>
<methodparam><parameter role="keyword">width</parameter></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--set-insert-spaces-instead-of-tabs">set_insert_spaces_instead_of_tabs</link></methodname>
<methodparam><parameter role="keyword">enable</parameter></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--set-mark-category-pixbuf">set_mark_category_pixbuf</link></methodname>
<methodparam><parameter role="keyword">category</parameter></methodparam>
<methodparam><parameter role="keyword">pixbuf</parameter></methodparam>
</methodsynopsis>
-
+
+ <methodsynopsis language="python">
+ <methodname><link linkend="method-gtksourceview2--set-mark-category-background">set_mark_category_background</link></methodname>
+ <methodparam><parameter role="keyword">category</parameter></methodparam>
+ <methodparam><parameter role="keyword">dest</parameter></methodparam>
+ </methodsynopsis>
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--set-mark-category-priority">set_mark_category_priority</link></methodname>
<methodparam><parameter role="keyword">category</parameter></methodparam>
<methodparam><parameter role="keyword">priority</parameter></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--set-right-margin-position">set_right_margin_position</link></methodname>
<methodparam><parameter role="keyword">pos</parameter></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--set-show-line-marks">set_show_line_marks</link></methodname>
<methodparam><parameter role="keyword">show</parameter></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--set-show-line-numbers">set_show_line_numbers</link></methodname>
<methodparam><parameter role="keyword">show</parameter></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--set-show-right-margin">set_show_right_margin</link></methodname>
<methodparam><parameter role="keyword">show</parameter></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--set-smart-home-end">set_smart_home_end</link></methodname>
<methodparam><parameter role="keyword">smart_he</parameter></methodparam>
</methodsynopsis>
-
+
<methodsynopsis language="python">
<methodname><link linkend="method-gtksourceview2--set-tab-width">set_tab_width</link></methodname>
<methodparam><parameter role="keyword">width</parameter></methodparam>
@@ -187,12 +208,12 @@
<colspec column="1" colwidth="1in"/>
<colspec column="2" colwidth="4in"/>
<tbody>
-
+
<row valign="top">
<entry><methodname>do_redo</methodname></entry>
<entry>Method that can be overridden to implement a custom redo.</entry>
</row>
-
+
<row valign="top">
<entry><methodname>do_undo</methodname></entry>
<entry>Method that can be overridden to implement a custom undo.</entry>
@@ -224,61 +245,61 @@
<entry>Read-Write</entry>
<entry>If <literal>True</literal> enable auto indentation. Default value: False.</entry>
</row>
-
+
<row valign="top">
<entry>"highlight-current-line"</entry>
<entry>Read-Write</entry>
<entry>Whether to highlight the current line. Default value: False.</entry>
</row>
-
+
<row valign="top">
<entry>"indent-on-tab"</entry>
<entry>Read-Write</entry>
<entry>Whether to indent the selected text when the tab key is pressed. Default value: True.</entry>
</row>
-
+
<row valign="top">
<entry>"indent-width"</entry>
<entry>Read-Write</entry>
<entry>Width of an indentation step expressed in number of spaces. Allowed values: [-1,32]. Default value: -1.</entry>
</row>
-
+
<row valign="top">
<entry>"insert-spaces-instead-of-tabs"</entry>
<entry>Read-Write</entry>
<entry>If <literal>True</literal> spaces will be inserted instead of tabs. Default value: False</entry>
</row>
-
+
<row valign="top">
<entry>"right-margin-position"</entry>
<entry>Read-Write</entry>
<entry>Position of the right margin. Allowed values: [1,200]. Default value: 80</entry>
</row>
-
+
<row valign="top">
<entry>"show-line-marks"</entry>
<entry>Read-Write</entry>
<entry>If <literal>True</literal>, the display line marks pixbufs will be shown. Default value: False.</entry>
</row>
-
+
<row valign="top">
<entry>"show-line-numbers"</entry>
<entry>Read-Write</entry>
<entry>If <literal>True</literal>, the line numbers will be shown. Default value: False.</entry>
</row>
-
+
<row valign="top">
<entry>"show-right-margin"</entry>
<entry>Read-Write</entry>
<entry>If <literal>True</literal>, the right margin will be shown. Default value: False.</entry>
</row>
-
+
<row valign="top">
<entry>"smart-home-end"</entry>
<entry>Read-Write</entry>
<entry>Set the behavior of the <keycap>HOME</keycap> and <keycap>END</keycap> keys. Default value: gtksourceview2.SMART_HOME_END_DISABLED.</entry>
</row>
-
+
<row valign="top">
<entry>"tabs-width"</entry>
<entry>Read-Write</entry>
@@ -385,11 +406,11 @@
<methodname>get_auto_indent</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
- <listitem><simpara><literal>True</literal> if auto indentation is enabled,
+ <listitem><simpara><literal>True</literal> if auto indentation is enabled,
<literal>False</literal> otherwise.</simpara></listitem>
</varlistentry>
</variablelist>
@@ -400,6 +421,29 @@
</para>
</refsect2>
+ <refsect2 id="method-gtksourceview2--get-draw-spaces">
+ <title>gtksourceview2.View.get_draw_spaces</title>
+
+ <programlisting><methodsynopsis language="python">
+ <methodname>get_draw_spaces</methodname>
+ <methodparam></methodparam>
+ </methodsynopsis></programlisting>
+
+ <variablelist>
+ <varlistentry>
+ <term><emphasis>Returns</emphasis> :</term>
+ <listitem><simpara>One of gtksourceview2.DRAW_SPACES_SPACE, gtksourceview2.DRAW_SPACES_TAB
+ gtksourceview2.DRAW_SPACES_NEWLINE or gtksourceview2.DRAW_SPACES_ALL.</simpara></listitem>
+ </varlistentry>
+ </variablelist>
+
+ <para>
+ The <methodname>get_draw_spaces</methodname>() method returns one of the flags
+ specifying if and how spaces should be displayed for this view.
+ </para>
+ </refsect2>
+
+
<refsect2 id="method-gtksourceview2--get-highlight-current-line">
<title>gtksourceview2.View.get_highlight_current_line</title>
@@ -407,11 +451,11 @@
<methodname>get_highlight_current_line</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
- <listitem><simpara><literal>True</literal> if the current line is highlighted,
+ <listitem><simpara><literal>True</literal> if the current line is highlighted,
<literal>False</literal> otherwise.</simpara></listitem>
</varlistentry>
</variablelist>
@@ -429,7 +473,7 @@
<methodname>get_indent_on_tab</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
@@ -452,7 +496,7 @@
<methodname>get_indent_width</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
@@ -475,7 +519,7 @@
<methodname>get_insert_spaces_instead_of_tabs</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
@@ -491,6 +535,32 @@
</para>
</refsect2>
+ <refsect2 id="method-gtksourceview2--get-mark-category-background">
+ <title>gtksourceview2.View.get_mark_category_background</title>
+
+ <programlisting><methodsynopsis language="python">
+ <methodname>get_mark_category_background</methodname>
+ <methodparam><parameter role="keyword">category</parameter></methodparam>
+ </methodsynopsis></programlisting>
+
+ <variablelist>
+ <varlistentry>
+ <term><parameter role="keyword">category</parameter> :</term>
+ <listitem><simpara>a marker category.</simpara></listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><emphasis>Returns</emphasis> :</term>
+ <listitem><simpara>a <link linkend="class-gdkcolor"><classname>gtk.gdk.Color</classname></link>
+ if found, or <literal>None</literal> if not found.</simpara></listitem>
+ </varlistentry>
+ </variablelist>
+
+ <para>
+ The <methodname>get_marker_category_pixbuf</methodname>() method gets the pixbuf which
+ is associated with the given category.
+ </para>
+ </refsect2>
+
<refsect2 id="method-gtksourceview2--get-mark-category-pixbuf">
<title>gtksourceview2.View.get_mark_category_pixbuf</title>
@@ -498,7 +568,7 @@
<methodname>get_mark_category_pixbuf</methodname>
<methodparam><parameter role="keyword">category</parameter></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><parameter role="keyword">category</parameter> :</term>
@@ -516,7 +586,7 @@
is associated with the given category.
</para>
</refsect2>
-
+
<refsect2 id="method-gtksourceview2--get-mark-category-priority">
<title>gtksourceview2.View.get_mark_category_priority</title>
@@ -524,7 +594,7 @@
<methodname>get_mark_category_priority</methodname>
<methodparam><parameter role="keyword">category</parameter></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><parameter role="keyword">category</parameter> :</term>
@@ -550,7 +620,7 @@
<methodname>get_right_margin_position</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
@@ -571,7 +641,7 @@
<methodname>get_show_line_marks</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
@@ -593,7 +663,7 @@
<methodname>get_show_line_numbers</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
@@ -615,7 +685,7 @@
<methodname>get_show_right_margin</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
@@ -637,7 +707,7 @@
<methodname>get_smart_home_end</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
@@ -650,7 +720,7 @@
<para>
The <methodname>get_smart_home_end</methodname>() method returns
a value specifying how the cursor will move when <keycap>HOME</keycap>
- and <keycap>END</keycap> keys are pressed.
+ and <keycap>END</keycap> keys are pressed.
</para>
</refsect2>
@@ -661,7 +731,7 @@
<methodname>get_tab_width</methodname>
<methodparam></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><emphasis>Returns</emphasis> :</term>
@@ -682,7 +752,7 @@
<methodname>set_auto_indent</methodname>
<methodparam><parameter role="keyword">enabled</parameter></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><parameter role="keyword">enabled</parameter> :</term>
@@ -695,6 +765,29 @@
</para>
</refsect2>
+ <refsect2 id="method-gtksourceview2--set-draw-spaces">
+ <title>gtksourceview2.View.set_draw_spaces</title>
+
+ <programlisting><methodsynopsis language="python">
+ <methodname>set_draw_spaces</methodname>
+ <methodparam><parameter role="keyword">flags</parameter></methodparam>
+ </methodsynopsis></programlisting>
+
+ <variablelist>
+ <varlistentry>
+ <term><parameter role="keyword">flags</parameter> :</term>
+ <listitem><simpara>one of gtksourceview2.DRAW_SPACES_SPACE, gtksourceview2.DRAW_SPACES_TAB
+ gtksourceview2.DRAW_SPACES_NEWLINE or gtksourceview2.DRAW_SPACES_ALL,
+ specifing how white spaces should be displayed.</simpara></listitem>
+ </varlistentry>
+ </variablelist>
+
+ <para>
+ The <methodname>set_draw_spaces</methodname>() method set if and how the
+ spaces should be visualized. Specifying flags as 0 will disable display of spaces.
+ </para>
+ </refsect2>
+
<refsect2 id="method-gtksourceview2--set-highlight-current-line">
<title>gtksourceview2.View.set_highlight_current_line</title>
@@ -702,7 +795,7 @@
<methodname>set_highlight_current_line</methodname>
<methodparam><parameter role="keyword">show</parameter></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><parameter role="keyword">show</parameter> :</term>
@@ -715,7 +808,7 @@
whether to highlight the current line.
</para>
</refsect2>
-
+
<refsect2 id="method-gtksourceview2--set-indent-on-tab">
<title>gtksourceview2.View.set_indent_on_tab</title>
@@ -723,7 +816,7 @@
<methodname>set_indent_on_tab</methodname>
<methodparam><parameter role="keyword">enabled</parameter></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><parameter role="keyword">enabled</parameter> :</term>
@@ -746,7 +839,7 @@
<methodname>set_indent_width</methodname>
<methodparam><parameter role="keyword">width</parameter></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><parameter role="keyword">width</parameter> :</term>
@@ -768,7 +861,7 @@
<methodname>set_insert_spaces_instead_of_tabs</methodname>
<methodparam><parameter role="keyword">enabled</parameter></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><parameter role="keyword">enabled</parameter> :</term>
@@ -782,6 +875,34 @@
</para>
</refsect2>
+ <refsect2 id="method-gtksourceview2--set-mark-category-background">
+ <title>gtksourceview2.View.set_mark_category_background</title>
+
+ <programlisting><methodsynopsis language="python">
+ <methodname>set_mark_category_background</methodname>
+ <methodparam><parameter role="keyword">category</parameter></methodparam>
+ <methodparam><parameter role="keyword">color</parameter></methodparam>
+ </methodsynopsis></programlisting>
+
+ <variablelist>
+ <varlistentry>
+ <term><parameter role="keyword">category</parameter> :</term>
+ <listitem><simpara>a marker category.</simpara></listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter role="keyword">color</parameter> :</term>
+ <listitem><simpara>a <link linkend="class-gdkcolor"><classname>gtk.gdk.Color</classname></link>
+ or <literal>None</literal>.</simpara></listitem>
+ </varlistentry>
+ </variablelist>
+
+ <para>
+ The <methodname>set_mark_category_priority</methodname>() method
+ sets given background color for mark category.
+ If color is <literal>None</literal>, the background color is unset.
+ </para>
+ </refsect2>
+
<refsect2 id="method-gtksourceview2--set-mark-category-pixbuf">
<title>gtksourceview2.View.set_mark_category_pixbuf</title>
@@ -790,7 +911,7 @@
<methodparam><parameter role="keyword">category</parameter></methodparam>
<methodparam><parameter role="keyword">pixbuf</parameter></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><parameter role="keyword">category</parameter> :</term>
@@ -819,7 +940,7 @@
<methodparam><parameter role="keyword">category</parameter></methodparam>
<methodparam><parameter role="keyword">priority</parameter></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><parameter role="keyword">category</parameter> :</term>
@@ -845,7 +966,7 @@
<methodname>set_right_margin_position</methodname>
<methodparam><parameter role="keyword">pos</parameter></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><parameter role="keyword">pos</parameter> :</term>
@@ -866,7 +987,7 @@
<methodname>set_show_line_marks</methodname>
<methodparam><parameter role="keyword">show</parameter></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><parameter role="keyword">show</parameter> :</term>
@@ -888,7 +1009,7 @@
<methodname>set_show_line_numbers</methodname>
<methodparam><parameter role="keyword">show</parameter></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><parameter role="keyword">show</parameter> :</term>
@@ -910,7 +1031,7 @@
<methodname>set_show_right_margin</methodname>
<methodparam><parameter role="keyword">show</parameter></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><parameter role="keyword">show</parameter> :</term>
@@ -932,7 +1053,7 @@
<methodname>set_smart_home_end</methodname>
<methodparam><parameter role="keyword">smart_he</parameter></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><parameter role="keyword">smart_he</parameter> :</term>
@@ -953,7 +1074,7 @@
<methodname>set_tab_width</methodname>
<methodparam><parameter role="keyword">width</parameter></methodparam>
</methodsynopsis></programlisting>
-
+
<variablelist>
<varlistentry>
<term><parameter role="keyword">width</parameter> :</term>
@@ -973,8 +1094,8 @@
<!-- ****************************** -->
<!-- BEGIN OF GTKSOURCEVIEW SIGNALS -->
-<!-- ****************************** -->
-
+<!-- ****************************** -->
+
<refsect1>
<title>Signals</title>
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pygtksourceview-2.2.0/gtksourceview2.defs new/pygtksourceview-2.3.0/gtksourceview2.defs
--- old/pygtksourceview-2.2.0/gtksourceview2.defs 2008-02-02 14:10:21.000000000 +0100
+++ new/pygtksourceview-2.3.0/gtksourceview2.defs 2008-08-10 19:10:47.000000000 +0200
@@ -78,6 +78,17 @@
(gtype-id "GTK_TYPE_SOURCE_SMART_HOME_END_TYPE")
)
+(define-flags DrawSpacesFlags
+ (in-module "Gtk")
+ (c-name "GtkSourceDrawSpacesFlags")
+ (gtype-id "GTK_TYPE_SOURCE_DRAW_SPACES_FLAGS")
+ (values
+ '("space" "GTK_SOURCE_DRAW_SPACES_SPACE")
+ '("tab" "GTK_SOURCE_DRAW_SPACES_TAB")
+ '("newline" "GTK_SOURCE_DRAW_SPACES_NEWLINE")
+ '("all" "GTK_SOURCE_DRAW_SPACES_ALL")
+ )
+)
;; From gtksourcebuffer.h
@@ -413,6 +424,16 @@
)
)
+(define-method guess_language
+ (of-object "GtkSourceLanguageManager")
+ (c-name "gtk_source_language_manager_guess_language")
+ (return-type "GtkSourceLanguage*")
+ (parameters
+ '("const-gchar*" "filename" (null-ok) (default "NULL"))
+ '("const-gchar*" "content_type" (null-ok) (default "NULL"))
+ )
+)
+
;; From gtksourcestyle.h
@@ -755,6 +776,41 @@
(return-type "GtkSourceSmartHomeEndType")
)
+(define-method set_draw_spaces
+ (of-object "GtkSourceView")
+ (c-name "gtk_source_view_set_draw_spaces")
+ (return-type "none")
+ (parameters
+ '("GtkSourceDrawSpacesFlags" "flags")
+ )
+)
+
+(define-method get_draw_spaces
+ (of-object "GtkSourceView")
+ (c-name "gtk_source_view_get_draw_spaces")
+ (return-type "GtkSourceDrawSpacesFlags")
+)
+
+(define-method set_mark_category_background
+ (of-object "GtkSourceView")
+ (c-name "gtk_source_view_set_mark_category_background")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "category")
+ '("const-GdkColor*" "color" (null-ok))
+ )
+)
+
+(define-method get_mark_category_background
+ (of-object "GtkSourceView")
+ (c-name "gtk_source_view_get_mark_category_background")
+ (return-type "gboolean")
+ (parameters
+ '("const-gchar*" "category")
+ '("GdkColor*" "dest")
+ )
+)
+
;; From gtksourcemark.h
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pygtksourceview-2.2.0/gtksourceview2.override new/pygtksourceview-2.3.0/gtksourceview2.override
--- old/pygtksourceview-2.2.0/gtksourceview2.override 2008-02-02 11:42:30.000000000 +0100
+++ new/pygtksourceview-2.3.0/gtksourceview2.override 2008-08-10 19:35:39.000000000 +0200
@@ -345,7 +345,7 @@
py_ret = gslist_to_pylist_objs (ret);
return py_ret;
-}
+}
%%
override gtk_source_iter_backward_search kwargs
@@ -436,3 +436,33 @@
Py_INCREF(Py_None);
return Py_None;
}
+
+%%
+override gtk_source_view_get_mark_category_background kwargs
+static PyObject *
+_wrap_gtk_source_view_get_mark_category_background(PyGObject *self,
+ PyObject *args,
+ PyObject *kwargs)
+{
+ static char *kwlist[] = { "category", NULL };
+ char *category;
+ int ret;
+ GdkColor dest = { 0, 0, 0, 0 };
+
+ if (!PyArg_ParseTupleAndKeywords(args,
+ kwargs,
+ "s:GtkSourceView.get_mark_category_background",
+ kwlist, &category))
+ return NULL;
+
+ ret = gtk_source_view_get_mark_category_background(
+ GTK_SOURCE_VIEW(self->obj),
+ category, &dest);
+
+ if (ret)
+ return pyg_boxed_new(GDK_TYPE_COLOR, &dest, TRUE, TRUE);
+ else {
+ Py_INCREF(Py_None);
+ return(Py_None);
+ }
+}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pygtksourceview-2.2.0/missing new/pygtksourceview-2.3.0/missing
--- old/pygtksourceview-2.2.0/missing 2007-12-28 21:49:27.000000000 +0100
+++ new/pygtksourceview-2.3.0/missing 2006-12-06 16:55:19.000000000 +0100
@@ -1,9 +1,9 @@
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
-scriptversion=2006-05-10.23
+scriptversion=2005-06-08.21
-# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
+# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
# Free Software Foundation, Inc.
# Originally by Fran,cois Pinard , 1996.
@@ -33,8 +33,6 @@
fi
run=:
-sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
-sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
# In the cases where this matters, `missing' is being run in the
# srcdir already.
@@ -46,7 +44,7 @@
msg="missing on your system"
-case $1 in
+case "$1" in
--run)
# Try to run requested program, and just exit if it succeeds.
run=
@@ -79,7 +77,6 @@
aclocal touch file \`aclocal.m4'
autoconf touch file \`configure'
autoheader touch file \`config.h.in'
- autom4te touch the output file, or create a stub one
automake touch all \`Makefile.in' files
bison create \`y.tab.[ch]', if possible, from existing .[ch]
flex create \`lex.yy.c', if possible, from existing .c
@@ -109,7 +106,7 @@
# Now exit if we have it, but it failed. Also exit now if we
# don't have it and --version was passed (most likely to detect
# the program).
-case $1 in
+case "$1" in
lex|yacc)
# Not GNU programs, they don't have --version.
;;
@@ -138,7 +135,7 @@
# If it does not exist, or fails to run (possibly an outdated version),
# try to emulate it.
-case $1 in
+case "$1" in
aclocal*)
echo 1>&2 "\
WARNING: \`$1' is $msg. You should only need it if
@@ -167,7 +164,7 @@
test -z "$files" && files="config.h"
touch_files=
for f in $files; do
- case $f in
+ case "$f" in
*:*) touch_files="$touch_files "`echo "$f" |
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
*) touch_files="$touch_files $f.in";;
@@ -195,8 +192,8 @@
You can get \`$1' as part of \`Autoconf' from any GNU
archive site."
- file=`echo "$*" | sed -n "$sed_output"`
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
+ test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
if test -f "$file"; then
touch $file
else
@@ -217,25 +214,25 @@
in order for those modifications to take effect. You can get
\`Bison' from any GNU archive site."
rm -f y.tab.c y.tab.h
- if test $# -ne 1; then
+ if [ $# -ne 1 ]; then
eval LASTARG="\${$#}"
- case $LASTARG in
+ case "$LASTARG" in
*.y)
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
- if test -f "$SRCFILE"; then
+ if [ -f "$SRCFILE" ]; then
cp "$SRCFILE" y.tab.c
fi
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
- if test -f "$SRCFILE"; then
+ if [ -f "$SRCFILE" ]; then
cp "$SRCFILE" y.tab.h
fi
;;
esac
fi
- if test ! -f y.tab.h; then
+ if [ ! -f y.tab.h ]; then
echo >y.tab.h
fi
- if test ! -f y.tab.c; then
+ if [ ! -f y.tab.c ]; then
echo 'main() { return 0; }' >y.tab.c
fi
;;
@@ -247,18 +244,18 @@
in order for those modifications to take effect. You can get
\`Flex' from any GNU archive site."
rm -f lex.yy.c
- if test $# -ne 1; then
+ if [ $# -ne 1 ]; then
eval LASTARG="\${$#}"
- case $LASTARG in
+ case "$LASTARG" in
*.l)
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
- if test -f "$SRCFILE"; then
+ if [ -f "$SRCFILE" ]; then
cp "$SRCFILE" lex.yy.c
fi
;;
esac
fi
- if test ! -f lex.yy.c; then
+ if [ ! -f lex.yy.c ]; then
echo 'main() { return 0; }' >lex.yy.c
fi
;;
@@ -270,9 +267,11 @@
\`Help2man' package in order for those modifications to take
effect. You can get \`Help2man' from any GNU archive site."
- file=`echo "$*" | sed -n "$sed_output"`
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
- if test -f "$file"; then
+ file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
+ if test -z "$file"; then
+ file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
+ fi
+ if [ -f "$file" ]; then
touch $file
else
test -z "$file" || exec >$file
@@ -290,17 +289,11 @@
DU, IRIX). You might want to install the \`Texinfo' package or
the \`GNU make' package. Grab either from any GNU archive site."
# The file to touch is that specified with -o ...
- file=`echo "$*" | sed -n "$sed_output"`
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
if test -z "$file"; then
# ... or it is the one specified with @setfilename ...
infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
- file=`sed -n '
- /^@setfilename/{
- s/.* \([^ ]*\) *$/\1/
- p
- q
- }' $infile`
+ file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
# ... or it is derived from the source name (dir/f.texi becomes f.info)
test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
fi
@@ -324,13 +317,13 @@
fi
firstarg="$1"
if shift; then
- case $firstarg in
+ case "$firstarg" in
*o*)
firstarg=`echo "$firstarg" | sed s/o//`
tar "$firstarg" "$@" && exit 0
;;
esac
- case $firstarg in
+ case "$firstarg" in
*h*)
firstarg=`echo "$firstarg" | sed s/h//`
tar "$firstarg" "$@" && exit 0
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pygtksourceview-2.2.0/NEWS new/pygtksourceview-2.3.0/NEWS
--- old/pygtksourceview-2.2.0/NEWS 2008-03-10 13:48:03.000000000 +0100
+++ new/pygtksourceview-2.3.0/NEWS 2008-08-10 21:50:45.000000000 +0200
@@ -1,3 +1,12 @@
+News in 2.3.0
+=============
+
+ o add an unofficial distutils based buildsystem that alllows to create
+ win32 installers. (Paolo)
+ o Add new 2.3.0 gtksourceview API. (Gian Mario)
+ o remove gnomevfs dependency, use gio instead. (Gian Mario)
+
+
News in 2.2.0
=============
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pygtksourceview-2.2.0/test/test-widget.py new/pygtksourceview-2.3.0/test/test-widget.py
--- old/pygtksourceview-2.2.0/test/test-widget.py 2008-02-02 14:10:59.000000000 +0100
+++ new/pygtksourceview-2.3.0/test/test-widget.py 2008-08-10 21:21:28.000000000 +0200
@@ -26,7 +26,7 @@
import sys
import gtk
import gtksourceview2 as gtksourceview
-import gnomevfs
+import gio
import pango
@@ -59,15 +59,15 @@
######################################################################
##### load file
-def load_file(buffer, uri):
+def load_file(buffer, path):
buffer.begin_not_undoable_action()
# TODO: use g_io_channel when pygtk supports it
try:
- txt = open(uri.path).read()
+ txt = open(path).read()
except:
return False
buffer.set_text(txt)
- buffer.set_data('filename', uri.path)
+ buffer.set_data('filename', path)
buffer.end_not_undoable_action()
buffer.set_modified(False)
@@ -97,9 +97,13 @@
path = filename
else:
path = os.path.abspath(filename)
- uri = gnomevfs.URI(path)
+ f = gio.File(path)
- mime_type = gnomevfs.get_mime_type(path) # needs ASCII filename, not URI
+ path = f.get_path()
+
+ info = f.query_info("*")
+
+ mime_type = info.get_content_type()
language = None
if mime_type:
@@ -112,7 +116,7 @@
buffer.set_language(language)
buffer.set_highlight_syntax(True)
remove_all_marks(buffer)
- load_file(buffer, uri) # TODO: check return
+ load_file(buffer, path) # TODO: check return
return True
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org