def METHOD_NAME(self):
    # Save touchpad settings.
    self.saved_edge_scrolling_enabled = self.touchpad_settings.get_boolean(
        "edge-scrolling-enabled")
    self.saved_two_finger_enabled = self.touchpad_settings.get_boolean(
        "two-finger-scrolling-enabled")
    # Set touchpad settings.
    if self.edge_scroll:
        self.touchpad_settings.set_boolean(
            "edge-scrolling-enabled", True)
        self.touchpad_settings.set_boolean(
            "two-finger-scrolling-enabled", False)
    else:
        self.touchpad_settings.set_boolean(
            "two-finger-scrolling-enabled", True)
        self.touchpad_settings.set_boolean(
            "edge-scrolling-enabled", False)
    Gtk.main()