[gedit-plugins] plugins: quiet some PyGI warnings
- From: Sebastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] plugins: quiet some PyGI warnings
- Date: Tue, 30 Jun 2015 21:22:22 +0000 (UTC)
commit 5e44fea8d5b3db31e4c066056bc15da13bb536a8
Author: Sébastien Lafargue <slafargue gnome org>
Date: Tue Jun 30 23:21:35 2015 +0200
plugins: quiet some PyGI warnings
because of some warning about module's requirements, we need
to add some version information before loading modules.
( see https://bugzilla.gnome.org/show_bug.cgi?id=727379 )
plugins/charmap/charmap/__init__.py | 2 ++
plugins/codecomment/codecomment.py | 3 +++
plugins/colorpicker/colorpicker.py | 3 +++
plugins/colorschemer/schemer/__init__.py | 3 ++-
plugins/commander/commander/appactivatable.py | 2 ++
plugins/dashboard/dashboard/__init__.py | 2 ++
plugins/git/git/appactivatable.py | 2 ++
plugins/multiedit/multiedit/viewactivatable.py | 2 ++
8 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/plugins/charmap/charmap/__init__.py b/plugins/charmap/charmap/__init__.py
index 9da08c7..0af4257 100644
--- a/plugins/charmap/charmap/__init__.py
+++ b/plugins/charmap/charmap/__init__.py
@@ -17,6 +17,8 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+import gi
+gi.require_version('Gucharmap', '2.90')
from gi.repository import GObject, Gio, Pango, Gtk, Gedit, Gucharmap
from .panel import CharmapPanel
import sys
diff --git a/plugins/codecomment/codecomment.py b/plugins/codecomment/codecomment.py
index 3274eed..24a2cba 100644
--- a/plugins/codecomment/codecomment.py
+++ b/plugins/codecomment/codecomment.py
@@ -21,6 +21,9 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
+import gi
+gi.require_version('Gtk', '3.0')
+gi.require_version('GtkSource', '3.0')
from gi.repository import GObject, Gio, Gtk, GtkSource, Gedit
import gettext
from gpdefs import *
diff --git a/plugins/colorpicker/colorpicker.py b/plugins/colorpicker/colorpicker.py
index fa48ad2..aef6cbc 100644
--- a/plugins/colorpicker/colorpicker.py
+++ b/plugins/colorpicker/colorpicker.py
@@ -20,6 +20,9 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
+import gi
+gi.require_version('Gtk', '3.0')
+gi.require_version('Gedit', '3.0')
from gi.repository import GObject, Gio, Gtk, Gdk, Gedit
import re
import gettext
diff --git a/plugins/colorschemer/schemer/__init__.py b/plugins/colorschemer/schemer/__init__.py
index 706ebd2..9a56914 100644
--- a/plugins/colorschemer/schemer/__init__.py
+++ b/plugins/colorschemer/schemer/__init__.py
@@ -18,7 +18,8 @@
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
-
+import gi
+gi.require_version('Gedit', '3.0')
from gi.repository import GObject, Gio, Gedit, Gtk
import os
from .schemer import GUI
diff --git a/plugins/commander/commander/appactivatable.py b/plugins/commander/commander/appactivatable.py
index b66cad1..a4edd6d 100644
--- a/plugins/commander/commander/appactivatable.py
+++ b/plugins/commander/commander/appactivatable.py
@@ -19,6 +19,8 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
+import gi
+gi.require_version('Gedit', '3.0')
from gi.repository import GLib, GObject, Gio, Gedit
import sys, os
import commander.commands as commands
diff --git a/plugins/dashboard/dashboard/__init__.py b/plugins/dashboard/dashboard/__init__.py
index a9d02a0..0ed501c 100644
--- a/plugins/dashboard/dashboard/__init__.py
+++ b/plugins/dashboard/dashboard/__init__.py
@@ -19,6 +19,8 @@
#
#
+import gi
+gi.require_version('Zeitgeist', '2.0')
from gi.repository import GObject, Gedit
from .dashboard import Dashboard
diff --git a/plugins/git/git/appactivatable.py b/plugins/git/git/appactivatable.py
index 17926f7..3c58aff 100644
--- a/plugins/git/git/appactivatable.py
+++ b/plugins/git/git/appactivatable.py
@@ -17,6 +17,8 @@
# Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307, USA.
+import gi
+gi.require_version('Ggit', '1.0')
from gi.repository import GLib, GObject, Gio, Gedit, Ggit
diff --git a/plugins/multiedit/multiedit/viewactivatable.py b/plugins/multiedit/multiedit/viewactivatable.py
index beff205..f26c20f 100644
--- a/plugins/multiedit/multiedit/viewactivatable.py
+++ b/plugins/multiedit/multiedit/viewactivatable.py
@@ -22,6 +22,8 @@
import re, time, gettext
import xml.sax.saxutils
+import gi
+gi.require_version('PangoCairo', '1.0')
from gi.repository import GLib, GObject, Pango, PangoCairo, Gdk, Gtk, Gedit
from .signals import Signals
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]