mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 18:05:32 +00:00
50c0b90864
* gtk/Gtk.metadata : map AccelLabel ctor parm to prop and hide Adjustment ctor. * gtk/Adjustment.custom : add set accessors for Upper/Lower and implement ctor with subclassing. * gtk/CheckMenuItem.custom : return from subclass branch. * gtk/ImageMenuItem.custom : return from subclass branch. * gtk/MenuItem.custom : return from subclass branch. * gtk/RadioMenuItem.custom : return from subclass branch. * gtk/glue/adjustment.c : add setters for lower/upper. svn path=/trunk/gtk-sharp/; revision=26938
22 lines
610 B
Plaintext
22 lines
610 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;
|
|
return;
|
|
}
|
|
|
|
Raw = gtk_radio_menu_item_new_with_mnemonic (IntPtr.Zero, label);
|
|
}
|