(self, widget)
Inactive color offset setting changed
Inactive color offset setting changed
Inactive color offset setting changed
def on_inactive_color_offset_value_changed(self, widget):
        """Inactive color offset setting changed"""
        value = widget.get_value()  # This one is rounded according to the UI.
        if value > 1.0:
          value = 1.0
        self.config['inactive_color_offset'] = value
        self.config.save()
        guiget = self.builder.get_object
        label_widget = guiget('inactive_color_offset_value_label')
        label_widget.set_text('%d%%' % (int(value * 100)))
def on_inactive_color_offset_value_changed ( self , widget ) : value = widget . get_value ( ) # This one is rounded according to the UI. if value > 1.0 : value = 1.0 self . config [ 'inactive_color_offset' ] = value self . config . save ( ) guiget = self . builder . get_object label_widget = guiget ( 'inactive_color_offset_value_label' ) label_widget . set_text ( '%d%%' % ( int ( value * 100 ) ) )