File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ def run(self, argv):
103103 self .device_manager = device_manager
104104 self .device = device
105105 from oversteer .gui import Gui
106- Gui (self )
106+ Gui (self , argv )
107107
108108 device_manager .stop ()
109109
Original file line number Diff line number Diff line change 1010
1111class GtkUi :
1212
13- def __init__ (self , gui ):
13+ def __init__ (self , gui , argv ):
1414 self .gui = gui
1515 self .ffbmeter_timer = False
1616 self .overlay_window_pos = (20 , 20 )
1717
18+ Gdk .init (argv )
1819 style_provider = Gtk .CssProvider ()
1920 style_provider .load_from_path (os .path .join (os .path .dirname (os .path .realpath (__file__ )), 'main.css' ))
2021 Gtk .StyleContext .add_provider_for_screen (
Original file line number Diff line number Diff line change 1616
1717class Gui :
1818
19- def __init__ (self , application ):
19+ def __init__ (self , application , argv ):
2020 self .app = application
2121 self .locale = ''
2222 self .device_manager = self .app .device_manager
@@ -67,7 +67,7 @@ def __init__(self, application):
6767 if not os .path .isdir (self .profile_path ):
6868 os .makedirs (self .profile_path , 0o700 )
6969
70- self .ui = GtkUi (self )
70+ self .ui = GtkUi (self , argv )
7171 self .ui .set_app_version (self .app .version )
7272 self .ui .set_app_icon (os .path .join (self .app .icondir , 'org.berarma.Oversteer.svg' ))
7373 self .ui .set_languages (self .languages )
You can’t perform that action at this time.
0 commit comments