diff --git a/ChangeLog b/ChangeLog index 310508bbd..efe36ea1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-05-10 Mike Kestner + + * 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. + 2004-05-07 Todd Berman * gnome/Makefile.am: add DruidPageEdge.custom diff --git a/gtk/Gtk.metadata b/gtk/Gtk.metadata index b924d2f05..aa7203da1 100644 --- a/gtk/Gtk.metadata +++ b/gtk/Gtk.metadata @@ -112,10 +112,16 @@ 1 1 1 + pixbuf_animation + file + icon_set + icon_size + stock + icon_size 1 SurroundingDeleted 1 - 1 + 1 GetItem GetWidget Deselected @@ -156,6 +162,8 @@ Destroyed 1 1 + 1 + 1 1 GtkWidget 1 @@ -182,6 +190,7 @@ 1 1 1 + tag_table ApplyTag DeleteMark out diff --git a/gtk/ItemFactory.custom b/gtk/ItemFactory.custom new file mode 100644 index 000000000..d1b032419 --- /dev/null +++ b/gtk/ItemFactory.custom @@ -0,0 +1,21 @@ +// Gtk.ItemFactory.custom - Gtk ItemFactory class customizations +// +// Author: Mike Kestner +// +// 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); + } + diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 43c10aee1..2d6a97902 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -48,6 +48,7 @@ customs = \ IconFactory.custom \ IconSet.custom \ ImageMenuItem.custom \ + ItemFactory.custom \ Label.custom \ Layout.custom \ ListStore.custom \ @@ -56,6 +57,7 @@ customs = \ Notebook.custom \ Object.custom \ Paned.custom \ + Plug.custom \ RadioButton.custom \ RadioMenuItem.custom \ ScrolledWindow.custom \ diff --git a/gtk/Plug.custom b/gtk/Plug.custom new file mode 100644 index 000000000..3e0c7ef1f --- /dev/null +++ b/gtk/Plug.custom @@ -0,0 +1,34 @@ +// Gtk.Plug.custom - Gtk Plug class customizations +// +// Author: Mike Kestner +// +// 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_plug_new(uint socket_id); + + public Plug (uint socket_id) : base (IntPtr.Zero) + { + if (GetType () != typeof (Plug)) { + CreateNativeObject (new string [0], new GLib.Value [0]); + Construct (socket_id); + return; + } + Raw = gtk_plug_new(socket_id); + } + + [DllImport("libgtk-win32-2.0-0.dll")] + static extern IntPtr gtk_plug_new_for_display(IntPtr display, uint socket_id); + + public Plug (Gdk.Display display, uint socket_id) : base (IntPtr.Zero) + { + if (GetType () != typeof (Plug)) { + CreateNativeObject (new string [0], new GLib.Value [0]); + ConstructForDisplay (display, socket_id); + return; + } + Raw = gtk_plug_new_for_display(display.Handle, socket_id); + } +