From c82e7951a96a4c593c7ee82be46e9650cbf0230d Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Thu, 9 Dec 2010 15:55:58 +0300 Subject: [PATCH] Use custom style for close tab button.(in some GTK themes tabs look weird) --- src/message_window.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/message_window.py b/src/message_window.py index 8678930d8..9d9155934 100644 --- a/src/message_window.py +++ b/src/message_window.py @@ -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