get_top_window moved to util

This commit is contained in:
Chris Jones 2009-11-20 16:53:06 -06:00
parent 0deda2434d
commit c5711cbe15
2 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ variants"""
import gobject
import gtk
from util import dbg, err
from util import dbg, err, get_top_window
from newterminator import Terminator
from terminal import Terminal
from container import Container
@ -78,7 +78,7 @@ class Paned(Container):
self.cnxids[widget] = []
if isinstance(widget, Terminal):
top_window = self.get_top_window(self)
top_window = get_top_window(self)
# FIXME: somehow propagate the title-change signal to the Window
signals = {'close-term': self.wrapcloseterm,

View File

@ -13,7 +13,7 @@ import pango
import re
import subprocess
from util import dbg, err, gerr, widget_pixbuf
from util import dbg, err, gerr, widget_pixbuf, get_top_window
import util
from config import Config
from cwd import get_default_cwd
@ -774,7 +774,7 @@ class Terminal(gtk.VBox):
"""Determine if we are a zoomed terminal"""
prop = None
parent = self.get_parent()
window = parent.get_top_window(self)
window = get_top_window(self)
try:
prop = window.get_property('term-zoomed')