gtk-demo: Use style classes in the settings demo

Use .navigation-sidebar on the left, and .data-table
on the right.
This commit is contained in:
Matthias Clasen 2020-08-09 08:28:29 -04:00
parent a9858c6662
commit d8753a9fa3
2 changed files with 10 additions and 0 deletions

View File

@ -5,6 +5,10 @@
* It demonstrates how to implement support for trees with GtkListView.
* It also shows how to set up sorting and filtering for columns in a
* GtkColumnView.
*
* It also demonstrates different styles of list. The tree on the left
* uses the ­.navigation-sidebar style class, the list on the right uses
* the ­.data-table style class.
*/
#include <gtk/gtk.h>

View File

@ -20,6 +20,9 @@
<object class="GtkScrolledWindow">
<child>
<object class="GtkListView" id="listview">
<style>
<class name="navigation-sidebar"/>
</style>
<property name="factory">
<object class="GtkBuilderListItemFactory">
<property name="bytes"><![CDATA[
@ -73,6 +76,9 @@
<property name="vexpand">1</property>
<child>
<object class="GtkColumnView" id="columnview">
<style>
<class name="data-table"/>
</style>
<child>
<object class="GtkColumnViewColumn" id="name_column">
<property name="title">Name</property>