mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 15:45:40 +00:00
22 lines
775 B
Plaintext
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);
|
||
|
}
|
||
|
|