[gnome-control-center] common: Remove unused CcListBox and CcListBoxRow
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] common: Remove unused CcListBox and CcListBoxRow
- Date: Sun, 13 Dec 2020 22:49:51 +0000 (UTC)
commit f355234323d9b3ade9d97d94621f9e348083d906
Author: Robert Ancell <robert ancell canonical com>
Date: Mon Dec 14 11:36:45 2020 +1300
common: Remove unused CcListBox and CcListBoxRow
panels/common/list-box-helper.c | 43 -----------------------------------------
panels/common/list-box-helper.h | 6 ------
2 files changed, 49 deletions(-)
---
diff --git a/panels/common/list-box-helper.c b/panels/common/list-box-helper.c
index 77b1f6556..a90df5ca8 100644
--- a/panels/common/list-box-helper.c
+++ b/panels/common/list-box-helper.c
@@ -20,49 +20,6 @@
#define MAX_ROWS_VISIBLE 5
-struct _CcListBoxRow
-{
- GtkListBoxRow parent_instance;
-};
-G_DEFINE_TYPE (CcListBoxRow, cc_list_box_row, GTK_TYPE_LIST_BOX_ROW)
-enum
-{
- BOX_ROW_ACTIVATED,
- LAST_BOX_ROW_SIGNAL
-};
-static guint cc_list_box_row_signals[LAST_BOX_ROW_SIGNAL] = { 0 };
-static void
-cc_list_box_row_class_init (CcListBoxRowClass *klass)
-{
- cc_list_box_row_signals[BOX_ROW_ACTIVATED] =
- g_signal_new ("activated",
- CC_TYPE_LIST_BOX_ROW,
- G_SIGNAL_RUN_LAST,
- 0, NULL, NULL, NULL,
- G_TYPE_NONE, 0);
-}
-static void cc_list_box_row_init (CcListBoxRow *self) {}
-
-struct _CcListBox
-{
- GtkListBox parent_instance;
-};
-G_DEFINE_TYPE (CcListBox, cc_list_box, GTK_TYPE_LIST_BOX)
-static void
-cc_list_box_row_activated (GtkListBox *box, GtkListBoxRow *row)
-{
- if (CC_IS_LIST_BOX_ROW (row))
- g_signal_emit (row, cc_list_box_row_signals[BOX_ROW_ACTIVATED], 0);
-}
-static void
-cc_list_box_class_init (CcListBoxClass *klass)
-{
- GtkListBoxClass *parent_class = GTK_LIST_BOX_CLASS (klass);
- parent_class->row_activated = cc_list_box_row_activated;
-}
-static void cc_list_box_init (CcListBox *self) {}
-
-
void
cc_list_box_update_header_func (GtkListBoxRow *row,
GtkListBoxRow *before,
diff --git a/panels/common/list-box-helper.h b/panels/common/list-box-helper.h
index f3c2553c9..cb5f94df0 100644
--- a/panels/common/list-box-helper.h
+++ b/panels/common/list-box-helper.h
@@ -20,12 +20,6 @@
#include <gtk/gtk.h>
-#define CC_TYPE_LIST_BOX_ROW (cc_list_box_row_get_type ())
-G_DECLARE_FINAL_TYPE (CcListBoxRow, cc_list_box_row, CC, LIST_BOX_ROW, GtkListBoxRow)
-
-#define CC_TYPE_LIST_BOX (cc_list_box_get_type ())
-G_DECLARE_FINAL_TYPE (CcListBox, cc_list_box, CC, LIST_BOX, GtkListBox)
-
void
cc_list_box_update_header_func (GtkListBoxRow *row,
GtkListBoxRow *before,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]