pessulus r428 - in trunk: . Pessulus



Author: vuntz
Date: Tue Mar  3 18:12:17 2009
New Revision: 428
URL: http://svn.gnome.org/viewvc/pessulus?rev=428&view=rev

Log:
2009-03-03  Vincent Untz  <vuntz gnome org>

	* Pessulus/main.py: fix wrong usage of gtk.MessageDialog()


Modified:
   trunk/ChangeLog
   trunk/Pessulus/main.py

Modified: trunk/Pessulus/main.py
==============================================================================
--- trunk/Pessulus/main.py	(original)
+++ trunk/Pessulus/main.py	Tue Mar  3 18:12:17 2009
@@ -49,8 +49,11 @@
     applier = lockdownappliergconf.PessulusLockdownApplierGconf ()
 
     if not applier.supports_normal_settings () and not applier.supports_mandatory_settings ():
-        dialog = gtk.MessageDialog (flags = gtk.MESSAGE_ERROR, buttons = gtk.BUTTONS_CLOSE, message_format = _("Cannot contact the GConf server"))
+        dialog = gtk.MessageDialog (type = gtk.MESSAGE_ERROR,
+                                    buttons = gtk.BUTTONS_CLOSE,
+                                    message_format = _("Cannot contact the GConf server"))
         dialog.format_secondary_text (_("This usually happens when running this application with 'su' instead of 'su -'.\nIf this is not the case, you can look at the output of the application to get more details."))
+
         # this is a dialog with no parent
         dialog.set_skip_taskbar_hint (False)
         dialog.set_title (_("Lockdown Editor"))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]