mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 12:05:34 +00:00
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:
parent
8bb5dbc321
commit
ed983e3813
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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
20
gtk/MenuItem.custom
Normal 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);
|
||||||
|
}
|
Loading…
Reference in a new issue