2 * messagebox.h: MessageBox dialog
5 * Moonlight List (moonlight-list@lists.ximian.com)
7 * Copyright 2009 Novell, Inc. (http://www.novell.com)
9 * See the LICENSE file included with the distribution for details.
13 #ifndef __MESSAGEBOX_H__
14 #define __MESSAGEBOX_H__
20 #include "deployment.h"
24 // much match values from System.Windows.MessageBoxButtons
25 #define MESSAGE_BOX_BUTTON_OK 0
26 #define MESSAGE_BOX_BUTTON_OK_CANCEL 1
28 // much match values from System.Windows.MessageBoxResult
29 #define MESSAGE_BOX_RESULT_NONE 0
30 #define MESSAGE_BOX_RESULT_OK 1
31 #define MESSAGE_BOX_RESULT_CANCEL 2
32 #define MESSAGE_BOX_RESULT_YES 6
33 #define MESSAGE_BOX_RESULT_NO 7
35 // older gtk+ (like 2.8 used in SLED10) don't support icon-less GTK_MESSAGE_OTHER
36 #ifndef GTK_MESSAGE_OTHER
37 #define GTK_MESSAGE_OTHER GTK_MESSAGE_INFO
40 /* @GeneratePInvoke */
41 int message_box_show (const char *caption
, const char* text
, int buttons
);