RV: Using GtkExtra under phpgtk

From: Date: Tue, 06 May 2003 15:08:25 +0000
Subject: RV: Using GtkExtra under phpgtk
Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-467@lists.php.net to get a copy of this message
I have send this to the general list, excuse me... -----Mensaje original----- De: Angel Maza Enviado el: martes, 06 de mayo de 2003 8:58 Para: php-gtk-general@lists.php.net Asunto: Using GtkExtra under phpgtk I'm starting to create plot.defs for making a GtkPlot/Canvas class... ;; -*- scheme -*- ; object definitions ... (object Plot (in-module Gtk) (parent Widget (Gtk)) (c-name GtkPlot) ) (object Canvas (in-module Gtk) (parent Widget (Gtk)) (c-name GtkCanvas) ) (function gtk_plot_canvas_new (c-name gtk_plot_canvas_new) (is-constructor-of GtkCanvas) (return-type GtkWidget*) (parameter (type-and-name gint width)) (parameter (type-and-name gint height)) (parameter (type-and-name gdouble magnification)) ) (function gtk_plot_new_with_size (c-name gtk_plot_new_with_size) (is-constructor-of GtkPlot) (return-type GtkWidget*) (parameter (type-and-name GdkDrawable* drawable)) (parameter (type-and-name gdouble width)) (parameter (type-and-name gdouble height)) ) With the canvas all is ok, I draw it in the window. But with plot I have the next problem. In C, gtk_plot_new_with_size is called using a NULL as GdkDrawable, but in PHP I can't send it a Null, it claims a GtkDrawable widget. Best Regards. Angel Maza.

« previous php.gtk.dev (#467) next »