diff mbox

[2/2] gui: remove "new" button in Modules page

Message ID 20180125205113.18453-2-nicolas.iooss@m4x.org (mailing list archive)
State Not Applicable
Headers show

Commit Message

Nicolas Iooss Jan. 25, 2018, 8:51 p.m. UTC
This used to invoke polgengui, which has been removed.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
---
 gui/modulesPage.py           |  8 --------
 gui/system-config-selinux.ui | 12 ------------
 2 files changed, 20 deletions(-)
diff mbox

Patch

diff --git a/gui/modulesPage.py b/gui/modulesPage.py
index 34c5d9e3c488..8a325155451f 100644
--- a/gui/modulesPage.py
+++ b/gui/modulesPage.py
@@ -70,8 +70,6 @@  class modulesPage(semanagePage):
         col = Gtk.TreeViewColumn(_("Priority"), Gtk.CellRendererText(), text=1)
         self.enable_audit_button = xml.get_object("enableAuditButton")
         self.enable_audit_button.connect("clicked", self.enable_audit)
-        self.new_button = xml.get_object("newModuleButton")
-        self.new_button.connect("clicked", self.new_module)
         col.set_sort_column_id(1)
         col.set_resizable(True)
         self.view.append_column(col)
@@ -116,12 +114,6 @@  class modulesPage(semanagePage):
             pass
         self.view.get_selection().select_path((0,))
 
-    def new_module(self, args):
-        try:
-            Popen(["/usr/share/system-config-selinux/polgengui.py"])
-        except ValueError as e:
-            self.error(e.args[0])
-
     def delete(self):
         store, iter = self.view.get_selection().get_selected()
         module = store.get_value(iter, 0)
diff --git a/gui/system-config-selinux.ui b/gui/system-config-selinux.ui
index 7cc1cc532a1f..f5d0bb728eca 100644
--- a/gui/system-config-selinux.ui
+++ b/gui/system-config-selinux.ui
@@ -1595,18 +1595,6 @@  Level</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="toolbar_style">both</property>
-                        <child>
-                          <object class="GtkToolButton" id="newModuleButton">
-                            <property name="visible">True</property>
-                            <property name="can_focus">False</property>
-                            <property name="tooltip_text" translatable="yes">Generate new policy module</property>
-                            <property name="stock_id">gtk-new</property>
-                          </object>
-                          <packing>
-                            <property name="expand">False</property>
-                            <property name="homogeneous">True</property>
-                          </packing>
-                        </child>
                         <child>
                           <object class="GtkToolButton" id="toolbutton23">
                             <property name="visible">True</property>