mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
![Mike Kestner](/assets/img/avatar_default.png)
* 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
21 lines
580 B
Plaintext
21 lines
580 B
Plaintext
// 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);
|
|
}
|