[mono-vb] Glade Autoconnect problem

Rolf Bjarne Kvinge rolflists at ya.com
Tue Nov 30 16:28:37 EST 2010


Hi,

Exactly what happens? Compiler error? Runtime error?

Rolf

>-----Original Message-----
>From: mono-vb-bounces at lists.ximian.com [mailto:mono-vb-
>bounces at lists.ximian.com] On Behalf Of nemesis545
>Sent: martes, 30 de noviembre de 2010 14:08
>To: mono-vb at lists.ximian.com
>Subject: [mono-vb] Glade Autoconnect problem
>
>
>Autoconnect can't define a handler for singals of glade interface .  why?
>
>glade :interfaz.glade
><?xml version="1.0"?>
><glade-interface>
>  <!-- interface-requires gtk+ 2.16 -->
>  <!-- interface-naming-policy project-wide -->
>  <widget class="GtkWindow" id="window1">
>    <property name="visible">True</property>
>    <property name="destroy_with_parent">True</property>
>    <signal name="destroy" handler="on_window1_destroy"/>
>    <child>
>      <widget class="GtkVBox" id="vbox1">
>        <property name="visible">True</property>
>        <property name="orientation">vertical</property>
>        <child>
>          <widget class="GtkLabel" id="label1">
>            <property name="visible">True</property>
>            <property name="label" translatable="yes">label</property>
>          </widget>
>          <packing>
>            <property name="position">0</property>
>          </packing>
>        </child>
>        <child>
>          <widget class="GtkButton" id="button1">
>            <property name="label" translatable="yes">button</property>
>            <property name="visible">True</property>
>            <property name="can_focus">True</property>
>            <property name="receives_default">True</property>
>          </widget>
>          <packing>
>            <property name="position">1</property>
>          </packing>
>        </child>
>      </widget>
>    </child>
>  </widget>
></glade-interface>
>monobasic: Main.vb
>
>Imports System
>Imports Gtk
>imports Glade
>
>Public Class MainClass
>
>       Public Shared Sub Main ()
>		Application.Init ()
>		dim interfaz as new Glade.XML
("./interfaz.glade","window1","")
>		interfaz.Autoconnect(interfaz)
>                Application.Run ()
>	End Sub
>        Sub on_window1_destroy ( ByVal obj as object, ByVal args as
>DeleteEventArgs )
>    	         Application.Quit()
>	End Sub
>End Class
>
>--
>View this message in context: http://mono.1490590.n4.nabble.com/Glade-
>Autoconnect-problem-tp3065335p3065335.html
>Sent from the Mono - VB mailing list archive at Nabble.com.
>_______________________________________________
>Mono-vb mailing list
>Mono-vb at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-vb



More information about the Mono-vb mailing list