Sha256: dc8aa48bafa47e34c84d2f1d4b3909ae0e7ae3d2dd3a007c079f8311517780dd
Contents?: true
Size: 909 Bytes
Versions: 5
Compression:
Stored size: 909 Bytes
Contents
# frozen_string_literal: true # This file is part of Alexandria. # # See the file README.md for authorship and licensing information. require "alexandria/ui/alert_dialog" module Alexandria module UI class SkipEntryDialog < AlertDialog include GetText include Logging GetText.bindtextdomain(Alexandria::TEXTDOMAIN, charset: "UTF-8") def initialize(parent, message) super(parent, _("Error while importing"), Gtk::Stock::DIALOG_QUESTION, [[Gtk::Stock::CANCEL, Gtk::ResponseType::CANCEL], [_("_Continue"), Gtk::ResponseType::OK]], message) log.debug { "Opened SkipEntryDialog #{inspect}" } dialog.default_response = Gtk::ResponseType::CANCEL end def continue? show_all && (@response = run) destroy @response == Gtk::ResponseType::OK end end end end
Version data entries
5 entries across 5 versions & 1 rubygems