[gnome-control-center] universal-access: Use new listbox helpers
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] universal-access: Use new listbox helpers
- Date: Tue, 24 Jun 2014 09:45:11 +0000 (UTC)
commit 636e9e2ed38eecd1bc3fed21c5177c1f6e7e6029
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jun 23 15:37:34 2014 +0200
universal-access: Use new listbox helpers
https://bugzilla.gnome.org/show_bug.cgi?id=732106
panels/universal-access/cc-ua-panel.c | 22 ++--------------------
1 files changed, 2 insertions(+), 20 deletions(-)
---
diff --git a/panels/universal-access/cc-ua-panel.c b/panels/universal-access/cc-ua-panel.c
index c7e3935..e1e5f30 100644
--- a/panels/universal-access/cc-ua-panel.c
+++ b/panels/universal-access/cc-ua-panel.c
@@ -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"
@@ -259,28 +260,9 @@ on_off_label_mapping_get (GValue *value,
}
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]