gtk: Fix a couple of deprecations

This commit is contained in:
Michael Webster 2020-06-10 11:41:49 -04:00
parent 23e3eb60df
commit 8342b85b91
2 changed files with 2 additions and 4 deletions

View File

@ -21,8 +21,6 @@ import pointerMonitor
import setproctitle import setproctitle
from plugins.execute import Execute from plugins.execute import Execute
GObject.threads_init()
# Rename the process # Rename the process
setproctitle.setproctitle('mintmenu') setproctitle.setproctitle('mintmenu')

View File

@ -49,8 +49,8 @@ class mintMenuPreferences():
def __init__(self): def __init__(self):
self.settings = Gio.Settings("com.linuxmint.mintmenu") self.settings = Gio.Settings(schema_id="com.linuxmint.mintmenu")
self.places_settings = Gio.Settings("com.linuxmint.mintmenu.plugins.places") self.places_settings = Gio.Settings(schema_id="com.linuxmint.mintmenu.plugins.places")
self.builder = Gtk.Builder() self.builder = Gtk.Builder()
self.builder.set_translation_domain("mintmenu") self.builder.set_translation_domain("mintmenu")