mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-03-23 13:41:27 +00:00
sysprof: add filter for files
Just like was done for D-Bus messages.
This commit is contained in:
@ -17,6 +17,8 @@
|
||||
</style>
|
||||
<property name="model">
|
||||
<object class="GtkSingleSelection">
|
||||
<property name="model">
|
||||
<object class="GtkFilterListModel">
|
||||
<property name="model">
|
||||
<object class="GtkSortListModel">
|
||||
<binding name="sorter">
|
||||
@ -31,6 +33,19 @@
|
||||
</binding>
|
||||
</object>
|
||||
</property>
|
||||
<property name="filter">
|
||||
<object class="GtkStringFilter">
|
||||
<property name="match-mode">substring</property>
|
||||
<property name="expression">
|
||||
<lookup name="path" type="SysprofDocumentFile"/>
|
||||
</property>
|
||||
<binding name="search">
|
||||
<lookup name="text">filter_search_entry</lookup>
|
||||
</binding>
|
||||
</object>
|
||||
</property>
|
||||
</object>
|
||||
</property>
|
||||
</object>
|
||||
</property>
|
||||
<child>
|
||||
@ -143,6 +158,20 @@
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<child>
|
||||
<object class="GtkSearchEntry" id="filter_search_entry">
|
||||
<property name="placeholder-text" translatable="yes">Filter Files</property>
|
||||
<property name="margin-top">3</property>
|
||||
<property name="margin-bottom">3</property>
|
||||
<property name="margin-start">3</property>
|
||||
<property name="margin-end">3</property>
|
||||
<property name="hexpand">true</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user