Stop using goocanvas for now
This commit is contained in:
parent
98c3979b88
commit
d51d9cd700
|
@ -9,7 +9,6 @@ write it to a config file
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import gtk
|
import gtk
|
||||||
import goocanvas
|
|
||||||
|
|
||||||
from util import dbg
|
from util import dbg
|
||||||
import config
|
import config
|
||||||
|
@ -871,27 +870,15 @@ class PrefsEditor:
|
||||||
# Render this layout to the canvas
|
# Render this layout to the canvas
|
||||||
# FIXME: This should probably be in a scrollable viewport for when
|
# FIXME: This should probably be in a scrollable viewport for when
|
||||||
# there are multiple windows
|
# there are multiple windows
|
||||||
canvas = self.layout_to_goo(layout)
|
#canvas = self.layout_to_goo(layout)
|
||||||
canvas.show_all()
|
#canvas.show_all()
|
||||||
container = self.builder.get_object('canvasalignment')
|
#container = self.builder.get_object('canvasalignment')
|
||||||
|
|
||||||
child = container.get_child()
|
#child = container.get_child()
|
||||||
if child is not None:
|
#if child is not None:
|
||||||
container.remove(child)
|
# container.remove(child)
|
||||||
del(child)
|
# del(child)
|
||||||
container.add(canvas)
|
#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)
|
|
||||||
|
|
||||||
def on_layout_name_edited(self, cell, path, newtext):
|
def on_layout_name_edited(self, cell, path, newtext):
|
||||||
"""Update a layout name"""
|
"""Update a layout name"""
|
||||||
|
|
Loading…
Reference in New Issue