/usr/share/treeline/globalref.py is in treeline 1.4.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | #!/usr/bin/env python
#****************************************************************************
# globalref.py, provides accessible global variables for TreeLine
#
# TreeLine, an information storage program
# Copyright (C) 2006, Douglas W. Bell
#
# This is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License, either Version 2 or any later
# version. This program is distributed in the hope that it will be useful,
# but WITTHOUT ANY WARRANTY. See the included LICENSE file for details.
#****************************************************************************
treeControl = None
docRef = None
mainWin = None
options = None
treeIcons = None
pluginInterface = None
lang = ''
localTextEncoding = 'utf-8'
modPath = ''
def dummyFunction(*args, **kw):
"""Placeholder for update callbacks, generally replaced with a real
function reference"""
pass
updateViewAll = dummyFunction
updateLeftView = dummyFunction
updateRightView = dummyFunction
updateViewSelection = dummyFunction
updateViewItem = dummyFunction # called with item parameter
updateViewMenuStat = dummyFunction
setStatusBar = dummyFunction # called with text and optional duration (ms)
focusTree = dummyFunction
def updateRefs(win):
"""Update references based on current main window"""
global mainWin
mainWin = win
global docRef
docRef = mainWin.doc
global pluginInterface
pluginInterface = mainWin.pluginInterface
global updateViewAll
updateViewAll = mainWin.updateViews
global updateLeftView
updateLeftView = mainWin.updateLeftView
global updateRightView
updateRightView = mainWin.updateRightView
global updateViewSelection
updateViewSelection = mainWin.updateViewSelection
global updateViewItem
updateViewItem = mainWin.updateViewItem
global updateViewMenuStat
updateViewMenuStat = mainWin.updateCmdAvail
global setStatusBar
setStatusBar = mainWin.setStatusMsg
global focusTree
focusTree = mainWin.focusLeftView
|