revert jeff's last commit since it breaks the build
[moon.git] / src / messagebox.h
blob3a24556ade9926384f21369610c22af1021e3111
1 /*
2 * messagebox.h: MessageBox dialog
4 * Contact:
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__
16 #include <glib.h>
17 #include <gtk/gtk.h>
19 #include "runtime.h"
20 #include "deployment.h"
22 G_BEGIN_DECLS
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
38 #endif
40 /* @GeneratePInvoke */
41 int message_box_show (const char *caption, const char* text, int buttons);
43 G_END_DECLS
45 #endif