universal-access: Use new listbox helpers
https://bugzilla.gnome.org/show_bug.cgi?id=732106
This commit is contained in:
parent
1f1bfa5459
commit
636e9e2ed3
1 changed files with 2 additions and 20 deletions
|
@ -27,6 +27,7 @@
|
|||
#include <glib/gi18n-lib.h>
|
||||
#include <gdesktop-enums.h>
|
||||
|
||||
#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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue