class Messaging
this file is part of manqod manqod is distributed under the CDDL licence the author of manqod is Dobai-Pataky Balint(dpblnt@gmail.com)
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/SB/Messaging.rb, line 70 def initialize super() set_can_focus(false) set_relief(Gtk::ReliefStyle::NONE) signal_connect('clicked'){|me| MessageReader.new.populate.show_all } end
Public Instance Methods
check_messages()
click to toggle source
# File lib/SB/Messaging.rb, line 79 def check_messages um="unknown" begin um=ManqodDB.instance.manqod_db.unread_messages(Nick.instance.get_nick) rescue => err ewarn("Can't check for messages") end set_label(um==0?"no":"#{um}" + " messages") end