Fix up handle_size to work properly

This commit is contained in:
Chris Jones 2010-01-11 23:46:18 +00:00
parent adfaf600fa
commit 23f469add3
4 changed files with 9 additions and 3 deletions

View File

@ -50,6 +50,7 @@ if __name__ == '__main__':
MAKER = Factory()
TERMINATOR = Terminator()
TERMINATOR.reconfigure()
WINDOW = MAKER.make('Window')
TERMINAL = MAKER.make('Terminal')

View File

@ -2191,7 +2191,7 @@
<object class="GtkAdjustment" id="adjustment1">
<property name="value">-1</property>
<property name="lower">-1</property>
<property name="upper">5</property>
<property name="upper">7</property>
<property name="step_increment">1</property>
<property name="page_increment">2</property>
<property name="page_size">2</property>

View File

@ -213,7 +213,7 @@ class PrefsEditor:
self.config['focus'] = value
# Handle size
widget = guiget('handlesize')
self.config['handle_size'] = widget.get_value()
self.config['handle_size'] = int(widget.get_value())
# Window geometry
widget = guiget('wingeomcheck')
self.config['geometry_hinting'] = widget.get_active()

View File

@ -88,7 +88,12 @@ class Terminator(Borg):
def reconfigure(self):
"""Update configuration for the whole application"""
# FIXME: Set handle_size here
if self.config['handle_size'] in xrange(0, 6):
gtk.rc_parse_string("""style "terminator-paned-style" {
GtkPaned::handle_size = %s }
class "GtkPaned" style "terminator-paned-style" """ %
self.config['handle_size'])
gtk.rc_reset_styles(gtk.settings_get_default())
# Cause all the terminals to reconfigure
for terminal in self.terminals: