mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
![Mike Kestner](/assets/img/avatar_default.png)
* 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
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);
|
|
}
|
|
|