From 582a39f0bd5bab5be2f72a8b6178b4bc1dacecd3 Mon Sep 17 00:00:00 2001
From: Vratislav Podzimek <vpodzime@redhat.com>
Date: Wed, 25 May 2016 19:16:19 +0200
Subject: [PATCH 10/13] Make the list of profiles scrollable
This prevents really weird things from happening in case there are many profiles
or even just a few with long descriptions.
Resolves: rhbz#1263582
---
org_fedora_oscap/gui/spokes/oscap.glade | 69 ++++++++++++++++++---------------
1 file changed, 38 insertions(+), 31 deletions(-)
diff --git a/org_fedora_oscap/gui/spokes/oscap.glade b/org_fedora_oscap/gui/spokes/oscap.glade
index 49c7dae..3737eba 100644
--- a/org_fedora_oscap/gui/spokes/oscap.glade
+++ b/org_fedora_oscap/gui/spokes/oscap.glade
@@ -264,44 +264,51 @@
</packing>
</child>
<child>
- <object class="GtkTreeView" id="profilesView">
+ <object class="GtkScrolledWindow" id="profilesWindow">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="events">GDK_BUTTON_PRESS_MASK | GDK_STRUCTURE_MASK</property>
- <property name="hexpand">True</property>
- <property name="vexpand">True</property>
- <property name="model">profilesStore</property>
- <property name="headers_visible">False</property>
- <property name="headers_clickable">False</property>
- <property name="search_column">0</property>
- <signal name="button-press-event" handler="on_profile_clicked" swapped="no"/>
- <child internal-child="selection">
- <object class="GtkTreeSelection" id="profilesSelection">
- <signal name="changed" handler="on_profiles_selection_changed" swapped="no"/>
- </object>
- </child>
+ <property name="shadow_type">in</property>
<child>
- <object class="GtkTreeViewColumn" id="profileColumn">
- <property name="title" translatable="yes">Profile</property>
- <property name="expand">True</property>
+ <object class="GtkTreeView" id="profilesView">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="events">GDK_BUTTON_PRESS_MASK | GDK_STRUCTURE_MASK</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ <property name="model">profilesStore</property>
+ <property name="headers_visible">False</property>
+ <property name="headers_clickable">False</property>
+ <property name="search_column">0</property>
+ <signal name="button-press-event" handler="on_profile_clicked" swapped="no"/>
+ <child internal-child="selection">
+ <object class="GtkTreeSelection" id="profilesSelection">
+ <signal name="changed" handler="on_profiles_selection_changed" swapped="no"/>
+ </object>
+ </child>
<child>
- <object class="GtkCellRendererText" id="cellrenderertext1">
- <property name="width_chars">110</property>
- <property name="wrap_mode">word</property>
- <property name="wrap_width">110</property>
- <property name="max_width_chars">110</property>
+ <object class="GtkTreeViewColumn" id="profileColumn">
+ <property name="title" translatable="yes">Profile</property>
+ <property name="expand">True</property>
+ <child>
+ <object class="GtkCellRendererText" id="cellrenderertext1">
+ <property name="width_chars">110</property>
+ <property name="wrap_mode">word</property>
+ <property name="wrap_width">110</property>
+ <property name="max_width_chars">110</property>
+ </object>
+ <attributes>
+ <attribute name="markup">1</attribute>
+ </attributes>
+ </child>
</object>
- <attributes>
- <attribute name="markup">1</attribute>
- </attributes>
</child>
- </object>
- </child>
- <child>
- <object class="GtkTreeViewColumn" id="selectedColumn">
- <property name="title" translatable="yes">Selected</property>
<child>
- <object class="GtkCellRendererPixbuf" id="selectedRenderer"/>
+ <object class="GtkTreeViewColumn" id="selectedColumn">
+ <property name="title" translatable="yes">Selected</property>
+ <child>
+ <object class="GtkCellRendererPixbuf" id="selectedRenderer"/>
+ </child>
+ </object>
</child>
</object>
</child>
--
2.5.5