[nanny: 1/2] Replaced the "add new blacklist" gtk.Entry widget with a gtk.ComboBoxEntry
- From: Roberto Majadas <telemaco src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nanny: 1/2] Replaced the "add new blacklist" gtk.Entry widget with a gtk.ComboBoxEntry
- Date: Mon, 6 Jun 2011 11:02:03 +0000 (UTC)
commit 2813b32d925f4cb501f7da4a0714905ba90f7b9b
Author: Cesar Garcia Tapia <cesar garcia tapia openshine com>
Date: Mon Jun 6 12:50:15 2011 +0200
Replaced the "add new blacklist" gtk.Entry widget with a gtk.ComboBoxEntry
client/gnome/admin/src/ConfigureProxyDialog.py | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/client/gnome/admin/src/ConfigureProxyDialog.py b/client/gnome/admin/src/ConfigureProxyDialog.py
index 2aaabb8..8665482 100644
--- a/client/gnome/admin/src/ConfigureProxyDialog.py
+++ b/client/gnome/admin/src/ConfigureProxyDialog.py
@@ -583,8 +583,10 @@ class ConfigureProxyDialog (gtk.Dialog):
dialog.response(response)
dialog.set_markup(_('Introduce the nannycentral repository url'))
- entry = gtk.Entry()
- entry.connect("activate", responseToDialog, dialog, gtk.RESPONSE_OK)
+ options = gtk.ListStore (str)
+ options.append (['URL_DE_LA_LISTA'])
+ entry = gtk.ComboBoxEntry(options, column=0)
+ entry.child.connect("activate", responseToDialog, dialog, gtk.RESPONSE_OK)
hbox = gtk.HBox()
hbox.pack_start(gtk.Label("Url:"), False, 5, 5)
hbox.pack_end(entry)
@@ -592,7 +594,7 @@ class ConfigureProxyDialog (gtk.Dialog):
dialog.vbox.pack_end(hbox, True, True, 0)
dialog.show_all()
dialog.run()
- text = entry.get_text()
+ text = entry.child.get_text()
dialog.destroy()
if not text.startswith("http:/") :
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]