Commit f7f5914e authored by Bastien Nocera's avatar Bastien Nocera
Browse files

privacy: Use new listbox helpers

https://bugzilla.gnome.org/show_bug.cgi?id=732106
parent 33a12d96
......@@ -18,6 +18,7 @@
* Author: Matthias Clasen <mclasen@redhat.com>
*/
#include "shell/list-box-helper.h"
#include "cc-privacy-panel.h"
#include "cc-privacy-resources.h"
......@@ -606,25 +607,6 @@ cc_privacy_panel_get_help_uri (CcPanel *panel)
return "help:gnome-help/privacy";
}
static void
update_header_func (GtkListBoxRow *row,
GtkListBoxRow *before,
gpointer user_data)
{
GtkWidget *current;
if (before == NULL)
return;
current = gtk_list_box_row_get_header (row);
if (current == NULL)
{
current = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
gtk_widget_show (current);
gtk_list_box_row_set_header (row, current);
}
}
static void
activate_row (CcPrivacyPanel *self,
GtkListBoxRow *row)
......@@ -689,7 +671,7 @@ cc_privacy_panel_init (CcPrivacyPanel *self)
G_CALLBACK (activate_row), self);
gtk_list_box_set_header_func (GTK_LIST_BOX (widget),
update_header_func,
cc_list_box_update_header_func,
NULL, NULL);
self->priv->lockdown_settings = g_settings_new ("org.gnome.desktop.lockdown");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment