GtkSheet background style

From: Date: Tue, 11 Jan 2005 18:10:26 +0000
Subject: GtkSheet background style
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5429@lists.php.net to get a copy of this message
Hi people, I edit the gen_extra.c file and I write this: PHP_FUNCTION(gtk_sheet_range_set_background) { gint row0, col0, rowi, coli; GtkSheetRange *range; zval *php_color; GdkColor *color; NOT_STATIC_METHOD(); if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "iiiiO", &row0, &col0, &rowi, &coli, &php_color, gdk_color_ce)) return; range->row0 = (gint)row0; range->col0 = (gint)col0; range->rowi = (gint)rowi; range->coli = (gint)coli; color = PHP_GDK_COLOR_GET(php_color); gtk_sheet_range_set_background(GTK_SHEET(PHP_GTK_GET(this_ptr)), (GtkSheetRange *) range, color); RETURN_NULL(); } .... {"range_set_background", PHP_FN(gtk_sheet_range_set_background), NULL}, The code works fine, but I have one problem, the color is not the orignal color, for example: $bgcolor = &new GdkColor("yellow"); $sheet->range_set_background(0, 0, 0, 2, $bgcolor); This code colorize the first 3 colums of the first row, but the background color is not yellow, the color change when I start the script, and puts green, red or other colors, why this? Any sugestion? -- Ivan Rodriguez <epplestun@gmail.com>

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