mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +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>
|
</style>
|
||||||
<property name="model">
|
<property name="model">
|
||||||
<object class="GtkSingleSelection">
|
<object class="GtkSingleSelection">
|
||||||
|
<property name="model">
|
||||||
|
<object class="GtkFilterListModel">
|
||||||
<property name="model">
|
<property name="model">
|
||||||
<object class="GtkSortListModel">
|
<object class="GtkSortListModel">
|
||||||
<binding name="sorter">
|
<binding name="sorter">
|
||||||
@ -31,6 +33,19 @@
|
|||||||
</binding>
|
</binding>
|
||||||
</object>
|
</object>
|
||||||
</property>
|
</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>
|
</object>
|
||||||
</property>
|
</property>
|
||||||
<child>
|
<child>
|
||||||
@ -143,6 +158,20 @@
|
|||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</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>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user