set close button style regardless of the handle size being correct. Closes LP: #343607
This commit is contained in:
parent
e3449d4142
commit
2b8c2cadc5
|
@ -71,7 +71,7 @@ class TerminatorNotebookTabLabel(gtk.HBox):
|
||||||
self._button.add(self._icon)
|
self._button.add(self._icon)
|
||||||
self._button.connect('clicked', self.on_close)
|
self._button.connect('clicked', self.on_close)
|
||||||
self._button.set_name("terminator-tab-close-button")
|
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"):
|
if hasattr(self._button, "set_tooltip_text"):
|
||||||
self._button.set_tooltip_text(_("Close Tab"))
|
self._button.set_tooltip_text(_("Close Tab"))
|
||||||
self.pack_start(self._button, False, False)
|
self.pack_start(self._button, False, False)
|
||||||
|
@ -221,6 +221,7 @@ class Terminator:
|
||||||
self.keybindings.configure(self.conf.keybindings)
|
self.keybindings.configure(self.conf.keybindings)
|
||||||
|
|
||||||
self.set_handle_size (self.conf.handle_size)
|
self.set_handle_size (self.conf.handle_size)
|
||||||
|
self.set_closebutton_style ()
|
||||||
|
|
||||||
self.window = gtk.Window ()
|
self.window = gtk.Window ()
|
||||||
self.window.set_title (APP_NAME.capitalize())
|
self.window.set_title (APP_NAME.capitalize())
|
||||||
|
@ -288,6 +289,7 @@ class Terminator:
|
||||||
class "GtkPaned" style "terminator-paned-style"
|
class "GtkPaned" style "terminator-paned-style"
|
||||||
""" % self.conf.handle_size)
|
""" % self.conf.handle_size)
|
||||||
|
|
||||||
|
def set_closebutton_style (self):
|
||||||
gtk.rc_parse_string("""
|
gtk.rc_parse_string("""
|
||||||
style "terminator-tab-close-button-style" {
|
style "terminator-tab-close-button-style" {
|
||||||
GtkWidget::focus-padding = 0
|
GtkWidget::focus-padding = 0
|
||||||
|
|
Loading…
Reference in New Issue