Fw: GtkSheetRange constructor problems
| From: | Steph | Date: | Fri, 14 Jan 2005 14:46:34 +0000 |
| Subject: | Fw: GtkSheetRange constructor problems | ||
| Groups: | php.gtk.dev | ||
| Request: | Send a blank email to php-gtk-dev+get-873@lists.php.net to get a copy of this message | ||
Helps some if I hit the right button...
----- Original Message -----
From: "Steph" <steph@zend.com>
To: "Ivan Rodriguez" <epplestun@gmail.com>
Sent: Friday, January 14, 2005 4:45 PM
Subject: Re: GtkSheetRange constructor problems
> grr :(
>
> It was a slightly different problem with GtkComboButton (where I stole
that
> thought from). The thing was actually called gtkcombobutton throughout
the
> C file (unusually) and the generator tried to make it live with
> gtk_combo_button...
>
> I wonder if getting the case right would help any? e.g. #define
> gtksheet_range gtksheetrange
>
> I'm not sure because I don't know where it's coming in from. Andrei, you
> know the generator code (if you can remember that far back? ;) - any idea
> where would be the best place to prevent GtkSheet_Range from occuring at a
> crucial point? It's getting everything right apart from the function
> entries.
>
> static function_entry php_gtk_sheet_range_functions[] = {
> {"GtkSheetRange", PHP_FN(gtksheetrange), NULL},
> {"gtksheet_range", PHP_FN(gtksheetrange), NULL},
> {NULL, NULL, NULL}
> };
>
> This is the only thing stopping Ivan from being a full-on php.net
developer
> at present :)
>
> - Steph
>
> ----- Original Message -----
> From: "Ivan Rodriguez" <epplestun@gmail.com>
> To: <steph@zend.com>; <andrei@gravitonic.com>; <php-gtk-dev@lists.php.net>
> Sent: Friday, January 14, 2005 4:12 PM
> Subject: GtkSheetRange constructor problems
>
>
> > 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>
>