Blame SOURCES/firewalld-0.3.9-RHBZ#1068148_2afef77d.patch

36ae71
commit 2afef77d20f2df78aa8b527ef89a765eecf88074
36ae71
Author: Thomas Woerner <twoerner@redhat.com>
36ae71
Date:   Wed Feb 19 13:54:32 2014 +0100
36ae71
36ae71
    firewall-applet: ZoneConnectionEditor is missing the Default Zone entry
36ae71
36ae71
diff --git a/src/firewall-applet b/src/firewall-applet
36ae71
index fc0e479..d2e9444 100755
36ae71
--- a/src/firewall-applet
36ae71
+++ b/src/firewall-applet
36ae71
@@ -128,6 +128,7 @@ class ZoneConnectionEditor(Gtk.Dialog):
36ae71
 
36ae71
         self.combo = Gtk.ComboBoxText()
36ae71
         zones = self.fw.getZones()
36ae71
+        self.combo.append_text(_("Default Zone"))
36ae71
         for zone in zones:
36ae71
             self.combo.append_text(zone)
36ae71
         vbox.pack_start(self.combo, True, True, 0)
36ae71
@@ -152,7 +153,10 @@ class ZoneConnectionEditor(Gtk.Dialog):
36ae71
             self.combo_changed(None)
36ae71
 
36ae71
     def get_zone(self):
36ae71
-        return self.combo.get_active_text()
36ae71
+        text = self.combo.get_active_text()
36ae71
+        if text == _("Default Zone"):
36ae71
+            text = ""
36ae71
+        return text
36ae71
 
36ae71
     def run(self):
36ae71
         result = super(ZoneConnectionEditor, self).run()