[PATCH 3/3] Modify the gtk_warning function in anaconda to use gtk3.
Chris Lumens
clumens at redhat.com
Wed Aug 21 17:34:14 UTC 2013
---
anaconda | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/anaconda b/anaconda
index ab2d03f..7b5aa43 100755
--- a/anaconda
+++ b/anaconda
@@ -351,9 +351,9 @@ def setupLoggingFromOpts(options):
anaconda_log.logger.updateRemote(options.syslog)
def gtk_warning(title, reason):
- import gtk
- dialog = gtk.MessageDialog(type = gtk.MESSAGE_ERROR,
- buttons = gtk.BUTTONS_CLOSE,
+ from gi.repository import Gtk
+ dialog = Gtk.MessageDialog(type = Gtk.MessageType.ERROR,
+ buttons = Gtk.ButtonsType.CLOSE,
message_format=reason)
dialog.set_title(title)
dialog.run()
--
1.8.1.2
More information about the anaconda-patches
mailing list