get_top_window moved to util
This commit is contained in:
parent
0deda2434d
commit
c5711cbe15
|
@ -7,7 +7,7 @@ variants"""
|
||||||
import gobject
|
import gobject
|
||||||
import gtk
|
import gtk
|
||||||
|
|
||||||
from util import dbg, err
|
from util import dbg, err, get_top_window
|
||||||
from newterminator import Terminator
|
from newterminator import Terminator
|
||||||
from terminal import Terminal
|
from terminal import Terminal
|
||||||
from container import Container
|
from container import Container
|
||||||
|
@ -78,7 +78,7 @@ class Paned(Container):
|
||||||
|
|
||||||
self.cnxids[widget] = []
|
self.cnxids[widget] = []
|
||||||
if isinstance(widget, Terminal):
|
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
|
# FIXME: somehow propagate the title-change signal to the Window
|
||||||
signals = {'close-term': self.wrapcloseterm,
|
signals = {'close-term': self.wrapcloseterm,
|
||||||
|
|
|
@ -13,7 +13,7 @@ import pango
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from util import dbg, err, gerr, widget_pixbuf
|
from util import dbg, err, gerr, widget_pixbuf, get_top_window
|
||||||
import util
|
import util
|
||||||
from config import Config
|
from config import Config
|
||||||
from cwd import get_default_cwd
|
from cwd import get_default_cwd
|
||||||
|
@ -774,7 +774,7 @@ class Terminal(gtk.VBox):
|
||||||
"""Determine if we are a zoomed terminal"""
|
"""Determine if we are a zoomed terminal"""
|
||||||
prop = None
|
prop = None
|
||||||
parent = self.get_parent()
|
parent = self.get_parent()
|
||||||
window = parent.get_top_window(self)
|
window = get_top_window(self)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
prop = window.get_property('term-zoomed')
|
prop = window.get_property('term-zoomed')
|
||||||
|
|
Loading…
Reference in New Issue