[pybliographer/wip/gtk3] utils: Use Close button for error dialogs
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pybliographer/wip/gtk3] utils: Use Close button for error dialogs
- Date: Tue, 10 Oct 2017 18:06:31 +0000 (UTC)
commit 38a7a490bdf57170899231078857e427997f350a
Author: Germán Poo-Caamaño <gpoo gnome org>
Date: Tue Oct 10 13:59:27 2017 -0300
utils: Use Close button for error dialogs
Pyblio/GnomeUI/Utils.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Pyblio/GnomeUI/Utils.py b/Pyblio/GnomeUI/Utils.py
index 81ffe77..2961265 100644
--- a/Pyblio/GnomeUI/Utils.py
+++ b/Pyblio/GnomeUI/Utils.py
@@ -208,7 +208,7 @@ def error_dialog_s(parent, primary, secondary=None):
dialog = Gtk.MessageDialog(parent,
Gtk.DialogFlags.MODAL | Gtk.DialogFlags.DESTROY_WITH_PARENT,
Gtk.MessageType.ERROR,
- Gtk.ButtonsType.CANCEL, primary)
+ Gtk.ButtonsType.CLOSE, primary)
if secondary:
dialog.format_secondary_text(secondary)
dialog.run()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]