From d51d9cd7007882a22acdc2632831034d7292eb3d Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Sat, 27 Feb 2010 14:06:53 +0100 Subject: [PATCH] Stop using goocanvas for now --- terminatorlib/prefseditor.py | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index d56a6234..f21eda1a 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -9,7 +9,6 @@ write it to a config file import os import gtk -import goocanvas from util import dbg import config @@ -871,27 +870,15 @@ class PrefsEditor: # Render this layout to the canvas # FIXME: This should probably be in a scrollable viewport for when # there are multiple windows - canvas = self.layout_to_goo(layout) - canvas.show_all() - container = self.builder.get_object('canvasalignment') + #canvas = self.layout_to_goo(layout) + #canvas.show_all() + #container = self.builder.get_object('canvasalignment') - child = container.get_child() - if child is not None: - container.remove(child) - del(child) - container.add(canvas) - - def layout_to_goo(self, layout): - """Create a GooCanvas widget that represents a particular layout""" - canvas = goocanvas.Canvas() - root = canvas.get_root_item() - - # FIXME: Set the background colour - # FIXME: Determine the number of windows - # FIXME: Render each window - goocanvas.Text(parent = root, text = 'Render layout "%s" here' % layout) - - return(canvas) + #child = container.get_child() + #if child is not None: + # container.remove(child) + # del(child) + #container.add(canvas) def on_layout_name_edited(self, cell, path, newtext): """Update a layout name"""