(self)
Get system settings and create callbacks for changes
Get system settings and create callbacks for changes
Get system settings and create callbacks for changes
def connect_gsetting_callbacks(self):
        """Get system settings and create callbacks for changes"""
        dbg("GSetting connects for system changes")
        # Have to preserve these to self, or callbacks don't happen
        self.gsettings_interface=Gio.Settings.new('org.gnome.desktop.interface')
        self.gsettings_interface.connect("changed::font-name", self.on_gsettings_change_event)
        self.gsettings_interface.connect("changed::monospace-font-name", self.on_gsettings_change_event)
        self.gsettings_wm=Gio.Settings.new('org.gnome.desktop.wm.preferences')
        self.gsettings_wm.connect("changed::focus-mode", self.on_gsettings_change_event)
def connect_gsetting_callbacks ( self ) : dbg ( "GSetting connects for system changes" ) # Have to preserve these to self, or callbacks don't happen self . gsettings_interface = Gio . Settings . new ( 'org.gnome.desktop.interface' ) self . gsettings_interface . connect ( "changed::font-name" , self . on_gsettings_change_event ) self . gsettings_interface . connect ( "changed::monospace-font-name" , self . on_gsettings_change_event ) self . gsettings_wm = Gio . Settings . new ( 'org.gnome.desktop.wm.preferences' ) self . gsettings_wm . connect ( "changed::focus-mode" , self . on_gsettings_change_event )