com gtk/php-gtk: Added some more defs for sourceview and some misc fixes. Coverage now at 80% :): ext/sourceview/modifyGenerated.php ext/sourceview/sourceview.defs ext/sourceview/sourceview.overrides
[email protected] (David Soria Parra) Thu, 23 Mar 2006 23:19:30 +0000
| Newsgroups | php.gtk.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit: 19cf4ad4515a6b2a2c4b9e91d02b8844db313787 Author: Anant Narayanan <[email protected]> Thu, 23 Mar 2006 23:19:30 +0000 Parents: 38dac73ecc482e31fafd781d94501d4a8e27555e Branches: master Link: http://git.php.net/?p=gtk/php-gtk.git;a=commitdiff;h=19cf4ad4515a6b2a2c4b9e91d02b8844db313787 Log: Added some more defs for sourceview and some misc fixes. Coverage now at 80% :) Changed paths: M ext/sourceview/modifyGenerated.php M ext/sourceview/sourceview.defs M ext/sourceview/sourceview.overrides Diff: 19cf4ad4515a6b2a2c4b9e91d02b8844db313787 diff --git a/ext/sourceview/modifyGenerated.php b/ext/sourceview/modifyGenerated.php index 4544bd7..47dd13f 100644 --- a/ext/sourceview/modifyGenerated.php +++ b/ext/sourceview/modifyGenerated.php @@ -4,7 +4,7 @@ $contents = file("ext/sourceview/gen_sourceview.c"); $tmpFile = fopen("ext/sourceview/gen_temp.c", "w+"); -for($i=0; $i<5; $i++) { +for($i=0; $i<16; $i++) { fwrite($tmpFile, $contents[$i]); } @@ -13,9 +13,9 @@ fwrite($tmpFile, "PHP_GTK_EXPORT_CE(gdkpixbuf_ce);\n"); fwrite($tmpFile, "PHP_GTK_EXPORT_CE(gtktextbuffer_ce);\n"); fwrite($tmpFile, "PHP_GTK_EXPORT_CE(gtktexttagtable_ce);\n"); fwrite($tmpFile, "PHP_GTK_EXPORT_CE(gtktextview_ce);\n"); -fwrite($tmpFile, "PHP_GTK_EXPORT_CE(gtktextmark_ce);\n"); +fwrite($tmpFile, "PHP_GTK_EXPORT_CE(gtktextmark_ce);"); -for($i=5; $i<=count($contents); $i++) { +for($i=16; $i<=count($contents); $i++) { fwrite($tmpFile, $contents[$i]); } diff --git a/ext/sourceview/sourceview.defs b/ext/sourceview/sourceview.defs index 315158b..9eaa020 100644 --- a/ext/sourceview/sourceview.defs +++ b/ext/sourceview/sourceview.defs @@ -13,6 +13,20 @@ (gtype-id "GTK_TYPE_SOURCE_LANGUAGE") ) +(define-object SourceLanguagesManager + (in-module "Gtk") + (parent "GObject") + (c-name "GtkSourceLanguagesManager") + (gtype-id "GTK_TYPE_SOURCE_LANGUAGES_MANAGER") +) + +(define-object SourcePrintJob + (in-module "Gtk") + (parent "GObject") + (c-name "GtkSourcePrintJob") + (gtype-id "GTK_TYPE_SOURCE_PRINT_JOB") +) + (define-object SourceTagTable (in-module "Gtk") (parent "GtkTextTagTable") @@ -64,6 +78,8 @@ (gtype-id "GTK_TYPE_SOURCE_MARKER") ) +;; Enumerations and flags ... + ;; From /usr/include/gtksourceview-1.0/gtksourceview/gtksourcebuffer.h (define-function gtk_source_buffer_get_type diff --git a/ext/sourceview/sourceview.overrides b/ext/sourceview/sourceview.overrides index 90c6bde..f720284 100644 --- a/ext/sourceview/sourceview.overrides +++ b/ext/sourceview/sourceview.overrides @@ -2,6 +2,17 @@ %% headers #include <gtksourceview/gtksourceview.h> +#include <gtksourceview/gtksourcebuffer.h> +#include <gtksourceview/gtksourceiter.h> +#include <gtksourceview/gtksourcelanguage.h> +#include <gtksourceview/gtksourcelanguagesmanager.h> +#include <gtksourceview/gtksourcemarker.h> +#include <gtksourceview/gtksourceprintjob.h> +#include <gtksourceview/gtksourcestylescheme.h> +#include <gtksourceview/gtksourcetag.h> +#include <gtksourceview/gtksourcetagstyle.h> +#include <gtksourceview/gtksourcetagtable.h> +#include <gtksourceview/gtksourceview-typebuiltins.h> #include "ext/gtk+/php_gtk+.h" %% constants