Class: TopinambourCssErrorPopup

Inherits:
Gtk::MessageDialog
  • Object
show all
Defined in:
lib/application.rb

Instance Method Summary collapse

Constructor Details

#initialize(parent) ⇒ TopinambourCssErrorPopup

Returns a new instance of TopinambourCssErrorPopup.



168
169
170
171
172
173
174
175
176
177
# File 'lib/application.rb', line 168

def initialize(parent)
  super(:parent => parent, :flags => 0,
        :type => Gtk::MessageType::ERROR,
        :buttons_type => Gtk::ButtonsType::CLOSE,
        :message => "Css Error")

  @message = Gtk::Label.new("")
  content_area.add(@message)
  signal_connect("response") { |widget| widget.destroy }
end

Instance Method Details

#messageObject



183
184
185
# File 'lib/application.rb', line 183

def message
  @message.text
end

#message=(message) ⇒ Object



179
180
181
# File 'lib/application.rb', line 179

def message=(message)
  @message.text = message
end