oups! with syntax change it miss a condition in the function
print_initializer
here the corrective patch
Le samedi 23 juillet 2005 à 01:23 +0200, Jean-Yves Lefort a écrit :
> On Fri, 22 Jul 2005 13:21:22 -0700
> George <jirka_at_5z.com> wrote:
>
> > Here are the news in 2.0.12:
> >
> > * libglade support (see manpage) (Nicolas Brugier)
>
> It's broken.
>
> === input
> class Test:Window from Gtk:Window (GladeXML "test.glade" "root")
> {
> private Gtk:Widget *a GladeXML;
> private Gtk:Widget *b GladeXML;
>
> init (self)
> {
> }
> }
> ===
>
> === output
> [...]
> #line 6 "test.gob"
> static void
> test_window_init (TestWindow * self G_GNUC_UNUSED)
> #line 149 "test-window.c"
> {
> #define __GOB_FUNCTION__ "Test:Window::init"
> self->_priv = G_TYPE_INSTANCE_GET_PRIVATE(self,TEST_TYPE_WINDOW,TestWindowPrivate);
> {
> GtkWidget * root;
> o->_priv->_glade_xml = glade_xml_new("test.glade", "root", NULL);
> root = glade_xml_get_widget(o->_priv->_glade_xml, "root");
> gtk_widget_show(root);
> gtk_container_add(GTK_CONTAINER(o), root);
> glade_xml_signal_autoconnect_full(o->_priv->_glade_xml, (GladeXMLConnectFunc)___glade_xml_connect_foreach, (gpointer)o);
> }
> self->_priv->a = {
> GtkWidget * root;
> o->_priv->_glade_xml = glade_xml_new("test.glade", "root", NULL);
> root = glade_xml_get_widget(o->_priv->_glade_xml, "root");
> gtk_widget_show(root);
> gtk_container_add(GTK_CONTAINER(o), root);
> glade_xml_signal_autoconnect_full(o->_priv->_glade_xml, (GladeXMLConnectFunc)___glade_xml_connect_foreach, (gpointer)o);
> }
> ;
> self->_priv->b = {
> GtkWidget * root;
> o->_priv->_glade_xml = glade_xml_new("test.glade", "root", NULL);
> root = glade_xml_get_widget(o->_priv->_glade_xml, "root");
> gtk_widget_show(root);
> gtk_container_add(GTK_CONTAINER(o), root);
> glade_xml_signal_autoconnect_full(o->_priv->_glade_xml, (GladeXMLConnectFunc)___glade_xml_connect_foreach, (gpointer)o);
> }
> ;
> self->_priv->a = (GtkWidget * )glade_xml_get_widget(self->_priv->_glade_xml, "a");
> self->_priv->b = (GtkWidget * )glade_xml_get_widget(self->_priv->_glade_xml, "b");
> }
> #undef __GOB_FUNCTION__
> [...]
> ===
>
This archive was generated by hypermail 2.2.0 : Sun Apr 17 2011 - 21:05:02 CDT