From 47614298606a3864865639ac619f8c6c3bed60fb Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Sat, 3 Sep 2011 11:56:14 +0300 Subject: [PATCH] Whiteboard plugin. set tooltip for whiteboard button --- plugins/whiteboard/plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/whiteboard/plugin.py b/plugins/whiteboard/plugin.py index ba281d705..141873cd9 100644 --- a/plugins/whiteboard/plugin.py +++ b/plugins/whiteboard/plugin.py @@ -120,8 +120,11 @@ class WhiteboardPlugin(GajimPlugin): if control.contact.supports(NS_JINGLE_SXE) and \ control.contact.supports(NS_SXE): base.button.set_sensitive(True) + base.button.set_tooltip_text(_('Show whiteboard')) else: base.button.set_sensitive(False) + base.button.set_tooltip_text(_('Client on the other side ' + 'does not support the whiteboard')) @log_calls('WhiteboardPlugin') def show_request_dialog(self, account, fjid, jid, sid, content_types): @@ -267,7 +270,7 @@ class Base(object): self.sid = None def create_buttons(self): - # create juick button + # create whiteboard button actions_hbox = self.chat_control.xml.get_object('actions_hbox') self.button = gtk.ToggleButton(label=None, use_underline=True) self.button.set_property('relief', gtk.RELIEF_NONE)