mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-11 22:15:48 +00:00
133a5c8715
* gtk/Gtk.metadata : hide some *MenuItem ctors. * gtk/CheckMenuItem.custom : implement string ctor. * gtk/ImageMenuItem.custom : implement string ctor. * gtk/MenuItem.custom : use AccelLabel. * gtk/RadioMenuItem.custom : fix string ctor for subclassing. * gtk/Makefile.am : add new customs. svn path=/trunk/gtk-sharp/; revision=26935
21 lines
598 B
Plaintext
21 lines
598 B
Plaintext
// Gtk.RadioMenuItem.custom - Gtk RadioMenuItem customizations
|
|
//
|
|
// Authors: John Luke <jluke@cfl.rr.com>
|
|
// Mike Kestner <mkestner@ximian.com>
|
|
//
|
|
// Copyright (c) 2004 Novell, Inc.
|
|
|
|
public RadioMenuItem (string label) : base (IntPtr.Zero)
|
|
{
|
|
if (GetType() != typeof (RadioMenuItem)) {
|
|
CreateNativeObject (new string [0], new GLib.Value [0]);
|
|
AccelLabel al = new AccelLabel ("");
|
|
al.TextWithMnemonic = label;
|
|
al.SetAlignment (0.0f, 0.5f);
|
|
Add (al);
|
|
al.AccelWidget = this;
|
|
}
|
|
|
|
Raw = gtk_radio_menu_item_new_with_mnemonic (IntPtr.Zero, label);
|
|
}
|