Refactor the code

This commit is contained in:
Gobinath 2016-11-04 14:23:14 +05:30
parent 195bfabbbb
commit de47d8e638
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ from gi.repository import Gtk, Gdk, GdkX11
class SettingsDialog:
"""docstring for SettingsDialog"""
def __init__(self, language, config, on_save_settings, glade_file):
def __init__(self, config, language, on_save_settings, glade_file):
self.config = config
self.on_save_settings = on_save_settings

View File

@ -48,7 +48,7 @@ system_language_directory = os.path.join(bin_directory, "config/lang")
is_active = True
def show_settings():
settings_dialog = SettingsDialog(language, config, save_settings, settings_dialog_glade)
settings_dialog = SettingsDialog(config, language, save_settings, settings_dialog_glade)
settings_dialog.show()
def show_notification():
@ -176,7 +176,7 @@ def main():
core.start()
notification = Notification(language)
# handle_system_suspend()
handle_system_suspend()
Gtk.main()