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
This commit is contained in:
parent
239b3e0623
commit
ef6405bfe7
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue