Update connect/disconnect action states.
[kaya.git] / lib / status_bar.rb
blobff774d9dc72b11741269033bc52ed101fd58ca34
1 # Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
8 require 'toolkit'
10 class StatusBar < KDE::StatusBar
11   def initialize(parent)
12     super(parent)
14     @label = Qt::Label.new(self)
16     add_widget(@label)
17   end
19   def show_permanent_message(msg)
20     @label.text = msg
21   end
22 end