Adjust line length to match Code Style Guide (see #103)
This commit is contained in:
parent
d2e1f6f5d8
commit
a1f8b73590
11 changed files with 436 additions and 258 deletions
|
|
@ -15,7 +15,8 @@ class Application(Gtk.Application):
|
|||
DOMAIN = 'mcg'
|
||||
|
||||
def __init__(self):
|
||||
super().__init__(application_id=Application.ID, flags=Gio.ApplicationFlags.FLAGS_NONE)
|
||||
super().__init__(application_id=Application.ID,
|
||||
flags=Gio.ApplicationFlags.FLAGS_NONE)
|
||||
self._window = None
|
||||
self._info_dialog = None
|
||||
self._verbosity = logging.WARNING
|
||||
|
|
@ -52,20 +53,21 @@ class Application(Gtk.Application):
|
|||
self._info_dialog.set_application_icon("xyz.suruatoel.mcg")
|
||||
self._info_dialog.set_application_name("CoverGrid")
|
||||
self._info_dialog.set_version("3.2.1")
|
||||
self._info_dialog.set_comments("CoverGrid is a client for the Music Player Daemon, focusing on albums instead of single tracks.")
|
||||
self._info_dialog.set_comments(
|
||||
"""CoverGrid is a client for the Music Player Daemon, focusing on \
|
||||
albums instead of single tracks.""")
|
||||
self._info_dialog.set_website("https://www.suruatoel.xyz/codes/mcg")
|
||||
self._info_dialog.set_license_type(Gtk.License.GPL_3_0)
|
||||
self._info_dialog.set_issue_url("https://git.suruatoel.xyz/coderkun/mcg")
|
||||
self._info_dialog.set_issue_url(
|
||||
"https://git.suruatoel.xyz/coderkun/mcg")
|
||||
self._info_dialog.present()
|
||||
|
||||
def on_menu_quit(self, action, value):
|
||||
self.quit()
|
||||
|
||||
def _setup_logging(self):
|
||||
logging.basicConfig(
|
||||
level=self._verbosity,
|
||||
format="%(asctime)s %(levelname)s: %(message)s"
|
||||
)
|
||||
logging.basicConfig(level=self._verbosity,
|
||||
format="%(asctime)s %(levelname)s: %(message)s")
|
||||
|
||||
def _load_settings(self):
|
||||
self._settings = Gio.Settings.new(Application.ID)
|
||||
|
|
@ -78,10 +80,8 @@ class Application(Gtk.Application):
|
|||
styleProvider = Gtk.CssProvider()
|
||||
styleProvider.load_from_resource(self._get_resource_path('gtk.css'))
|
||||
Gtk.StyleContext.add_provider_for_display(
|
||||
Gdk.Display.get_default(),
|
||||
styleProvider,
|
||||
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
|
||||
)
|
||||
Gdk.Display.get_default(), styleProvider,
|
||||
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION)
|
||||
|
||||
def _setup_actions(self):
|
||||
action = Gio.SimpleAction.new("info", None)
|
||||
|
|
|
|||
Loading…
Reference in a new issue