[gnome-control-center] privacy: Don't put an extra separator before the first row
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] privacy: Don't put an extra separator before the first row
- Date: Thu, 6 Dec 2012 04:18:45 +0000 (UTC)
commit ef6405bfe7f8b6360743c89186ebe57d7a928aec
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Dec 5 18:30:03 2012 -0500
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 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/privacy/cc-privacy-panel.c b/panels/privacy/cc-privacy-panel.c
index 8b092c7..73bb8d3 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]