GtkHTML compile errors

From: Date: Fri, 24 Oct 2003 03:40:33 +0000
Subject: GtkHTML compile errors
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3995@lists.php.net to get a copy of this message
Hi, Currently i am using a php 4.3.3 with php-gtk 0.5.2 on RedHat 9 with GtkHTML 1.1.9 and today i tried to compile php-gtk 1.0.0 library. Today and the last time when i compiled it i got this list of errors : ext/gtkhtml/gen_gtkhtml.c: In function `zif_gtk_html_request_paste': ext/gtkhtml/gen_gtkhtml.c:833: too few arguments to function `gtk_html_request_paste' ext/gtkhtml/gen_gtkhtml.c: In function `zif_gtk_html_set_indent': ext/gtkhtml/gen_gtkhtml.c:1257: warning: passing arg 2 of `gtk_html_set_indent' makes pointer from integer without a cast ext/gtkhtml/gen_gtkhtml.c: In function `zif_gtk_html_paste': ext/gtkhtml/gen_gtkhtml.c:1422: too few arguments to function `gtk_html_paste' ext/gtkhtml/gen_gtkhtml.c: In function `zif_gtk_html_set_cursor_xy': ext/gtkhtml/gen_gtkhtml.c:1681: structure has no member named `button1_pressed' make: *** [ext/gtkhtml/gen_gtkhtml.lo] Error 1 And ... i have a solution for some of them - but i dont know how to publish it in cvs - and i don't know how to put in version dependencies etc. With other words i am a neophyte in this. 1. The definiton for "gtk_html_request_paste" have to looks like this : (method set_indent (of-object HTML (Gtk)) (c-name gtk_html_set_indent) (return-type none) (parameter (type-and-name GByteArray level)) ) 2. The definiton for "gtk_html_request_paste" have to looks like this : (method set_indent (of-object HTML (Gtk)) (c-name gtk_html_set_indent) (return-type none) (parameter (type-and-name GByteArray level)) ) 3. The definiton for "gtk_html_request_paste" have to looks like this : (method paste (of-object HTML (Gtk)) (c-name gtk_html_paste) (return-type none) (parameter (type-and-name gboolean as_cite)) ) 4. In the gtkhtml.overrides in the body of "PHP_FUNCTION(gtk_html_set_cursor_xy)" i comment this peace of code : ... if (/*GTK_HTML (widget)->button1_pressed*/ && html_engine_get_editable (engine)) ... I know this is not a solution of the problem, but actually when i browse through the code in gtkhtml.h and compare it with older versions i saw that this code ( i don't know to which version this code is applicable i saw it in google) : struct _GtkHTML { ... guint in_selection : 1; guint button1_pressed : 1; ... in the 1.1.9 version looks like this : struct _GtkHTML { ... guint in_selection : 1; guint in_selection_drag : 1; // !!! the difference appiars here !!! ... and i was realy confused and i desided to give it to somebody that know how to resolve this problem regards, Radko

« previous php.gtk.general (#3995) next »