set close button style regardless of the handle size being correct. Closes LP: #343607

This commit is contained in:
Chris Jones 2009-03-16 23:55:57 +00:00
parent e3449d4142
commit 2b8c2cadc5
1 changed files with 7 additions and 5 deletions

View File

@ -71,7 +71,7 @@ class TerminatorNotebookTabLabel(gtk.HBox):
self._button.add(self._icon)
self._button.connect('clicked', self.on_close)
self._button.set_name("terminator-tab-close-button")
self.connect("style-set", self.on_style_set)
self._button.connect("style-set", self.on_style_set)
if hasattr(self._button, "set_tooltip_text"):
self._button.set_tooltip_text(_("Close Tab"))
self.pack_start(self._button, False, False)
@ -221,6 +221,7 @@ class Terminator:
self.keybindings.configure(self.conf.keybindings)
self.set_handle_size (self.conf.handle_size)
self.set_closebutton_style ()
self.window = gtk.Window ()
self.window.set_title (APP_NAME.capitalize())
@ -288,6 +289,7 @@ class Terminator:
class "GtkPaned" style "terminator-paned-style"
""" % self.conf.handle_size)
def set_closebutton_style (self):
gtk.rc_parse_string("""
style "terminator-tab-close-button-style" {
GtkWidget::focus-padding = 0