1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-22 05:48:03 +01:00

experimental:

- Fix some syntax/import problems created during the merge
This commit is contained in:
imdano
2008-09-06 19:53:25 +00:00
parent 345b7ce0b9
commit 687d932065
4 changed files with 23 additions and 18 deletions

View File

@@ -38,8 +38,8 @@ from wicd import misc
from wicd import wpath
from wicd.misc import noneToString
from wicd.netentry import WiredNetworkEntry, WirelessNetworkEntry
from wicd.prefs import PreferencesDialog
from wicd.dbusmanager import DBusManager
from wicd.prefs import PreferencesDialog
if __name__ == '__main__':
wpath.chdir(__file__)
@@ -84,7 +84,6 @@ def setup_dbus(dbus_man=None):
wired = dbus_ifaces['wired']
return True
def error(parent, message):
""" Shows an error dialog """
dialog = gtk.MessageDialog(parent, gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR,
@@ -92,14 +91,6 @@ def error(parent, message):
dialog.set_markup(message)
dialog.run()
dialog.destroy()
def alert(parent, message):
""" Shows an error dialog """
dialog = gtk.MessageDialog(parent, gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING,
gtk.BUTTONS_OK)
dialog.set_markup(message)
dialog.run()
dialog.destroy()
########################################
##### GTK EXTENSION CLASSES