mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 23:20:54 +00:00
sysprof: sort before filter and make incremental
Doing this in reverse *and* making it incremental seems to work better than just making them incremental. So do that so the UI stays responsive even if it flickers to an empty set momentarily.
This commit is contained in:
@ -76,12 +76,14 @@
|
|||||||
<property name="model">
|
<property name="model">
|
||||||
<object class="GtkSingleSelection" id="selection">
|
<object class="GtkSingleSelection" id="selection">
|
||||||
<property name="model">
|
<property name="model">
|
||||||
<object class="GtkSortListModel">
|
<object class="GtkFilterListModel">
|
||||||
<binding name="sorter">
|
<property name="incremental">true</property>
|
||||||
<lookup name="sorter">column_view</lookup>
|
|
||||||
</binding>
|
|
||||||
<property name="model">
|
<property name="model">
|
||||||
<object class="GtkFilterListModel">
|
<object class="GtkSortListModel">
|
||||||
|
<property name="incremental">true</property>
|
||||||
|
<binding name="sorter">
|
||||||
|
<lookup name="sorter">column_view</lookup>
|
||||||
|
</binding>
|
||||||
<property name="model">
|
<property name="model">
|
||||||
<object class="SysprofTimeFilterModel">
|
<object class="SysprofTimeFilterModel">
|
||||||
<binding name="time-span">
|
<binding name="time-span">
|
||||||
@ -98,66 +100,66 @@
|
|||||||
</binding>
|
</binding>
|
||||||
</object>
|
</object>
|
||||||
</property>
|
</property>
|
||||||
<property name="filter">
|
</object>
|
||||||
<object class="GtkAnyFilter">
|
</property>
|
||||||
<!-- support searching in all fields -->
|
<property name="filter">
|
||||||
<child>
|
<object class="GtkAnyFilter">
|
||||||
<object class="GtkStringFilter">
|
<!-- support searching in all fields -->
|
||||||
<property name="match-mode">substring</property>
|
<child>
|
||||||
<property name="expression">
|
<object class="GtkStringFilter">
|
||||||
<lookup name="sender" type="SysprofDocumentDBusMessage" />
|
<property name="match-mode">substring</property>
|
||||||
</property>
|
<property name="expression">
|
||||||
<binding name="search">
|
<lookup name="sender" type="SysprofDocumentDBusMessage" />
|
||||||
<lookup name="text">filter_search_entry</lookup>
|
</property>
|
||||||
</binding>
|
<binding name="search">
|
||||||
</object>
|
<lookup name="text">filter_search_entry</lookup>
|
||||||
</child>
|
</binding>
|
||||||
<child>
|
|
||||||
<object class="GtkStringFilter">
|
|
||||||
<property name="match-mode">substring</property>
|
|
||||||
<property name="expression">
|
|
||||||
<lookup name="destination" type="SysprofDocumentDBusMessage" />
|
|
||||||
</property>
|
|
||||||
<binding name="search">
|
|
||||||
<lookup name="text">filter_search_entry</lookup>
|
|
||||||
</binding>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkStringFilter">
|
|
||||||
<property name="match-mode">substring</property>
|
|
||||||
<property name="expression">
|
|
||||||
<lookup name="path" type="SysprofDocumentDBusMessage" />
|
|
||||||
</property>
|
|
||||||
<binding name="search">
|
|
||||||
<lookup name="text">filter_search_entry</lookup>
|
|
||||||
</binding>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkStringFilter">
|
|
||||||
<property name="match-mode">substring</property>
|
|
||||||
<property name="expression">
|
|
||||||
<lookup name="interface" type="SysprofDocumentDBusMessage" />
|
|
||||||
</property>
|
|
||||||
<binding name="search">
|
|
||||||
<lookup name="text">filter_search_entry</lookup>
|
|
||||||
</binding>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkStringFilter">
|
|
||||||
<property name="match-mode">substring</property>
|
|
||||||
<property name="expression">
|
|
||||||
<lookup name="member" type="SysprofDocumentDBusMessage" />
|
|
||||||
</property>
|
|
||||||
<binding name="search">
|
|
||||||
<lookup name="text">filter_search_entry</lookup>
|
|
||||||
</binding>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
</object>
|
||||||
</property>
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkStringFilter">
|
||||||
|
<property name="match-mode">substring</property>
|
||||||
|
<property name="expression">
|
||||||
|
<lookup name="destination" type="SysprofDocumentDBusMessage" />
|
||||||
|
</property>
|
||||||
|
<binding name="search">
|
||||||
|
<lookup name="text">filter_search_entry</lookup>
|
||||||
|
</binding>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkStringFilter">
|
||||||
|
<property name="match-mode">substring</property>
|
||||||
|
<property name="expression">
|
||||||
|
<lookup name="path" type="SysprofDocumentDBusMessage" />
|
||||||
|
</property>
|
||||||
|
<binding name="search">
|
||||||
|
<lookup name="text">filter_search_entry</lookup>
|
||||||
|
</binding>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkStringFilter">
|
||||||
|
<property name="match-mode">substring</property>
|
||||||
|
<property name="expression">
|
||||||
|
<lookup name="interface" type="SysprofDocumentDBusMessage" />
|
||||||
|
</property>
|
||||||
|
<binding name="search">
|
||||||
|
<lookup name="text">filter_search_entry</lookup>
|
||||||
|
</binding>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkStringFilter">
|
||||||
|
<property name="match-mode">substring</property>
|
||||||
|
<property name="expression">
|
||||||
|
<lookup name="member" type="SysprofDocumentDBusMessage" />
|
||||||
|
</property>
|
||||||
|
<binding name="search">
|
||||||
|
<lookup name="text">filter_search_entry</lookup>
|
||||||
|
</binding>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</property>
|
</property>
|
||||||
</object>
|
</object>
|
||||||
|
|||||||
Reference in New Issue
Block a user