Set ui_folder to adaptive in gPodder instance
This commit is contained in:
parent
14f3584902
commit
9c9f526dbb
|
@ -208,7 +208,9 @@ class gPodderApplication(Gtk.Application):
|
|||
if not self.window:
|
||||
# Windows are associated with the application
|
||||
# when the last one is closed the application shuts down
|
||||
self.window = gPodder(self, self.bus_name, core.Core(UIConfig, model_class=Model), self.options)
|
||||
self.window = gPodder(self, self.bus_name,
|
||||
core.Core(UIConfig, model_class=Model), self.options,
|
||||
ui_folder=os.path.join(gpodder.ui_folders[0], '..', 'adaptive'))
|
||||
self.add_window(self.window.main_window)
|
||||
|
||||
if gpodder.ui.osx:
|
||||
|
|
|
@ -74,7 +74,7 @@ N_ = gpodder.ngettext
|
|||
|
||||
class gPodder(BuilderWidget, dbus.service.Object):
|
||||
|
||||
def __init__(self, app, bus_name, gpodder_core, options):
|
||||
def __init__(self, app, bus_name, gpodder_core, options, **kwargs):
|
||||
Handy.init()
|
||||
self.menu2sort = {
|
||||
"SORT_PUBLISHED": EpisodeListModel.C_PUBLISHED,
|
||||
|
@ -99,7 +99,7 @@ class gPodder(BuilderWidget, dbus.service.Object):
|
|||
self.extensions_actions = []
|
||||
self._search_podcasts = None
|
||||
self._search_episodes = None
|
||||
BuilderWidget.__init__(self, None, _builder_expose={'app': app})
|
||||
BuilderWidget.__init__(self, None, _builder_expose={'app': app}, **kwargs)
|
||||
|
||||
self.last_episode_date_refresh = None
|
||||
self.refresh_episode_dates()
|
||||
|
|
Loading…
Reference in New Issue