[nanny] Add some nanny icons to msg dialogs



commit b9b70ee798c590185b6f76f975cb8d368dfcb622
Author: Roberto Majadas <roberto majadas openshine com>
Date:   Wed Dec 23 00:43:07 2009 +0100

    Add some nanny icons to msg dialogs

 client/gnome/admin/src/AdminConsole.py         |    3 +++
 client/gnome/admin/src/ConfigureProxyDialog.py |    6 ++++++
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/client/gnome/admin/src/AdminConsole.py b/client/gnome/admin/src/AdminConsole.py
index 966d24e..8e8a502 100644
--- a/client/gnome/admin/src/AdminConsole.py
+++ b/client/gnome/admin/src/AdminConsole.py
@@ -41,6 +41,7 @@ class AdminConsole:
             self.dbus_client = nanny.client.common.DBusClient ()
         except:
             d = gtk.MessageDialog(None, gtk.DIALOG_MODAL, type=gtk.MESSAGE_WARNING, buttons=gtk.BUTTONS_OK)
+            d.set_property("icon-name", "nanny")
             d.set_markup(_("<b>Nanny daemon is not started</b>"))
             d.format_secondary_markup(_("To use the parental control, please start up the daemon."))
             d.run()
@@ -264,6 +265,7 @@ class AdminConsole:
 
         dialog = gtk.MessageDialog(None, 0, gtk.MESSAGE_INFO, gtk.BUTTONS_CLOSE,
                                    _("Your configuration has been saved") )
+        dialog.set_property("icon-name", "nanny")
         dialog.set_default_response(gtk.RESPONSE_CLOSE)
         dialog.run()
         dialog.destroy()
@@ -273,6 +275,7 @@ class AdminConsole:
         if self.__selected_user_id is not None:
             if self.__config_changed:
                 dialog = gtk.MessageDialog(None, 0, gtk.MESSAGE_INFO, gtk.BUTTONS_YES_NO)
+                dialog.set_property("icon-name", "nanny")
                 dialog.set_markup (_('<b>User change</b>'))
                 dialog.format_secondary_markup (_("If you don't press the 'Apply' button, your changes will be lost.\nAre you sure?") )
                 dialog.set_default_response(gtk.RESPONSE_YES)
diff --git a/client/gnome/admin/src/ConfigureProxyDialog.py b/client/gnome/admin/src/ConfigureProxyDialog.py
index 767bc67..e514cdd 100644
--- a/client/gnome/admin/src/ConfigureProxyDialog.py
+++ b/client/gnome/admin/src/ConfigureProxyDialog.py
@@ -180,6 +180,7 @@ class ConfigureProxyDialog (gtk.Dialog):
                 self.proxy_rule_dialog = None
         else:
             dlg = gtk.MessageDialog(type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_OK)
+            dlg.set_property("icon-name", "nanny")
             dlg.set_markup(_("<b>Error while importing list from the Internet</b>"))
             dlg.format_secondary_markup(_("Some error has occured while downloading the list.\nPlease verify the URL and try again."))
             dlg.run()
@@ -190,6 +191,7 @@ class ConfigureProxyDialog (gtk.Dialog):
         self.progress_dialog = None
 
         dlg = gtk.MessageDialog(type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_OK)
+        dlg.set_property("icon-name", "nanny")
         dlg.set_markup(_("<b>Error while importing list from the Internet</b>"))
         dlg.format_secondary_markup(_("Some error has occured while downloading the list.\nPlease verify the URL and try again."))
         dlg.run()
@@ -203,6 +205,7 @@ class ConfigureProxyDialog (gtk.Dialog):
 
     def __on_blacklist_remove_button_clicked (self, widget, data=None):
         dlg = gtk.MessageDialog(type=gtk.MESSAGE_WARNING, buttons=gtk.BUTTONS_OK_CANCEL)
+        dlg.set_property("icon-name", "nanny")
         dlg.set_markup(_("<b>Are you sure you want to delete this filter?</b>"))
         dlg.format_secondary_markup(_("You will not be able to undo this action."))
         ret = dlg.run()
@@ -225,6 +228,7 @@ class ConfigureProxyDialog (gtk.Dialog):
 
     def __on_whitelist_remove_button_clicked (self, widget, data=None):
         dlg = gtk.MessageDialog(type=gtk.MESSAGE_WARNING, buttons=gtk.BUTTONS_OK_CANCEL)
+        dlg.set_property("icon-name", "nanny")
         dlg.set_markup(_("<b>Are you sure you want to delete this filter?</b>"))
         dlg.format_secondary_markup(_("You will not be able to undo this action."))
         ret = dlg.run()
@@ -252,6 +256,7 @@ class ConfigureProxyDialog (gtk.Dialog):
             self.__fill_treeviews ()
         else:
             dlg = gtk.MessageDialog(type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_OK)
+            dlg.set_property("icon-name", "nanny")
             dlg.set_markup(_("<b>Error while deleting filters</b>"))
             dlg.format_secondary_markup(_("Some error has occured while deleting filters.\nPlease try again."))
             dlg.run()
@@ -262,6 +267,7 @@ class ConfigureProxyDialog (gtk.Dialog):
         self.progress_dialog = None
 
         dlg = gtk.MessageDialog(type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_OK)
+        dlg.set_property("icon-name", "nanny")
         dlg.set_markup(_("<b>Error while deleting filters</b>"))
         dlg.format_secondary_markup(_("Some error has occured while deleting filters.\nPlease try again."))
         dlg.run()



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