[gnome-control-center] datetime: Use new listbox helpers
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] datetime: Use new listbox helpers
- Date: Tue, 24 Jun 2014 09:44:26 +0000 (UTC)
commit 92134ee21b43753731570149917bf09a3848eb65
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jun 23 15:37:34 2014 +0200
datetime: Use new listbox helpers
https://bugzilla.gnome.org/show_bug.cgi?id=732106
panels/datetime/cc-datetime-panel.c | 22 ++--------------------
1 files changed, 2 insertions(+), 20 deletions(-)
---
diff --git a/panels/datetime/cc-datetime-panel.c b/panels/datetime/cc-datetime-panel.c
index 60c1abd..76ca842 100644
--- a/panels/datetime/cc-datetime-panel.c
+++ b/panels/datetime/cc-datetime-panel.c
@@ -25,6 +25,7 @@
#include <langinfo.h>
#include <sys/time.h>
+#include "shell/list-box-helper.h"
#include "cc-timezone-map.h"
#include "timedated.h"
#include "date-endian.h"
@@ -863,25 +864,6 @@ keynav_failed (GtkWidget *listbox,
}
static void
-update_header (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
run_dialog (CcDateTimePanel *self,
const gchar *dialog_name)
{
@@ -976,7 +958,7 @@ setup_listbox (CcDateTimePanel *self,
{
CcDateTimePanelPrivate *priv = self->priv;
- gtk_list_box_set_header_func (GTK_LIST_BOX (listbox), update_header, NULL, NULL);
+ gtk_list_box_set_header_func (GTK_LIST_BOX (listbox), cc_list_box_update_header_func, NULL, NULL);
g_signal_connect (listbox, "row-activated",
G_CALLBACK (list_box_row_activated), self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]