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.



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

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



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

def message
  @message.text
end

#message=(message) ⇒ Object



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

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