2004-05-07 17:32:32 +00:00
|
|
|
// Gtk.RadioMenuItem.custom - Gtk RadioMenuItem customizations
|
2004-02-06 18:56:00 +00:00
|
|
|
//
|
2004-05-07 17:32:32 +00:00
|
|
|
// Authors: John Luke <jluke@cfl.rr.com>
|
|
|
|
// Mike Kestner <mkestner@ximian.com>
|
2004-02-06 18:56:00 +00:00
|
|
|
//
|
2004-05-07 17:32:32 +00:00
|
|
|
// 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;
|
|
|
|
}
|
2004-02-06 18:56:00 +00:00
|
|
|
|
2004-05-07 17:32:32 +00:00
|
|
|
Raw = gtk_radio_menu_item_new_with_mnemonic (IntPtr.Zero, label);
|
|
|
|
}
|