Add MessageDialog.custom
svn path=/trunk/gtk-sharp/; revision=7948
This commit is contained in:
parent
801634a502
commit
c9933656d5
1 changed files with 9 additions and 0 deletions
9
gtk/MessageDialog.custom
Normal file
9
gtk/MessageDialog.custom
Normal file
|
@ -0,0 +1,9 @@
|
|||
[DllImport ("gtk-x11-2.0")]
|
||||
static extern IntPtr gtk_message_dialog_new (IntPtr parent_window, DialogFlags flags, MessageType type, ButtonsType bt, string msg, params object [] args);
|
||||
|
||||
public MessageDialog (Gtk.Window parent_window, DialogFlags flags, MessageType type, ButtonsType bt, string msg)
|
||||
{
|
||||
IntPtr p = (parent_window != null) ? parent_window.Handle : ((IntPtr) 0);
|
||||
|
||||
Raw = gtk_message_dialog_new (p, flags, type, bt, msg, null);
|
||||
}
|
Loading…
Reference in a new issue