From 166864f81c32aff0611803d3d35daf0f97bb15d6 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Fri, 1 Apr 2011 23:11:34 +0400 Subject: [PATCH] image plugin. add tooltip for button --- image/image.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/image/image.py b/image/image.py index 2d8b219..7a86d7e 100644 --- a/image/image.py +++ b/image/image.py @@ -57,14 +57,9 @@ class Base(object): self.button.set_property('relief', gtk.RELIEF_NONE) self.button.set_property('can-focus', False) img = gtk.Image() - #img_path = self.plugin.local_file_path('favicon.png') - #pixbuf = gtk.gdk.pixbuf_new_from_file(img_path) - #iconset = gtk.IconSet(pixbuf=pixbuf) - #factory = gtk.IconFactory() - #factory.add('juick', iconset) - #factory.add_default() img.set_from_stock('gtk-orientation-portrait', gtk.ICON_SIZE_BUTTON) self.button.set_image(img) + self.button.set_tooltip_text('Send image') send_button = chat_control.xml.get_object('send_button') send_button_pos = actions_hbox.child_get_property(send_button, 'position')