From 636e9e2ed38eecd1bc3fed21c5177c1f6e7e6029 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 23 Jun 2014 15:37:34 +0200 Subject: [PATCH] universal-access: Use new listbox helpers https://bugzilla.gnome.org/show_bug.cgi?id=732106 --- panels/universal-access/cc-ua-panel.c | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/panels/universal-access/cc-ua-panel.c b/panels/universal-access/cc-ua-panel.c index c7e393515..e1e5f3095 100644 --- a/panels/universal-access/cc-ua-panel.c +++ b/panels/universal-access/cc-ua-panel.c @@ -27,6 +27,7 @@ #include #include +#include "shell/list-box-helper.h" #include "cc-ua-panel.h" #include "cc-ua-resources.h" @@ -258,29 +259,10 @@ on_off_label_mapping_get (GValue *value, return TRUE; } -static void -update_separator_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 add_separators (GtkListBox *list) { - gtk_list_box_set_header_func (list, update_separator_func, NULL, NULL); + gtk_list_box_set_header_func (list, cc_list_box_update_header_func, NULL, NULL); } static gboolean