Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5baadd9dbb |
@@ -36,6 +36,7 @@ from whipper.result import result
|
|||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
APP_ID = "com.github.whipper_team.Whipper"
|
||||||
|
|
||||||
|
|
||||||
class RipCancelledError(Exception):
|
class RipCancelledError(Exception):
|
||||||
@@ -86,7 +87,9 @@ def _release_duration_distance(metadata, duration_ms):
|
|||||||
class WhipperGui(Gtk.Application if Gtk is not None else object):
|
class WhipperGui(Gtk.Application if Gtk is not None else object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
require_gui_runtime()
|
require_gui_runtime()
|
||||||
super().__init__(application_id="com.github.whipper_team.WhipperGui")
|
super().__init__(application_id=APP_ID)
|
||||||
|
GLib.set_application_name("Whipper")
|
||||||
|
Gtk.Window.set_default_icon_name(APP_ID)
|
||||||
self.window = None
|
self.window = None
|
||||||
self.main_pane = None
|
self.main_pane = None
|
||||||
|
|
||||||
@@ -150,7 +153,7 @@ class WhipperGui(Gtk.Application if Gtk is not None else object):
|
|||||||
def _build_window(self):
|
def _build_window(self):
|
||||||
window = Gtk.ApplicationWindow(application=self)
|
window = Gtk.ApplicationWindow(application=self)
|
||||||
window.set_title("Whipper")
|
window.set_title("Whipper")
|
||||||
window.set_icon_name("com.github.whipper_team.Whipper")
|
window.set_icon_name(APP_ID)
|
||||||
window.set_default_size(1380, 820)
|
window.set_default_size(1380, 820)
|
||||||
window.set_border_width(6)
|
window.set_border_width(6)
|
||||||
|
|
||||||
@@ -160,7 +163,6 @@ class WhipperGui(Gtk.Application if Gtk is not None else object):
|
|||||||
root.pack_start(self._build_transport_strip(), False, False, 0)
|
root.pack_start(self._build_transport_strip(), False, False, 0)
|
||||||
root.pack_start(self._build_progress(), False, False, 0)
|
root.pack_start(self._build_progress(), False, False, 0)
|
||||||
root.pack_start(self._build_main_content(), True, True, 0)
|
root.pack_start(self._build_main_content(), True, True, 0)
|
||||||
root.pack_start(self._build_log(), False, True, 0)
|
|
||||||
|
|
||||||
self._refresh_devices()
|
self._refresh_devices()
|
||||||
self._load_gui_settings()
|
self._load_gui_settings()
|
||||||
|
|||||||
Reference in New Issue
Block a user