gnome-control-center/gnome-control-center-hide-firewall-zone-entry.patch

84 lines
3.6 KiB
Diff

From 889ce41e87872377b6f728fadd0e0ffaa927406a Mon Sep 17 00:00:00 2001
From: Felix Zhang <fezhang@suse.com>
Date: Thu, 11 Sep 2014 16:07:43 +0800
Subject: [PATCH] bnc894394 hide firewall zone entry
The Firewall Zone entry is only activated if firewalld package is installed.
As openSUSE doesn't have this package, the entry never works. So removing the
entry to avoid confusions.
---
panels/network/connection-editor/ethernet-page.ui | 4 ++--
panels/network/connection-editor/vpn-page.ui | 4 ++--
panels/network/connection-editor/wifi-page.ui | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/panels/network/connection-editor/ethernet-page.ui b/panels/network/connection-editor/ethernet-page.ui
index 59d1a35..f6f604e 100644
--- a/panels/network/connection-editor/ethernet-page.ui
+++ b/panels/network/connection-editor/ethernet-page.ui
@@ -264,7 +264,7 @@
</child>
<child>
<object class="GtkLabel" id="heading_zone">
- <property name="visible">True</property>
+ <property name="visible">False</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">Firewall _Zone</property>
@@ -280,7 +280,7 @@
</child>
<child>
<object class="GtkComboBoxText" id="combo_zone">
- <property name="visible">True</property>
+ <property name="visible">False</property>
<property name="can_focus">False</property>
<property name="entry_text_column">0</property>
<property name="id_column">1</property>
diff --git a/panels/network/connection-editor/vpn-page.ui b/panels/network/connection-editor/vpn-page.ui
index dea9a4a..c0f5e92 100644
--- a/panels/network/connection-editor/vpn-page.ui
+++ b/panels/network/connection-editor/vpn-page.ui
@@ -57,7 +57,7 @@
<property name="spacing">6</property>
<child>
<object class="GtkLabel" id="heading_zone">
- <property name="visible">True</property>
+ <property name="visible">False</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Firewall _Zone</property>
<property name="use_underline">True</property>
@@ -71,7 +71,7 @@
</child>
<child>
<object class="GtkComboBoxText" id="combo_zone">
- <property name="visible">True</property>
+ <property name="visible">False</property>
<property name="can_focus">False</property>
<property name="entry_text_column">0</property>
<property name="id_column">1</property>
diff --git a/panels/network/connection-editor/wifi-page.ui b/panels/network/connection-editor/wifi-page.ui
index 3986015..bb154da 100644
--- a/panels/network/connection-editor/wifi-page.ui
+++ b/panels/network/connection-editor/wifi-page.ui
@@ -174,7 +174,7 @@
</child>
<child>
<object class="GtkLabel" id="heading_zone">
- <property name="visible">True</property>
+ <property name="visible">False</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">Firewall _Zone</property>
@@ -190,7 +190,7 @@
</child>
<child>
<object class="GtkComboBoxText" id="combo_zone">
- <property name="visible">True</property>
+ <property name="visible">False</property>
<property name="can_focus">False</property>
<property name="entry_text_column">0</property>
<property name="id_column">1</property>
--
1.7.12.4