From ef6405bfe7f8b6360743c89186ebe57d7a928aec Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 5 Dec 2012 18:30:03 -0500 Subject: [PATCH] privacy: Don't put an extra separator before the first row The separator function is called for each row, to allow creating the separator that goes before that row. We don't want a separator before the first row, so we return NULL if before == NULL. https://bugzilla.gnome.org/show_bug.cgi?id=689746 --- panels/privacy/cc-privacy-panel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panels/privacy/cc-privacy-panel.c b/panels/privacy/cc-privacy-panel.c index 8b092c785..73bb8d377 100644 --- a/panels/privacy/cc-privacy-panel.c +++ b/panels/privacy/cc-privacy-panel.c @@ -616,6 +616,9 @@ update_separator_func (GtkWidget **separator, GtkWidget *before, gpointer user_data) { + if (before == NULL) + return; + if (*separator == NULL) { *separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);