Sha256: 9c3336e92e046b505048c69f2fa1f3d0bf54a5da72515e99413d0a6195172e9a

Contents?: true

Size: 901 Bytes

Versions: 5

Compression:

Stored size: 901 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/provider_preferences_base_dialog"

module Alexandria
  module UI
    class ProviderPreferencesDialog < ProviderPreferencesBaseDialog
      include GetText
      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, charset: "UTF-8")

      def initialize(parent, provider)
        super(title: _("Preferences for %s") % provider.fullname,
              parent: parent,
              flags: :modal,
              buttons: [[Gtk::Stock::CLOSE, :close]])

        table = Gtk::Table.new(0, 0)
        fill_table(table, provider)
        dialog.child.pack_start(table)

        dialog.signal_connect("destroy") { sync_variables }
      end

      def acquire
        dialog.show_all
        dialog.run
        dialog.destroy
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alexandria-book-collection-manager-0.7.10 lib/alexandria/ui/provider_preferences_dialog.rb
alexandria-book-collection-manager-0.7.9 lib/alexandria/ui/provider_preferences_dialog.rb
alexandria-book-collection-manager-0.7.8 lib/alexandria/ui/provider_preferences_dialog.rb
alexandria-book-collection-manager-0.7.7 lib/alexandria/ui/provider_preferences_dialog.rb
alexandria-book-collection-manager-0.7.6 lib/alexandria/ui/provider_preferences_dialog.rb