summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2020-12-14 11:36:45 +1300
committerRobert Ancell <robert.ancell@canonical.com>2020-12-14 11:36:45 +1300
commitf355234323d9b3ade9d97d94621f9e348083d906 (patch)
tree2bd5ccd692840eb5e362bfd55da530c241af220e
parented41626c677b7bf8f68b7210451c741112f0b0fb (diff)
downloadgnome-control-center-f355234323d9b3ade9d97d94621f9e348083d906.tar.gz
common: Remove unused CcListBox and CcListBoxRow
-rw-r--r--panels/common/list-box-helper.c43
-rw-r--r--panels/common/list-box-helper.h6
2 files changed, 0 insertions, 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,