main-window: Use CallsHistoryBox

This helps the window to be only a glue in between the actual UI
elements instead of handling a lot of the UI.
This commit is contained in:
Adrien Plazas
2018-08-01 10:21:53 +02:00
parent 70bafc2091
commit 0d98e17b05
4 changed files with 4 additions and 9 deletions

View File

@@ -6,7 +6,7 @@
<object class="GtkListStore" id="history_store"/>
<template class="CallsHistoryBox" parent="GtkTreeView">
<property name="can_focus">False</property>
<property name="model">history_store</property>
<property name="model">history_store</property>
<property name="visible">True</property>
<child internal-child="selection">
<object class="GtkTreeSelection"/>

View File

@@ -3,7 +3,6 @@
<interface>
<requires lib="gtk+" version="3.20"/>
<requires lib="libhandy" version="0.0"/>
<object class="GtkListStore" id="history_store"/>
<object class="GtkListStore" id="origin_store">
<columns>
<!-- column-name name -->
@@ -259,13 +258,9 @@
</packing>
</child>
<child>
<object class="GtkTreeView" id="history_view">
<object class="CallsHistoryBox" id="history_view">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="model">history_store</property>
<child internal-child="selection">
<object class="GtkTreeSelection"/>
</child>
</object>
<packing>
<property name="name">history</property>