mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-25 18:05:45 +00:00
24 lines
794 B
C#
24 lines
794 B
C#
|
using Gtk;
|
||
|
using System.Reflection;
|
||
|
|
||
|
namespace Ryujinx.Ui
|
||
|
{
|
||
|
internal class GtkDialog
|
||
|
{
|
||
|
internal static void CreateErrorDialog(string errorMessage)
|
||
|
{
|
||
|
MessageDialog errorDialog = new MessageDialog(null, DialogFlags.Modal, MessageType.Error, ButtonsType.Ok, null)
|
||
|
{
|
||
|
Title = "Ryujinx - Error",
|
||
|
Icon = new Gdk.Pixbuf(Assembly.GetExecutingAssembly(), "Ryujinx.Ui.assets.Icon.png"),
|
||
|
Text = "Ryujinx has encountered an error",
|
||
|
SecondaryText = errorMessage,
|
||
|
WindowPosition = WindowPosition.Center
|
||
|
};
|
||
|
errorDialog.SetSizeRequest(100, 20);
|
||
|
errorDialog.Run();
|
||
|
errorDialog.Dispose();
|
||
|
}
|
||
|
}
|
||
|
}
|