forked from AuroraMiddleware/gtk
05e752e096
The code gets rid of the GtkTreeView and replaces it with a GtkListBox. Most of the logic is now done via GListModel subclasses. A big change is that this new list is now tracking updates itself and doesn't need to be manually updated. All code that used to cause rescans or add forgotten objects to the tree has been removed. If objects are missing from the object tree, the logic for tracking them needs to be added.
62 lines
2.2 KiB
XML
62 lines
2.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface domain="gtk40">
|
|
<template class="GtkInspectorObjectTree" parent="GtkBox">
|
|
<property name="visible">True</property>
|
|
<property name="orientation">vertical</property>
|
|
<signal name="hierarchy-changed" handler="on_hierarchy_changed"/>
|
|
<child>
|
|
<object class="GtkSearchBar" id="search_bar">
|
|
<property name="show-close-button">1</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<style>
|
|
<class name="linked"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkSearchEntry" id="search_entry">
|
|
<property name="max-width-chars">40</property>
|
|
<signal name="search-changed" handler="on_search_changed"/>
|
|
<signal name="next-match" handler="next_match"/>
|
|
<signal name="previous-match" handler="previous_match"/>
|
|
<signal name="stop-search" handler="stop_search"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton">
|
|
<property name="icon-name">go-down-symbolic</property>
|
|
<signal name="clicked" handler="next_match"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton">
|
|
<property name="icon-name">go-up-symbolic</property>
|
|
<signal name="clicked" handler="previous_match"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkScrolledWindow">
|
|
<property name="hscrollbar-policy">never</property>
|
|
<property name="expand">1</property>
|
|
<child>
|
|
<object class="GtkListBox" id="list">
|
|
<signal name="row-activated" handler="on_row_activated"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
<object class="GtkSizeGroup" id="type_size_group">
|
|
<property name="mode">both</property>
|
|
</object>
|
|
<object class="GtkSizeGroup" id="name_size_group">
|
|
<property name="mode">both</property>
|
|
</object>
|
|
<object class="GtkSizeGroup" id="label_size_group">
|
|
<property name="mode">both</property>
|
|
</object>
|
|
</interface>
|