From 79c93e89fd543c0897ca00b527aab67ef40ae916 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Wed, 20 Nov 2002 03:28:22 +0000 Subject: [PATCH] 2002-11-19 Mike Kestner * gtk/Dialog.custom : bind another ctor svn path=/trunk/gtk-sharp/; revision=9109 --- ChangeLog | 5 +++++ gtk/Dialog.custom | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5d337ae87..235d6b2e6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-11-19 Mike Kestner + + * gtk/Dialog.custom : bind another ctor + 2002-11-17 Radek Doulik * glib/Value.cs: cast Typefundamentals.* to uint (GType is @@ -10,6 +14,7 @@ * pango/Scale.cs: added file containing constants for text widgets needing Pango Scale Attribute +2002-11-13 Vladimir Vukicevic 2002-11-13 Vladimir Vukicevic * gtk/CanvasItem.custom: use base() to set Raw in constructor, so diff --git a/gtk/Dialog.custom b/gtk/Dialog.custom index 7f7e79c80..d879e07e6 100644 --- a/gtk/Dialog.custom +++ b/gtk/Dialog.custom @@ -2,12 +2,21 @@ // Gtk.Dialog.custom - Gtk Dialog class customizations // // Author: Duncan Mak (duncan@ximian.com) +// Mike Kestner (mkestner@speakeasy.net) // -// Copyright (C) 2002 Ximian, Inc. +// Copyright (C) 2002 Ximian, Inc. and Mike Kestner // // This code is inserted after the automatically generated code. // +// Manually wrap until we figure out how to gen ellipses. +[DllImport("gtk-x11-2.0")] +static extern IntPtr gtk_dialog_new_with_buttons (string title, IntPtr i, int flags, IntPtr dummy); +public Dialog (string title, Gtk.Window parent, Gtk.DialogFlags flags) : base() +{ + Raw = gtk_dialog_new_with_buttons (title, parent.Handle, (int) flags, IntPtr.Zero); +} + [DllImport("gtksharpglue")] static extern IntPtr gtksharp_dialog_get_vbox (IntPtr i); public Gtk.VBox VBox {