2004-05-07 Mike Kestner <mkestner@ximian.com>

* gtk/Gtk.metadata : hide some MenuItem ctors.
	* gtk/Makefile.am : add the new custom.
	* gtk/MenuItem.custom : implement the string ctor.

svn path=/trunk/gtk-sharp/; revision=26929
This commit is contained in:
Mike Kestner 2004-05-07 15:48:25 +00:00
parent 8bb5dbc321
commit ed983e3813
4 changed files with 29 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2004-05-07 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : hide some MenuItem ctors.
* gtk/Makefile.am : add the new custom.
* gtk/MenuItem.custom : implement the string ctor.
2004-05-07 Mike Kestner <mkestner@ximian.com> 2004-05-07 Mike Kestner <mkestner@ximian.com>
* sample/GnomeHelloWorld.cs : guard against null args.Event in the * sample/GnomeHelloWorld.cs : guard against null args.Event in the

View file

@ -132,6 +132,8 @@
<attr path="/api/namespace/object[@cname='GtkListStore']/method[@name='Remove']/*/*[@name='iter']" name="pass_as">ref</attr> <attr path="/api/namespace/object[@cname='GtkListStore']/method[@name='Remove']/*/*[@name='iter']" name="pass_as">ref</attr>
<attr path="/api/namespace/object[@cname='GtkListStore']/method[@name='SetColumnTypes']/*/*[@name='types']" name="array">1</attr> <attr path="/api/namespace/object[@cname='GtkListStore']/method[@name='SetColumnTypes']/*/*[@name='types']" name="array">1</attr>
<attr path="/api/namespace/object[@cname='GtkMenuItem']/constructor[@cname='gtk_menu_item_new_with_mnemonic']" name="preferred">1</attr> <attr path="/api/namespace/object[@cname='GtkMenuItem']/constructor[@cname='gtk_menu_item_new_with_mnemonic']" name="preferred">1</attr>
<attr path="/api/namespace/object[@cname='GtkMenuItem']/constructor[@cname='gtk_menu_item_new_with_mnemonic']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkMenuItem']/constructor[@cname='gtk_menu_item_new_with_label']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkMenuItem']/method[@name='SetSubmenu']/*/*[@type='GtkWidget*']" name="null_ok">1</attr> <attr path="/api/namespace/object[@cname='GtkMenuItem']/method[@name='SetSubmenu']/*/*[@type='GtkWidget*']" name="null_ok">1</attr>
<attr path="/api/namespace/object[@cname='GtkMenuItem']/signal[@name='Activate']" name="name">Activated</attr> <attr path="/api/namespace/object[@cname='GtkMenuItem']/signal[@name='Activate']" name="name">Activated</attr>
<attr path="/api/namespace/object[@cname='GtkMenuItem']/signal[@name='ChildNotify']" name="name">ChildNotified</attr> <attr path="/api/namespace/object[@cname='GtkMenuItem']/signal[@name='ChildNotify']" name="name">ChildNotified</attr>

View file

@ -49,6 +49,7 @@ customs = \
Layout.custom \ Layout.custom \
ListStore.custom \ ListStore.custom \
MessageDialog.custom \ MessageDialog.custom \
MenuItem.custom \
Notebook.custom \ Notebook.custom \
Object.custom \ Object.custom \
Paned.custom \ Paned.custom \

20
gtk/MenuItem.custom Normal file
View file

@ -0,0 +1,20 @@
// Gtk.MenuItem.custom - Gtk MenuItem class customizations
//
// Author: Mike Kestner <mkestner@ximian.com>
//
// Copyright (C) 2004 Novell, Inc.
//
// This code is inserted after the automatically generated code.
[DllImport ("libgtk-win32-2.0-0.dll")]
static extern IntPtr gtk_menu_item_new_with_mnemonic (string label);
public MenuItem (string label) : base (IntPtr.Zero)
{
if (GetType() != typeof (MenuItem)) {
CreateNativeObject (new string [0], new GLib.Value [0]);
Add (new Label (label));
}
Raw = gtk_menu_item_new_with_mnemonic (label);
}