2005-06-22 Mike Kestner <mkestner@novell.com>

* sample/GladeTest.cs : add a menu item signal connect to test for the
	problem described in bug#74946.
	* sample/test.glade : add menubar.

svn path=/trunk/gtk-sharp/; revision=46397
This commit is contained in:
Mike Kestner 2005-06-22 21:44:34 +00:00
parent 3a6e5fa8e2
commit 64dd7f67d4
3 changed files with 44 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2005-06-22 Mike Kestner <mkestner@novell.com>
* sample/GladeTest.cs : add a menu item signal connect to test for the
problem described in bug#74946.
* sample/test.glade : add menubar.
2005-06-22 Mike Kestner <mkestner@novell.com> 2005-06-22 Mike Kestner <mkestner@novell.com>
* sample/GtkDemo/DemoHyperText.cs : replace PersistentData usage that * sample/GtkDemo/DemoHyperText.cs : replace PersistentData usage that

View file

@ -58,6 +58,11 @@ namespace GladeSamples {
{ {
Console.WriteLine ("Button 2 entered"); Console.WriteLine ("Button 2 entered");
} }
public void OnQuitActivated (object o, EventArgs args)
{
Application.Quit ();
}
} }
} }

View file

@ -19,6 +19,39 @@
<property name="homogeneous">False</property> <property name="homogeneous">False</property>
<property name="spacing">0</property> <property name="spacing">0</property>
<child>
<widget class="GtkMenuBar" id="menubar1">
<property name="visible">True</property>
<child>
<widget class="GtkMenuItem" id="menuitem1">
<property name="visible">True</property>
<property name="label" translatable="yes">_File</property>
<property name="use_underline">True</property>
<child>
<widget class="GtkMenu" id="menuitem1_menu">
<child>
<widget class="GtkImageMenuItem" id="quit1">
<property name="visible">True</property>
<property name="label">gtk-quit</property>
<property name="use_stock">True</property>
<signal name="activate" handler="OnQuitActivated" last_modification_time="Wed, 22 Jun 2005 21:34:16 GMT"/>
</widget>
</child>
</widget>
</child>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child> <child>
<widget class="GtkButton" id="button1"> <widget class="GtkButton" id="button1">
<property name="visible">True</property> <property name="visible">True</property>