lib/gtk2passwordapp/gtk2passwordapp.rb in gtk2passwordapp-4.1.1 vs lib/gtk2passwordapp/gtk2passwordapp.rb in gtk2passwordapp-4.1.2

- old
+ new

@@ -16,25 +16,13 @@ def self.run(program) Gtk2PasswordApp.new(program) end -class DeleteDialog < Such::Dialog +class DeleteDialog < Gtk3App::Dialog::CancelOk def initialize(parent) super([parent: parent], :delete_dialog) - add_button(Gtk::Stock::CANCEL, Gtk::ResponseType::CANCEL) - add_button(Gtk::Stock::OK, Gtk::ResponseType::OK) - Such::Label.new child, :delete_label! - end - - def runs - show_all - value = false - if run == Gtk::ResponseType::OK - value = true - end - destroy - return value + label :delete_label! end end class BackupDialog < Such::FileChooserDialog def initialize(parent)