Re: Re: GtkSheet style

From: Date: Tue, 11 Jan 2005 06:49:34 +0000
Subject: Re: Re: GtkSheet style
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5431@lists.php.net to get a copy of this message
Hi Alan I add the support of range_set_background with this code: PHP_FUNCTION(gtk_sheet_range_set_background) { zval *bg_color; int row0, col0, rowi, coli; GtkSheetRange *range; NOT_STATIC_METHOD(); if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "iiiiO", &row0, &col0, &rowi, &coli, &bg_color, gdk_color_ce)) return; range->row0 = (gint)row0; range->col0 = (gint)col0; range->rowi = (gint)rowi; range->coli = (gint)coli; gtk_sheet_range_set_background(GTK_SHEET(PHP_GTK_GET(this_ptr)), (GtkSheetRange *) range, PHP_GDK_COLOR_GET(bg_color)); RETURN_NULL(); } .... {"range_set_background", PHP_FN(gtk_sheet_range_set_background), NULL}, I don't know if the code is correctly but works, only the GdkColor is not correctly and I don't know because .... I will work in this to work fine Regards El mar, 11-01-2005 a las 05:40, Alan Knowles escribió: > I suspect I never wrote bindings for GtkSheetRange.. or that method is > not generated due to the const-GtkSheetRange, It's been a long while > since I looked at it.. > > Regards > Alan > > Ivan Rodriguez wrote: > > >Hi > > > >I read the file extra.defs and here the methods are defined > > > >.... > >(method range_set_background > > (of-object Sheet (Gtk)) > > (c-name gtk_sheet_range_set_background) > > (return-type none) > > (parameter (type-and-name const-GtkSheetRange* range)) > > (parameter (type-and-name const-GdkColor* color)) > >) > > > >(method range_set_foreground > > (of-object Sheet (Gtk)) > > (c-name gtk_sheet_range_set_foreground) > > (return-type none) > > (parameter (type-and-name const-GtkSheetRange* range)) > > (parameter (type-and-name const-GdkColor* color)) > >) > >... > > > >But the GtkSheet object don't have the methods to use in PHP, why this? > >I don't understand because other methods works fine. > > > >Any sugestion? > > > >Regards > > > >El lun, 10-01-2005 a las 17:44, Ivan Rodriguez escribió: > > > > > >>Hi > >> > >>I´m trying to set a backgorund color to cell of GtkSheet, but I don´t > >>know how to set, I believe that the object does not support all the > >>metodos of the real object, since they do not appear many methods in > >>the manual, i.e: range_set_background, range_set_border, > >>range_set_font ... and many more > >> > >>My question is, is posible to set a background color to cell? > >> > >>Regards > >> > >> -- Ivan Rodriguez <epplestun@gmail.com>

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