mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-12 02:01:06 +01: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();
|
||
|
}
|
||
|
}
|
||
|
}
|