make geometry hinting a configurable option. Closes LP #487747
This commit is contained in:
parent
8ea4872af1
commit
80ff07095a
@ -95,6 +95,10 @@ Default value: \fBblock\fR
|
||||
Sets what type of terminal should be emulated.
|
||||
Default value: \fBxterm\fR
|
||||
.TP
|
||||
.B geometry_hinting
|
||||
If True the window will resize in step with font sizes, if False it will follow pixels
|
||||
Default value: \fBTrue\fR
|
||||
.TP
|
||||
.B font
|
||||
An Pango font name. Examples are "Sans 12" or "Monospace Bold 14".
|
||||
Default value: \fBMono 8\fR
|
||||
|
@ -81,6 +81,7 @@ DEFAULTS = {
|
||||
'cursor_shape' : 'block',
|
||||
'cursor_color' : '',
|
||||
'emulation' : 'xterm',
|
||||
'geometry_hinting' : True,
|
||||
'font' : 'Mono 10',
|
||||
'foreground_color' : '#AAAAAA',
|
||||
'scrollbar_position' : "right",
|
||||
|
@ -408,7 +408,7 @@ class TerminatorTerm (gtk.VBox):
|
||||
def on_vte_size_allocate(self, widget, allocation):
|
||||
dbg ('Terminal resized to %dx%d' % (self._vte.get_column_count (), self._vte.get_row_count ()))
|
||||
self._titlebox.set_terminal_size (self._vte.get_column_count (), self._vte.get_row_count ())
|
||||
if self._vte.window != None:
|
||||
if self._vte.window != None and (self.conf.geometry_hinting):
|
||||
self.terminator.on_term_resized ()
|
||||
|
||||
def get_pixbuf(self, maxsize= None):
|
||||
|
Loading…
Reference in New Issue
Block a user