[gnome-control-center] privacy: use a GtkFrame for the border and background of the list box
- From: Thomas Wood <thos src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] privacy: use a GtkFrame for the border and background of the list box
- Date: Wed, 16 Jan 2013 14:50:20 +0000 (UTC)
commit 8d338f66b3cf589871a920c5ab2f15653c289578
Author: Thomas Wood <thomas wood intel com>
Date: Wed Jan 16 14:48:10 2013 +0000
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.
panels/privacy/cc-privacy-panel.c | 6 +++---
panels/privacy/privacy.ui | 4 +---
2 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/panels/privacy/cc-privacy-panel.c b/panels/privacy/cc-privacy-panel.c
index 6af3dae..b8a4cff 100644
--- a/panels/privacy/cc-privacy-panel.c
+++ b/panels/privacy/cc-privacy-panel.c
@@ -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);
diff --git a/panels/privacy/privacy.ui b/panels/privacy/privacy.ui
index 555328a..53cdcf4 100644
--- a/panels/privacy/privacy.ui
+++ b/panels/privacy/privacy.ui
@@ -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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]