mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-16 16:06:11 +00:00
history-box: Use content style for listbox
So as to match the design and less code to maintain
This commit is contained in:
parent
47a7d58074
commit
fe84a02af2
2 changed files with 1 additions and 25 deletions
|
@ -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
|
static void
|
||||||
delete_call_cb (CallsCallRecord *record,
|
delete_call_cb (CallsCallRecord *record,
|
||||||
CallsHistoryBox *self)
|
CallsHistoryBox *self)
|
||||||
|
@ -178,11 +159,6 @@ constructed (GObject *object)
|
||||||
(self->model, "items-changed", G_CALLBACK (update), self);
|
(self->model, "items-changed", G_CALLBACK (update), self);
|
||||||
g_assert (self->model_changed_handler_id != 0);
|
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,
|
gtk_list_box_bind_model (self->history,
|
||||||
self->model,
|
self->model,
|
||||||
(GtkListBoxCreateWidgetFunc)create_row_cb,
|
(GtkListBoxCreateWidgetFunc)create_row_cb,
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
<property name="margin">12</property>
|
<property name="margin">12</property>
|
||||||
<property name="valign">start</property>
|
<property name="valign">start</property>
|
||||||
<style>
|
<style>
|
||||||
<class name="frame"/>
|
<class name="content"/>
|
||||||
</style>
|
</style>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
|
Loading…
Reference in a new issue