[gnome-notes] list-view: Remove unused code
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-notes] list-view: Remove unused code
- Date: Tue, 15 Jun 2021 03:17:17 +0000 (UTC)
commit 25231215b3a5e67a1adf1fc96e770f7be2d6c5e6
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Sat Jun 5 13:31:17 2021 +0530
list-view: Remove unused code
src/bjb-list-view.c | 24 ------------------------
src/bjb-list-view.h | 3 ---
2 files changed, 27 deletions(-)
---
diff --git a/src/bjb-list-view.c b/src/bjb-list-view.c
index a522b8ad..d6c11367 100644
--- a/src/bjb-list-view.c
+++ b/src/bjb-list-view.c
@@ -63,16 +63,6 @@ bjb_list_view_create_row_cb (GtkTreeModel *model,
return FALSE;
}
-static void
-bjb_list_view_show_select_button_cb (GtkWidget *widget,
- gpointer data)
-{
- BjbListViewRow *row = BJB_LIST_VIEW_ROW (widget);
- gboolean mode = GPOINTER_TO_INT (data);
-
- bjb_list_view_row_show_select_button (row, mode);
-}
-
static void
bjb_list_view_on_display_items_changed (BjbController *controller,
gboolean items_to_show,
@@ -164,17 +154,3 @@ bjb_list_view_new (void)
{
return g_object_new (BJB_TYPE_LIST_VIEW, NULL);
}
-
-void
-bjb_list_view_set_selection_mode (BjbListView *self,
- gboolean mode)
-{
- gtk_container_foreach (GTK_CONTAINER (self->list_box),
- bjb_list_view_show_select_button_cb,
- GINT_TO_POINTER (mode));
-
- g_signal_emit_by_name (GTK_WIDGET (self->list_box),
- "selected-rows-changed",
- 0);
-
-}
diff --git a/src/bjb-list-view.h b/src/bjb-list-view.h
index b32309d4..27301357 100644
--- a/src/bjb-list-view.h
+++ b/src/bjb-list-view.h
@@ -40,8 +40,5 @@ GtkListBox *bjb_list_view_get_list_box (BjbListView *self);
BjbController *bjb_list_view_get_controller (BjbListView *self);
-void bjb_list_view_set_selection_mode (BjbListView *self,
- gboolean mode);
-
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]