aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx/Ui/Applet/ErrorAppletDialog.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx/Ui/Applet/ErrorAppletDialog.cs')
-rw-r--r--Ryujinx/Ui/Applet/ErrorAppletDialog.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/Ryujinx/Ui/Applet/ErrorAppletDialog.cs b/Ryujinx/Ui/Applet/ErrorAppletDialog.cs
new file mode 100644
index 00000000..a51d5324
--- /dev/null
+++ b/Ryujinx/Ui/Applet/ErrorAppletDialog.cs
@@ -0,0 +1,27 @@
+using Gtk;
+
+namespace Ryujinx.Ui.Applet
+{
+ internal class ErrorAppletDialog : MessageDialog
+ {
+ public ErrorAppletDialog(Window parentWindow, DialogFlags dialogFlags, MessageType messageType, string[] buttons) : base(parentWindow, dialogFlags, messageType, ButtonsType.None, null)
+ {
+ int responseId = 0;
+
+ if (buttons != null)
+ {
+ foreach (string buttonText in buttons)
+ {
+ AddButton(buttonText, responseId);
+ responseId++;
+ }
+ }
+ else
+ {
+ AddButton("OK", 0);
+ }
+
+ ShowAll();
+ }
+ }
+} \ No newline at end of file