[calls] history-box: Use content style for listbox
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] history-box: Use content style for listbox
- Date: Wed, 4 Aug 2021 02:35:57 +0000 (UTC)
commit fe84a02af27b9b1c824cc26c248689094dc29dd6
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Sun Jul 25 21:26:06 2021 +0530
history-box: Use content style for listbox
So as to match the design and less code to maintain
src/calls-history-box.c | 24 ------------------------
src/ui/history-box.ui | 2 +-
2 files changed, 1 insertion(+), 25 deletions(-)
---
diff --git a/src/calls-history-box.c b/src/calls-history-box.c
index 48602a61..962e311e 100644
--- a/src/calls-history-box.c
+++ b/src/calls-history-box.c
@@ -78,25 +78,6 @@ update (CallsHistoryBox *self)
}
-static void
-header_cb (GtkListBoxRow *row,
- GtkListBoxRow *before,
- CallsHistoryBox *self)
-{
- if (!before)
- {
- return;
- }
-
- if (!gtk_list_box_row_get_header (row))
- {
- GtkWidget *header =
- gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
-
- gtk_list_box_row_set_header (row, header);
- }
-}
-
static void
delete_call_cb (CallsCallRecord *record,
CallsHistoryBox *self)
@@ -178,11 +159,6 @@ constructed (GObject *object)
(self->model, "items-changed", G_CALLBACK (update), self);
g_assert (self->model_changed_handler_id != 0);
- gtk_list_box_set_header_func (self->history,
- (GtkListBoxUpdateHeaderFunc)header_cb,
- self,
- NULL);
-
gtk_list_box_bind_model (self->history,
self->model,
(GtkListBoxCreateWidgetFunc)create_row_cb,
diff --git a/src/ui/history-box.ui b/src/ui/history-box.ui
index fa48c37a..8e6b4ced 100644
--- a/src/ui/history-box.ui
+++ b/src/ui/history-box.ui
@@ -53,7 +53,7 @@
<property name="margin">12</property>
<property name="valign">start</property>
<style>
- <class name="frame"/>
+ <class name="content"/>
</style>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]