privacy: use a GtkFrame for the border and background of the list box

Now that GtkFrame paints a background, use it to provide the border and
background of the list box.
This commit is contained in:
Thomas Wood 2013-01-16 14:48:10 +00:00
parent b20bb8e31c
commit 8d338f66b3
2 changed files with 4 additions and 6 deletions

View file

@ -661,7 +661,7 @@ cc_privacy_panel_init (CcPrivacyPanel *self)
{
GError *error;
GtkWidget *widget;
GtkWidget *scrolled_window;
GtkWidget *frame;
guint res;
self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, CC_TYPE_PRIVACY_PANEL, CcPrivacyPanelPrivate);
@ -682,10 +682,10 @@ cc_privacy_panel_init (CcPrivacyPanel *self)
return;
}
scrolled_window = WID ("scrolled_window");
frame = WID ("frame");
widget = GTK_WIDGET (egg_list_box_new ());
egg_list_box_set_selection_mode (EGG_LIST_BOX (widget), GTK_SELECTION_NONE);
egg_list_box_add_to_scrolled (EGG_LIST_BOX (widget), GTK_SCROLLED_WINDOW (scrolled_window));
gtk_container_add (GTK_CONTAINER (frame), widget);
self->priv->list_box = widget;
gtk_widget_show (widget);

View file

@ -851,12 +851,10 @@
<property name="margin_bottom">22</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkScrolledWindow" id="scrolled_window">
<object class="GtkFrame" id="frame">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="shadow_type">in</property>
<property name="hscrollbar_policy">never</property>
<property name="vscrollbar_policy">never</property>
</object>
<packing>
<property name="expand">False</property>