mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 04:48:00 +01:00
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".
This commit is contained in:
@@ -46,7 +46,7 @@ import urwid
|
|||||||
# DBus communication stuff
|
# DBus communication stuff
|
||||||
from dbus import DBusException
|
from dbus import DBusException
|
||||||
# It took me a while to figure out that I have to use this.
|
# 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
|
# Other important wicd-related stuff
|
||||||
from wicd import wpath
|
from wicd import wpath
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ Module containing the code for the main wicd GUI.
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
from gi.repository import GObject as gobject
|
from gi.repository import GLib as gobject
|
||||||
import gtk
|
import gtk
|
||||||
from itertools import chain
|
from itertools import chain
|
||||||
from dbus import DBusException
|
from dbus import DBusException
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ class TrayIcon() -- Parent class of TrayIconGUI and IconConnectionInfo.
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
import gtk
|
import gtk
|
||||||
from gi.repository import GObject as gobject
|
from gi.repository import GLib as gobject
|
||||||
import getopt
|
import getopt
|
||||||
import os
|
import os
|
||||||
import pango
|
import pango
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import locale
|
|||||||
import sys
|
import sys
|
||||||
import re
|
import re
|
||||||
import string
|
import string
|
||||||
from gi.repository import GObject as gobject
|
from gi.repository import GLib as gobject
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
from subprocess import Popen, STDOUT, PIPE, call
|
from subprocess import Popen, STDOUT, PIPE, call
|
||||||
from subprocess import getoutput
|
from subprocess import getoutput
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ when appropriate.
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
from gi.repository import GObject as gobject
|
from gi.repository import GLib as gobject
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from dbus import DBusException
|
from dbus import DBusException
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ from subprocess import Popen
|
|||||||
from operator import itemgetter
|
from operator import itemgetter
|
||||||
|
|
||||||
# DBUS
|
# DBUS
|
||||||
from gi.repository import GObject as gobject
|
from gi.repository import GLib as gobject
|
||||||
import dbus
|
import dbus
|
||||||
import dbus.service
|
import dbus.service
|
||||||
if getattr(dbus, 'version', (0, 0, 0)) < (0, 80, 0):
|
if getattr(dbus, 'version', (0, 0, 0)) < (0, 80, 0):
|
||||||
|
|||||||
Reference in New Issue
Block a user