GtkSheetRange constructor problems
| From: | Ivan Rodriguez | Date: | Fri, 14 Jan 2005 14:12:57 +0000 |
| Subject: | GtkSheetRange constructor problems | ||
| Groups: | php.gtk.dev | ||
| Request: | Send a blank email to php-gtk-dev+get-875@lists.php.net to get a copy of this message | ||
Hi Steph
I try to do what you say, I include:
#define GTKSHEET_RANGE GTK_SHEETRANGE
In the header of extra.overrides but not work :-(
The problem is in the struct generation, I don't know why the generator
no creates gtksheetrange function, all objects has two constructor
functionsm the first GtkWindow for example and the second gtkwindow,
there are two functions but the second has lower letters, and in the
GtkSheetrange no :-(. In this case, the generator don't generate the
second function and this is the error, the generator generates
gtksheet_range function and I don't know why, I read the code of
generator and If I changed something like '_' in the structs generation
the C code crash, the problem is this, why generator generate
gtksheet_range function?
this code is the responsable :-(
/* write the initializer */
fwrite($fp, sprintf($struct_init_tpl,
$struct_module . '_' . $struct_lname,
$struct->in_module . $struct->name,
$struct->ce, implode('', $init_prop_code)));
/* write getter */
fwrite($fp, sprintf($struct_get_tpl,
$struct_module . '_' . $struct_lname,
$struct->in_module . $struct->name,
$struct->ce, implode('', $get_prop_code)));
/* write the constructor */
fwrite($fp, sprintf($struct_construct_tpl,
strtolower($struct->c_name),
$var_list->to_string(),
$specs,
implode(', ', $parse_list),
implode('', $construct_prop_code)));
$functions_decl = sprintf($functions_decl_tpl, $struct_module . '_' .
$struct_lname);
$functions_decl .= sprintf($function_entry_tpl,
$struct->in_module . $struct->name,
strtolower($struct->c_name),
'NULL');
$functions_decl .= sprintf($function_entry_tpl,
$struct_module . $struct_lname,
strtolower($struct->c_name),
'NULL');
$functions_decl .= $this->functions_decl_end;
Any sugestion?
--
Ivan Rodriguez <epplestun@gmail.com>