Blob Blame History Raw
From 4a06d7d4d8c480b0dd54c1e6be661851ffe9228e Mon Sep 17 00:00:00 2001
From: Vratislav Podzimek <vpodzime@redhat.com>
Date: Tue, 4 Aug 2015 10:58:06 +0200
Subject: [PATCH 6/7] Make sure the DS and XCCDF ID combo boxes are visible for
 DS content (#1249951)

Otherwise there's no way to change/select DS and XCCDF IDs. Also make sure they
are hidden when they are not supposed to be visible.

Signed-off-by: Vratislav Podzimek <vpodzime@redhat.com>
---
 org_fedora_oscap/gui/spokes/oscap.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/org_fedora_oscap/gui/spokes/oscap.py b/org_fedora_oscap/gui/spokes/oscap.py
index 33b97c0..ae92ce9 100644
--- a/org_fedora_oscap/gui/spokes/oscap.py
+++ b/org_fedora_oscap/gui/spokes/oscap.py
@@ -411,6 +411,7 @@ class OSCAPSpoke(NormalSpoke):
             for dstream in self._ds_checklists.iterkeys():
                 add_ds_ids.add_action(self._add_ds_id, dstream)
             add_ds_ids.fire()
+            fire_gtk_action(really_show, self._ids_box)
         else:
             # hide the labels and comboboxes for datastream-id and xccdf-id
             # selection
@@ -514,7 +515,7 @@ class OSCAPSpoke(NormalSpoke):
 
         if self._using_ds:
             profiles = self._content_handler.get_profiles(self._current_ds_id,
-                                                     self._current_xccdf_id)
+                                                          self._current_xccdf_id)
         else:
             # pylint: disable-msg=E1103
             profiles = self._content_handler.profiles
@@ -811,6 +812,7 @@ class OSCAPSpoke(NormalSpoke):
         self._active_profile = self._addon_data.profile_id
 
         if self._using_ds:
+            fire_gtk_action(really_show, self._ids_box)
             if self._addon_data.datastream_id:
                 set_combo_selection(self._ds_combo,
                                     self._addon_data.datastream_id)
@@ -826,6 +828,7 @@ class OSCAPSpoke(NormalSpoke):
                     set_combo_selection(self._xccdf_combo,
                                         self._addon_data.xccdf_id)
         else:
+            fire_gtk_action(really_hide, self._ids_box)
             # no combobox changes --> need to update profiles store manually
             self._update_profiles_store()
 
-- 
2.1.0