cvs: php-gtk /ext/scintilla php_scintilla.c php_scintilla.h scintilla.defs
| From: | Anant Narayanan | Date: | Mon, 06 Mar 2006 22:49:26 +0000 |
| Subject: | cvs: php-gtk /ext/scintilla php_scintilla.c php_scintilla.h scintilla.defs | ||
| Groups: | php.gtk.cvs | ||
| Request: | Send a blank email to php-gtk-cvs+get-2167@lists.php.net to get a copy of this message | ||
anant Mon Mar 6 22:49:26 2006 UTC
Modified files:
/php-gtk/ext/scintilla php_scintilla.c php_scintilla.h
scintilla.defs
Log:
Must be my lucky day! GtkScintilla also compiles now :)
Also removed empty extension directories on Steph's request.
http://cvs.php.net/viewcvs.cgi/php-gtk/ext/scintilla/php_scintilla.c?r1=1.7&r2=1.8&diff_format=u
Index: php-gtk/ext/scintilla/php_scintilla.c
diff -u php-gtk/ext/scintilla/php_scintilla.c:1.7 php-gtk/ext/scintilla/php_scintilla.c:1.8
--- php-gtk/ext/scintilla/php_scintilla.c:1.7 Fri Mar 3 14:49:06 2006
+++ php-gtk/ext/scintilla/php_scintilla.c Mon Mar 6 22:49:26 2006
@@ -18,7 +18,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: php_scintilla.c,v 1.7 2006/03/03 14:49:06 anant Exp $ */
+/* $Id: php_scintilla.c,v 1.8 2006/03/06 22:49:26 anant Exp $ */
#include "php_scintilla.h"
@@ -30,8 +30,8 @@
PHP_GTK_XINIT_FUNCTION(scintilla)
{
- php_scintilla_register_classes();
- php_scintilla_register_constants("SCINTILLA_");
+ phpg_gtkscintilla_register_classes();
+ phpg_gtkscintilla_register_constants("SCINTILLA_");
return SUCCESS;
}
http://cvs.php.net/viewcvs.cgi/php-gtk/ext/scintilla/php_scintilla.h?r1=1.6&r2=1.7&diff_format=u
Index: php-gtk/ext/scintilla/php_scintilla.h
diff -u php-gtk/ext/scintilla/php_scintilla.h:1.6 php-gtk/ext/scintilla/php_scintilla.h:1.7
--- php-gtk/ext/scintilla/php_scintilla.h:1.6 Fri Mar 3 14:49:06 2006
+++ php-gtk/ext/scintilla/php_scintilla.h Mon Mar 6 22:49:26 2006
@@ -18,7 +18,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: php_scintilla.h,v 1.6 2006/03/03 14:49:06 anant Exp $ */
+/* $Id: php_scintilla.h,v 1.7 2006/03/06 22:49:26 anant Exp $ */
#ifndef PHP_SCINTILLA_H
#define PHP_SCINTILLA_H
@@ -32,8 +32,8 @@
extern php_gtk_ext_entry scintilla_ext_entry;
#define php_gtk_ext_scintilla_ptr &scintilla_ext_entry
-void phpg_scintilla_register_classes(void);
-void phpg_scintilla_register_constants(const char *strip_prefix);
+void phpg_gtkscintilla_register_classes(void);
+void phpg_gtkscintilla_register_constants(const char *strip_prefix);
#else
http://cvs.php.net/viewcvs.cgi/php-gtk/ext/scintilla/scintilla.defs?r1=1.5&r2=1.6&diff_format=u
Index: php-gtk/ext/scintilla/scintilla.defs
diff -u php-gtk/ext/scintilla/scintilla.defs:1.5 php-gtk/ext/scintilla/scintilla.defs:1.6
--- php-gtk/ext/scintilla/scintilla.defs:1.5 Fri Mar 3 14:49:06 2006
+++ php-gtk/ext/scintilla/scintilla.defs Mon Mar 6 22:49:26 2006
@@ -13,7 +13,7 @@
(define-function gtk_scintilla_get_type
(c-name "gtk_scintilla_get_type")
- (return-type "guint")
+ (return-type "GType")
)
(define-function gtk_scintilla_new
@@ -22,6 +22,26 @@
(return-type "GtkWidget*")
)
+(define-method add_text
+ (of-object "GtkScintilla")
+ (c-name "gtk_scintilla_add_text")
+ (return-type "none")
+ (parameters
+ '("gint" "length")
+ '("const-gchar*" "text")
+ )
+)
+
+(define-method insert_text
+ (of-object "GtkScintilla")
+ (c-name "gtk_scintilla_insert_text")
+ (return-type "none")
+ (parameters
+ '("glong" "pos")
+ '("const-gchar*" "text"))
+)
+
+;; Added to stop errors
(define-object Frame
(in-module "Gtk")
(parent "GtkBin")