mirror of
https://github.com/pulb/mailnag.git
synced 2026-07-25 02:22:43 +02:00
Fix GTK warnings (fixes #105)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#
|
||||
# credentialstore.py
|
||||
#
|
||||
# Copyright 2015 Patrick Ulbrich <zulu99@gmx.net>
|
||||
# Copyright 2015, 2016 Patrick Ulbrich <zulu99@gmx.net>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -35,6 +35,8 @@ class CredentialStoreType:
|
||||
_credentialstoretype = CredentialStoreType.NONE
|
||||
|
||||
try:
|
||||
import gi
|
||||
gi.require_version('GnomeKeyring', '1.0')
|
||||
from gi.repository import GnomeKeyring
|
||||
_credentialstoretype = CredentialStoreType.GNOME
|
||||
except: pass
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#
|
||||
# accountdialog.py
|
||||
#
|
||||
# Copyright 2011 - 2015 Patrick Ulbrich <zulu99@gmx.net>
|
||||
# Copyright 2011 - 2016 Patrick Ulbrich <zulu99@gmx.net>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -21,6 +21,10 @@
|
||||
# MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
import gi
|
||||
gi.require_version('Gtk', '3.0')
|
||||
gi.require_version('GLib', '2.0')
|
||||
|
||||
from gi.repository import GObject, GLib, Gtk
|
||||
from thread import start_new_thread
|
||||
from Mailnag.common.dist_cfg import PACKAGE_NAME
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#
|
||||
# configwindow.py
|
||||
#
|
||||
# Copyright 2011 - 2015 Patrick Ulbrich <zulu99@gmx.net>
|
||||
# Copyright 2011 - 2016 Patrick Ulbrich <zulu99@gmx.net>
|
||||
# Copyright 2011 Ralf Hersel <ralf.hersel@gmx.net>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
@@ -22,6 +22,10 @@
|
||||
# MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
import gi
|
||||
gi.require_version('Gtk', '3.0')
|
||||
gi.require_version('GLib', '2.0')
|
||||
|
||||
import os
|
||||
import shutil
|
||||
import xdg.BaseDirectory as bd
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
# MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
import gi
|
||||
gi.require_version('Gtk', '3.0')
|
||||
|
||||
from gi.repository import Gtk
|
||||
from Mailnag.common.i18n import _
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#
|
||||
# libnotifyplugin.py
|
||||
#
|
||||
# Copyright 2013 - 2015 Patrick Ulbrich <zulu99@gmx.net>
|
||||
# Copyright 2013 - 2016 Patrick Ulbrich <zulu99@gmx.net>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -21,6 +21,12 @@
|
||||
# MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version('Notify', '0.7')
|
||||
gi.require_version('GLib', '2.0')
|
||||
gi.require_version('Gtk', '3.0')
|
||||
|
||||
import os
|
||||
import dbus
|
||||
import threading
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#
|
||||
# soundplugin.py
|
||||
#
|
||||
# Copyright 2013 - 2015 Patrick Ulbrich <zulu99@gmx.net>
|
||||
# Copyright 2013 - 2016 Patrick Ulbrich <zulu99@gmx.net>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -21,6 +21,9 @@
|
||||
# MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
import gi
|
||||
gi.require_version('Gst', '1.0')
|
||||
|
||||
import os
|
||||
import threading
|
||||
from gi.repository import Gst
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#!/usr/bin/env python2
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# smamfilterplugin.py
|
||||
# spamfilterplugin.py
|
||||
#
|
||||
# Copyright 2013 - 2015 Patrick Ulbrich <zulu99@gmx.net>
|
||||
# Copyright 2013 - 2016 Patrick Ulbrich <zulu99@gmx.net>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -21,6 +21,9 @@
|
||||
# MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
import gi
|
||||
gi.require_version('Gtk', '3.0')
|
||||
|
||||
from gi.repository import Gtk
|
||||
from Mailnag.common.plugins import Plugin, HookTypes
|
||||
from Mailnag.common.i18n import _
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
# MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
import gi
|
||||
gi.require_version('Gtk', '3.0')
|
||||
|
||||
import os
|
||||
from gi.repository import Gtk
|
||||
from Mailnag.common.plugins import Plugin, HookTypes
|
||||
|
||||
3
mailnag
3
mailnag
@@ -23,6 +23,9 @@
|
||||
# MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
import gi
|
||||
gi.require_version('GLib', '2.0')
|
||||
|
||||
from gi.repository import GObject, GLib
|
||||
from dbus.mainloop.glib import DBusGMainLoop
|
||||
import threading
|
||||
|
||||
@@ -22,6 +22,9 @@
|
||||
# MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
import gi
|
||||
gi.require_version('Gtk', '3.0')
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
from gi.repository import Gtk
|
||||
|
||||
Reference in New Issue
Block a user