~snaggen/terminator/copy_on_select

« back to all changes in this revision

Viewing changes to terminatorlib/terminator.py

  • Committer: Stephen Boddy
  • Date: 2015-12-02 21:56:32 UTC
  • mfrom: (1629.2.6 bugfix-egmontkoblinger)
  • Revision ID: stephen.j.boddy@gmail.com-20151202215632-t3vhw8v4qbcteegr
The remainder of Egmont's GTK3 patch-o-rama session
* Remove the now unused posix regex code, and set the regex boundary vars to the correct '\b' value
* Fix drag and drop of a link from Firefox / Chrome
* Fix the editing of the window title
* Fix closing window using short-cut
* Fix profile re-use when opening new window
* Fix scrollbar position on current terminals when changed in prefs

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
                return terminal
202
202
        return None
203
203
 
204
 
    def new_window(self, cwd=None):
 
204
    def new_window(self, cwd=None, profile=None):
205
205
        """Create a window with a Terminal in it"""
206
206
        maker = Factory()
207
207
        window = maker.make('Window')
208
208
        terminal = maker.make('Terminal')
209
209
        if cwd:
210
210
            terminal.set_cwd(cwd)
 
211
        if profile and self.config['always_split_with_profile']:
 
212
            terminal.force_set_profile(None, profile)
211
213
        window.add(terminal)
212
214
        window.show(True)
213
215
        terminal.spawn_child()