From f090e292dc71e421dc4b5e346e2952c9f3736ca0 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Thu, 12 Sep 2019 00:59:05 +0200 Subject: [PATCH] Fix wicd-curses warnings in status bar and similar cases Replace all occurrences of "from gi.repository import GObject as gobject" with "from gi.repository import GLib as gobject". --- curses/wicd-curses.py | 2 +- gtk/gui.py | 2 +- gtk/wicd-client.py | 2 +- wicd/misc.py | 2 +- wicd/monitor.py | 2 +- wicd/wicd-daemon.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/curses/wicd-curses.py b/curses/wicd-curses.py index 38d4e60..fd09524 100755 --- a/curses/wicd-curses.py +++ b/curses/wicd-curses.py @@ -46,7 +46,7 @@ # DBus communication stuff from dbus import DBusException # It took me a while to figure out that I have to use this. -from gi.repository import GObject as gobject +from gi.repository import GLib as gobject # Other important wicd-related stuff from wicd import wpath diff --git a/gtk/gui.py b/gtk/gui.py index 7442ec3..8f40622 100644 --- a/gtk/gui.py +++ b/gtk/gui.py @@ -26,7 +26,7 @@ import os import sys import time -from gi.repository import GObject as gobject +from gi.repository import GLib as gobject import gtk from itertools import chain from dbus import DBusException diff --git a/gtk/wicd-client.py b/gtk/wicd-client.py index c20cb50..fdd6186 100644 --- a/gtk/wicd-client.py +++ b/gtk/wicd-client.py @@ -39,7 +39,7 @@ def main() -- Runs the wicd frontend main loop. import sys import gtk -from gi.repository import GObject as gobject +from gi.repository import GLib as gobject import getopt import os import pango diff --git a/wicd/misc.py b/wicd/misc.py index 421178b..cd72a2b 100644 --- a/wicd/misc.py +++ b/wicd/misc.py @@ -27,7 +27,7 @@ import sys import re import string -from gi.repository import GObject as gobject +from gi.repository import GLib as gobject from threading import Thread from subprocess import Popen, STDOUT, PIPE, call from subprocess import getoutput diff --git a/wicd/monitor.py b/wicd/monitor.py index 5f95046..4fed8fa 100755 --- a/wicd/monitor.py +++ b/wicd/monitor.py @@ -24,7 +24,7 @@ # along with this program. If not, see . # -from gi.repository import GObject as gobject +from gi.repository import GLib as gobject import time from dbus import DBusException diff --git a/wicd/wicd-daemon.py b/wicd/wicd-daemon.py index ed81729..3667d76 100644 --- a/wicd/wicd-daemon.py +++ b/wicd/wicd-daemon.py @@ -44,7 +44,7 @@ class WirelessDaemon() -- DBus interface to managed the wireless network. from operator import itemgetter # DBUS -from gi.repository import GObject as gobject +from gi.repository import GLib as gobject import dbus import dbus.service if getattr(dbus, 'version', (0, 0, 0)) < (0, 80, 0):