Sha256: 75f05d7f86f76e537bffebd6e23c0cf2c279eb33a28584146bda9c90e4836b5e
Contents?: true
Size: 886 Bytes
Versions: 2
Compression:
Stored size: 886 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 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) puts "Opened SkipEntryDialog #{inspect}" if $DEBUG self.default_response = Gtk::ResponseType::CANCEL end def continue? show_all && (@response = run) destroy @response == Gtk::ResponseType::OK end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alexandria-book-collection-manager-0.7.5 | lib/alexandria/ui/skip_entry_dialog.rb |
alexandria-book-collection-manager-0.7.4 | lib/alexandria/ui/skip_entry_dialog.rb |