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();
|
||
|
}
|
||
|
}
|
||
|
}
|