Add a commandline argument to allow specifying the window title. Closes LP #370064
This commit is contained in:
parent
676ddfdb0c
commit
ee1490dc4a
@ -10,6 +10,7 @@ terminator 0.13:
|
|||||||
* The tab bar can now be hidden and/or scrolled.
|
* The tab bar can now be hidden and/or scrolled.
|
||||||
* Add configurability of cursor colour and shape
|
* Add configurability of cursor colour and shape
|
||||||
* Support various VoIP URIs
|
* Support various VoIP URIs
|
||||||
|
* Addcommand line option to force a particular window title
|
||||||
|
|
||||||
terminator 0.12:
|
terminator 0.12:
|
||||||
* Bug fixes
|
* Bug fixes
|
||||||
|
@ -37,6 +37,10 @@ Terminator window (good with \-m)
|
|||||||
Hide the Terminator window by default. Its visibility can be toggled
|
Hide the Terminator window by default. Its visibility can be toggled
|
||||||
with the \fBhide_window\fR keyboard shortcut (Ctrl-Shift-Alt-a by default)
|
with the \fBhide_window\fR keyboard shortcut (Ctrl-Shift-Alt-a by default)
|
||||||
.TP
|
.TP
|
||||||
|
.B \-T, \-\-title
|
||||||
|
Force the Terminator window to use a specific name rather than updating it dynamically
|
||||||
|
based on the wishes of the child shell.
|
||||||
|
.TP
|
||||||
.B \-\-no_gconf
|
.B \-\-no_gconf
|
||||||
Ignore the gconf settings of gnome-terminal
|
Ignore the gconf settings of gnome-terminal
|
||||||
.TP
|
.TP
|
||||||
|
@ -90,6 +90,8 @@ if __name__ == '__main__':
|
|||||||
dest="borderless", help="Turn off the window's borders")
|
dest="borderless", help="Turn off the window's borders")
|
||||||
parser.add_option("-H", "--hidden", action="store_true", dest="hidden",
|
parser.add_option("-H", "--hidden", action="store_true", dest="hidden",
|
||||||
help="Open the %s window hidden"%APP_NAME.capitalize())
|
help="Open the %s window hidden"%APP_NAME.capitalize())
|
||||||
|
parser.add_option("-T", "--title", dest="forcedtitle",
|
||||||
|
help="Specify a title to use for the window")
|
||||||
parser.add_option ("-n", "--no-gconf", dest="no_gconf", action="store_true",
|
parser.add_option ("-n", "--no-gconf", dest="no_gconf", action="store_true",
|
||||||
help="ignore gnome-terminal gconf settings")
|
help="ignore gnome-terminal gconf settings")
|
||||||
parser.add_option ("-p", "--profile", dest="profile", action="callback",
|
parser.add_option ("-p", "--profile", dest="profile", action="callback",
|
||||||
@ -166,7 +168,7 @@ See the following bug report for more details:
|
|||||||
dbg ('profile_cb: settled on profile: "%s"' % options.profile)
|
dbg ('profile_cb: settled on profile: "%s"' % options.profile)
|
||||||
term = Terminator (options.profile, command, options.fullscreen,
|
term = Terminator (options.profile, command, options.fullscreen,
|
||||||
options.maximise, options.borderless, options.no_gconf,
|
options.maximise, options.borderless, options.no_gconf,
|
||||||
options.geometry, options.hidden)
|
options.geometry, options.hidden, options.forcedtitle)
|
||||||
|
|
||||||
if options.debug > 1:
|
if options.debug > 1:
|
||||||
import terminatorlib.debugserver as debugserver
|
import terminatorlib.debugserver as debugserver
|
||||||
|
@ -212,7 +212,7 @@ class Terminator:
|
|||||||
|
|
||||||
def __init__ (self, profile = None, command = None, fullscreen = False,
|
def __init__ (self, profile = None, command = None, fullscreen = False,
|
||||||
maximise = False, borderless = False, no_gconf = False,
|
maximise = False, borderless = False, no_gconf = False,
|
||||||
geometry = None, hidden = False):
|
geometry = None, hidden = False, forcedtitle = None):
|
||||||
self.profile = profile
|
self.profile = profile
|
||||||
self.command = command
|
self.command = command
|
||||||
|
|
||||||
@ -306,6 +306,8 @@ class Terminator:
|
|||||||
|
|
||||||
self.window = gtk.Window ()
|
self.window = gtk.Window ()
|
||||||
self.windowtitle = TerminatorWindowTitle (self.window)
|
self.windowtitle = TerminatorWindowTitle (self.window)
|
||||||
|
if forcedtitle:
|
||||||
|
self.windowtitle.force_title (forcedtitle)
|
||||||
self.windowtitle.update ()
|
self.windowtitle.update ()
|
||||||
|
|
||||||
if self._geometry is not None:
|
if self._geometry is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user