Specify the message_type for ErrorDialog.

It doesn't seem to do anything for me; not sure why. Maybe GNOME does not like icons in message boxes anymore, but I can't find documentation for this.
This commit is contained in:
Daniel Johnson 2024-02-04 08:55:26 -05:00 committed by Mathieu Comandon
parent 1e60035441
commit 1b31108157

View file

@ -266,7 +266,7 @@ class ErrorDialog(Gtk.MessageDialog):
"""Display an error message."""
def __init__(self, error, secondary=None, parent=None):
super().__init__(buttons=Gtk.ButtonsType.OK, parent=parent)
super().__init__(message_type=Gtk.MessageType.ERROR, buttons=Gtk.ButtonsType.OK, parent=parent)
# Some errors contain < and > and lok like markup, but aren't-
# we'll need to protect the message box against this