diff --git a/ChangeLog b/ChangeLog index 15fb3423c..ceaec38d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2004-05-07 Todd Berman + + * gnome/Gnome.metadata: Hide Druid with_window ctor, map About property. + add some null_ok from bug #57948. + * gnome/Druid.custom: implement with_window ctor for subclassing, and + a 3 paramatered version for when you dont care about the returned + window. another 3 parametered version for when you have want null + parent, and a 2 parametered version for the null parent and the + discarding of the window (THANKS MIKE!) + * gnome/Makefile.am: add new custom. + 2004-05-07 Mike Kestner * gtk/TreeView.custom : make the NodeStore ctor subclassable. diff --git a/gnome/Druid.custom b/gnome/Druid.custom new file mode 100644 index 000000000..69cab5f05 --- /dev/null +++ b/gnome/Druid.custom @@ -0,0 +1,49 @@ + [DllImport("gnomeui-2")] + static extern IntPtr gnome_druid_new_with_window(string title, IntPtr parent, bool close_on_cancel, out IntPtr window); + + public Druid (string title, bool close_on_cancel, out Gtk.Widget window) : base (IntPtr.Zero) + { + if (GetType () != typeof (Druid)) { + CreateNativeObject (new string[0], new GLib.Vlaue [0]); + window = ConstructWithWindow (title, null, close_on_cancel); + return; + } + IntPtr window_handle; + Raw = gnome_druid_new_with_window (title, IntPtr.Zero, close_on_cancel, window_handle); + window = (Gtk.Widget) GLib.Object.GetObject (window_handle); + } + + public Druid (string title, bool close_on_cancel) : base (IntPtr.Zero) + { + if (GetType () != typeof (Druid)) { + CreateNativeObject (new string[0], new GLib.Value[0]); + ConstructWithWindow (title, null, close_on_cancel); + return; + } + IntPtr window_handle; + Raw = gnome_druid_new_with_window (title, IntPtr.Zero, close_on_cancel, out window_handle); + } + + public Druid (string title, Gtk.Window parent, bool close_on_cancel) : base (IntPtr.Zero) + { + if (GetType () != typeof (Druid)) { + CreateNativeObject (new string[0], new GLib.Value[0]); + ConstructWithWindow (title, parent, close_on_cancel); + return; + } + IntPtr window_handle; + Raw = gnome_druid_new_with_window (title, (parent != null) ? parent.Handle : IntPtr.Zero, close_on_cancel, out window_handle); + } + + public Druid (string title, Gtk.Window parent, bool close_on_cancel, out Gtk.Widget window) : base (IntPtr.Zero) + { + if (GetType () != typeof (Druid)) { + CreateNativeObject (new string[0], new GLib.Value[0]); + window = ConstructWithWindow (title, parent, close_on_cancel); + return; + } + IntPtr window_handle; + Raw = gnome_druid_new_with_window(title, (parent != null) ? parent.Handle : IntPtr.Zero, close_on_cancel, out window_handle); + window = (Gtk.Widget)GLib.Object.GetObject (window_handle); + } + diff --git a/gnome/Gnome.metadata b/gnome/Gnome.metadata index 294d4218a..478a7bf0f 100644 --- a/gnome/Gnome.metadata +++ b/gnome/Gnome.metadata @@ -15,6 +15,7 @@ 1 1 1 + logo PromptCleared out out @@ -46,11 +47,19 @@ ArtVpathDash Connected Disconnected + 1 + out + 1 BackClicked CancelClicked FinishClicked NextClicked Prepared + 1 + 1 + 1 + 1 + 1 GetGtkEntry Activated 1 diff --git a/gnome/Makefile.am b/gnome/Makefile.am index a57f91c09..a68152943 100644 --- a/gnome/Makefile.am +++ b/gnome/Makefile.am @@ -56,6 +56,7 @@ customs = \ CanvasShape.custom \ CanvasText.custom \ CanvasWidget.custom \ + Druid.custom \ Font.custom \ FontFamily.custom \ IconList.custom \