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