[mono-vb] Glade Autoconnect problem
nemesis545
nemessis545 at gmail.com
Tue Nov 30 08:07:33 EST 2010
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.
More information about the Mono-vb
mailing list