[Notifications]Fix no text in tab list

The tab in the Preferences window is created and clickable - only the
text is missing.
This commit is contained in:
DjLegolas 2017-10-16 14:15:17 +03:00
parent 26720ca4c2
commit d169aca8bd

View File

@ -263,12 +263,7 @@ class GtkUI(GtkPluginBase, GtkUiNotifications):
'on_sound_path_update_preview': self.on_sound_path_update_preview 'on_sound_path_update_preview': self.on_sound_path_update_preview
}) })
prefs = component.get('Preferences') component.get('Preferences').add_page(_('Notifications'), self.prefs)
parent = self.prefs.get_parent()
if parent:
parent.remove(self.prefs)
index = prefs.notebook.append_page(self.prefs)
prefs.liststore.append([index, _('Notifications')])
component.get('PluginManager').register_hook('on_apply_prefs', component.get('PluginManager').register_hook('on_apply_prefs',
self.on_apply_prefs) self.on_apply_prefs)