Skip to content

Commit

Permalink
Merge branch 'gnome-terminator:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Vulcalien authored Aug 31, 2021
2 parents cbd8f0e + d57314c commit 39039bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 5 additions & 4 deletions terminatorlib/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,7 @@ def held_open(self, widget=None, respawn=False, debugserver=False):
self.is_held_open = True
self.titlebar.update()

def spawn_child(self, init_command=None, widget=None, respawn=False, debugserver=False):
def spawn_child(self, widget=None, respawn=False, debugserver=False, init_command=None):
args = []
shell = None
command = init_command
Expand Down Expand Up @@ -1492,9 +1492,10 @@ def spawn_child(self, init_command=None, widget=None, respawn=False, debugserver
command = self.layout_command
elif debugserver is True:
details = self.terminator.debug_address
dbg('spawning debug session with: %s:%s' % (details[0],
details[1]))
command = 'telnet %s %s' % (details[0], details[1])
if details is not None:
dbg('spawning debug session with: %s:%s' % (details[0],
details[1]))
command = 'telnet %s %s' % (details[0], details[1])

# working directory set in layout config
if self.directory:
Expand Down
4 changes: 4 additions & 0 deletions terminatorlib/terminal_popup_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ def show(self, widget, event=None):

menu.append(Gtk.SeparatorMenuItem())

item = Gtk.ImageMenuItem.new_with_mnemonic(_('Set W_indow Title'))
item.connect('activate', lambda x: terminal.key_edit_window_title())
menu.append(item)

if not terminal.is_zoomed():
item = Gtk.ImageMenuItem.new_with_mnemonic(_('Split H_orizontally'))
image = Gtk.Image()
Expand Down

0 comments on commit 39039bc

Please sign in to comment.