Skip to contentSkip to conversation

gui: remove "new" button in Modules page

PATCH New Nicolas Iooss 1 participant 1 message Jan 25, 2018 1 message not in the archive SELinux security module

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 2/2 gui: remove "new" button in Modules page

This used to invoke polgengui, which has been removed.

---
 gui/modulesPage.py           |  8 --------
 gui/system-config-selinux.ui | 12 ------------
 2 files changed, 20 deletions(-)
gui/modulesPage.py +0 -8
index 34c5d9e3c488..8a325155451f 100644
@@ -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)
gui/system-config-selinux.ui +0 -12
index 7cc1cc532a1f..f5d0bb728eca 100644
@@ -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>
Signature · 1 line
2.16.0