GtkSharp/gtk/ItemFactory.custom
Mike Kestner 496c067424 2004-05-10 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : hide some ctors and map some prop names.
	* gtk/Makefile.am : add new customs.
	* gtk/ItemFactory.custom : implement ctor for subclassing.
	* gtk/Plug.custom : implement ctors for subclassing.

svn path=/trunk/gtk-sharp/; revision=27042
2004-05-10 17:37:02 +00:00

22 lines
775 B
Plaintext

// Gtk.ItemFactory.custom - Gtk ItemFactory 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_item_factory_new(IntPtr container_type, string path, IntPtr accel_group);
public ItemFactory (GLib.GType container_type, string path, Gtk.AccelGroup accel_group) : base (IntPtr.Zero)
{
if (GetType () != typeof (ItemFactory)) {
CreateNativeObject (new string [0], new GLib.Value [0]);
Construct (container_type, path, accel_group);
return;
}
Raw = gtk_item_factory_new(container_type.Val, path, (accel_group != null) ? accel_group.Handle : IntPtr.Zero);
}