Use custom style for close tab button.(in some GTK themes tabs look weird)

This commit is contained in:
Denis Fomin 2010-12-09 15:55:58 +03:00
parent 6bdc73199d
commit c82e7951a9
1 changed files with 6 additions and 0 deletions

View File

@ -283,6 +283,12 @@ _('Do you really want to close them all?'),
xml = gtkgui_helpers.get_gtk_builder('message_window.ui', 'chat_tab_ebox')
tab_label_box = xml.get_object('chat_tab_ebox')
widget = xml.get_object('tab_close_button')
#this reduces the size of the button
style = gtk.RcStyle()
style.xthickness = 0
style.ythickness = 0
widget.modify_style(style)
id_ = widget.connect('clicked', self._on_close_button_clicked, control)
control.handlers[id_] = widget