pygtksourceview r85 - trunk
- From: gianmt svn gnome org
- To: svn-commits-list gnome org
- Subject: pygtksourceview r85 - trunk
- Date: Sun, 10 Aug 2008 14:50:46 +0000 (UTC)
Author: gianmt
Date: Sun Aug 10 14:50:45 2008
New Revision: 85
URL: http://svn.gnome.org/viewvc/pygtksourceview?rev=85&view=rev
Log:
Add new gtksourceview API. bump to version 2.3.0
Modified:
trunk/ChangeLog
trunk/configure.ac
trunk/gtksourceview2.defs
Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Sun Aug 10 14:50:45 2008
@@ -2,7 +2,7 @@
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)
@@ -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
Modified: trunk/gtksourceview2.defs
==============================================================================
--- trunk/gtksourceview2.defs (original)
+++ trunk/gtksourceview2.defs Sun Aug 10 14:50:45 2008
@@ -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")
+ '("const-gchar*" "content_type")
+ )
+)
+
;; 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")
+ )
+)
+
+(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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]