image plugin. add tooltip for button
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user