1
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
4
# ubuntu-fr <LoCo Team>
5
# kanor <Romain DUBREIL> <contact@kanor.fr>
6
# cm-t <Rudy ANDRÉ> <arudy@ubuntu-fr.org>
7
# olive <Olivier FRAYSSE> <olive@picapo.org>
8
# quesh <Frédéric MANDE> <quesh@quesh.fr>
9
# This program is free software: you can redistribute it and/or modify it
10
# under the terms of the GNU General Public License version 3, as published
11
# by the Free Software Foundation.
13
# This program is distributed in the hope that it will be useful, but
14
# WITHOUT ANY WARRANTY; without even the implied warranties of
15
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
16
# PURPOSE. See the GNU General Public License for more details.
18
# You should have received a copy of the GNU General Public License along
19
# with this program. If not, see <http://www.gnu.org/licenses/>.
22
### DO NOT EDIT THIS FILE ###
24
"""this dialog adjusts values in gsettings
27
from gi.repository import Gtk # pylint: disable=E0611
29
logger = logging.getLogger('dash_privacy_interface_lib')
31
from . helpers import get_builder, show_uri, get_help_uri
33
class PreferencesDialog(Gtk.Dialog):
34
__gtype_name__ = "PreferencesDialog"
37
"""Special static method that's automatically called by Python when
38
constructing a new instance of this class.
40
Returns a fully instantiated PreferencesDialog object.
42
builder = get_builder('PreferencesDashPrivacyInterfaceDialog')
43
new_object = builder.get_object("preferences_dash_privacy_interface_dialog")
44
new_object.finish_initializing(builder)
47
def finish_initializing(self, builder):
48
"""Called while initializing this instance in __new__
50
finish_initalizing should be called after parsing the ui definition
51
and creating a PreferencesDialog object with it in order to
52
finish initializing the start of the new PerferencesDashPrivacyInterfaceDialog
55
Put your initialization code in here and leave __init__ undefined.
58
# Get a reference to the builder and set up the signals.
59
self.builder = builder
60
self.ui = builder.get_ui(self, True)
62
# code for other initialization actions should be added here
64
def on_btn_close_clicked(self, widget, data=None):
67
def on_btn_help_clicked(self, widget, data=None):
68
show_uri(self, "ghelp:%s" % get_help_uri('preferences'))