[nanny/win32: 59/75] Set transient some dialogs
- From: Roberto Majadas <telemaco src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nanny/win32: 59/75] Set transient some dialogs
- Date: Tue, 2 Nov 2010 18:55:54 +0000 (UTC)
commit 2941d075d7fbebc52692411eba37056c4a7e8424
Author: Roberto Majadas <roberto majadas openshine com>
Date: Sun Oct 24 16:58:15 2010 +0200
Set transient some dialogs
client/gnome/admin/src/AdminConsole.py | 1 +
client/gnome/admin/src/ConfigureProxyDialog.py | 6 ++++++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/client/gnome/admin/src/AdminConsole.py b/client/gnome/admin/src/AdminConsole.py
index e920e62..ded9d1b 100644
--- a/client/gnome/admin/src/AdminConsole.py
+++ b/client/gnome/admin/src/AdminConsole.py
@@ -335,6 +335,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_transient_for(self.window)
dialog.set_default_response(gtk.RESPONSE_CLOSE)
dialog.run()
dialog.destroy()
diff --git a/client/gnome/admin/src/ConfigureProxyDialog.py b/client/gnome/admin/src/ConfigureProxyDialog.py
index 272c80e..0a7f124 100644
--- a/client/gnome/admin/src/ConfigureProxyDialog.py
+++ b/client/gnome/admin/src/ConfigureProxyDialog.py
@@ -173,6 +173,7 @@ class ConfigureProxyDialog (gtk.Dialog):
def __on_custom_blacklist_add_button_clicked (self, widget, data=None):
xml = self.__load_dialog ()
self.proxy_rule_dialog = xml.get_object ('wcfed_dialog')
+ self.proxy_rule_dialog.set_transient_for(self)
warning_label = xml.get_object ("wcfed_warning_label")
warning_label.hide ()
while True:
@@ -201,6 +202,7 @@ class ConfigureProxyDialog (gtk.Dialog):
def __on_custom_whitelist_add_button_clicked (self, widget, data=None):
xml = self.__load_dialog ()
dialog = xml.get_object ('wcfed_dialog')
+ dialog.set_transient_for(self)
warning_label = xml.get_object ("wcfed_warning_label")
warning_label.hide ()
@@ -258,6 +260,7 @@ class ConfigureProxyDialog (gtk.Dialog):
def __on_custom_blacklist_edit_button_clicked (self, widget, data=None):
xml = self.__load_dialog ()
self.proxy_rule_dialog = xml.get_object ('wcfed_dialog')
+ self.proxy_rule_dialog.set_transient_for(self)
warning_label = xml.get_object ("wcfed_warning_label")
warning_label.hide ()
@@ -300,6 +303,7 @@ class ConfigureProxyDialog (gtk.Dialog):
def __on_custom_whitelist_edit_button_clicked (self, widget, data=None):
xml = self.__load_dialog ()
self.proxy_rule_dialog = xml.get_object ('wcfed_dialog')
+ self.proxy_rule_dialog.set_transient_for(self)
warning_label = xml.get_object ("wcfed_warning_label")
warning_label.hide ()
@@ -341,6 +345,7 @@ class ConfigureProxyDialog (gtk.Dialog):
def __on_custom_blacklist_remove_button_clicked (self, widget, data=None):
dlg = gtk.MessageDialog(type=gtk.MESSAGE_WARNING, buttons=gtk.BUTTONS_OK_CANCEL)
+ dlg.set_transient_for(self)
dlg.set_property("icon-name", "nanny")
dlg.set_markup("<b>%s</b>" % _("Are you sure you want to delete this filter?"))
dlg.format_secondary_markup(_("You will not be able to undo this action."))
@@ -362,6 +367,7 @@ class ConfigureProxyDialog (gtk.Dialog):
def __on_custom_whitelist_remove_button_clicked (self, widget, data=None):
dlg = gtk.MessageDialog(type=gtk.MESSAGE_WARNING, buttons=gtk.BUTTONS_OK_CANCEL)
+ dlg.set_transient_for(self)
dlg.set_property("icon-name", "nanny")
dlg.set_markup("<b>%s</b>" % _("Are you sure you want to delete this filter?"))
dlg.format_secondary_markup(_("You will not be able to undo this action."))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]