class GerminalResizeMessage

Copyright 2015-2016 Cédric LE MOIGNE, cedlemo@gmx.com This file is part of Germinal.

Germinal is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

Germinal is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Germinal. If not, see <www.gnu.org/licenses/>.

Public Class Methods

new(text) click to toggle source
Calls superclass method
# File lib/resize_message.rb, line 17
def initialize(text)
  super(:vertical)
  text ||= ""
  add(Gtk::Label.new(text))
  set_halign(:end)
  set_valign(:end)
  set_border_width(4)
  show_all
  set_name("resize_box")
end

Public Instance Methods

text=(text) click to toggle source
# File lib/resize_message.rb, line 28
def text=(text)
  children[0].text = text
  show_all
end