From cf8cf9a5061ea90b98773a1ca5d9b4d0d5a65ce3 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 7 Apr 2010 12:14:31 +0100 Subject: [PATCH] Take the easy way out of fixing geometry hinting to work with Notebooks - cowardly refuse to do it. --- terminatorlib/window.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/terminatorlib/window.py b/terminatorlib/window.py index 3669a941..f66ef6cd 100755 --- a/terminatorlib/window.py +++ b/terminatorlib/window.py @@ -410,6 +410,11 @@ class Window(Container, gtk.Window): def set_rough_geometry_hints(self): """Walk all the terminals along the top and left edges to fake up how many columns/rows we sort of have""" + maker = Factory() + if maker.isinstance(self.get_child(), 'Notebook'): + dbg("We don't currently support geometry hinting with tabs") + return + terminals = self.get_visible_terminals() column_sum = 0 row_sum = 0 @@ -435,6 +440,9 @@ class Window(Container, gtk.Window): extra_width = win_width - total_font_width extra_height = win_height - total_font_height + dbg('setting geometry hints: (ewidth:%s)(eheight:%s),\ +(fwidth:%s)(fheight:%s)' % (extra_width, extra_height, + font_width, font_height)) self.set_geometry_hints(self, -1, -1, -1, -1, extra_width, extra_height, font_width, font_height, -1.0, -1.0)