2019-10-15 13:39:59 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<interface>
|
|
|
|
<template class="GtkListItem">
|
listview: Add GtkListItem::focusable property
This makes the question if a listitem can be focused or not an explicit
decision by application developers.
Previously an item could be focused if it was selectable and no child or
grandchild was focusable - so if you put a label and icon into it, the
item was focusable, but if you put a GtkTreeExpander or a GtkButton into
it, the item wasn't. This needs to be decided explicitly now.
Technically this is an API break, because the previous behavior does not
exist anymore.
But I really don't want to make this a tristate (focusable, not
focusable, automatic), because then binding it to other things gets
hard, and because all the other focusable proeprties are booleans, too,
and working with them gets a lot harder.
Related: #3910
2023-03-25 23:50:45 +00:00
|
|
|
<property name="focusable">0</property>
|
2019-10-15 13:39:59 +00:00
|
|
|
<property name="child">
|
|
|
|
<object class="GtkTreeExpander" id="expander">
|
|
|
|
<binding name="list-row">
|
|
|
|
<lookup name="item">GtkListItem</lookup>
|
|
|
|
</binding>
|
|
|
|
<property name="child">
|
2022-05-19 04:45:05 +00:00
|
|
|
<object class="GtkInscription">
|
|
|
|
<property name="hexpand">1</property>
|
2023-06-07 13:55:59 +00:00
|
|
|
<property name="nat-chars">25</property>
|
|
|
|
<property name="text-overflow">ellipsize-end</property>
|
2022-05-19 04:45:05 +00:00
|
|
|
<binding name="text">
|
2019-10-15 13:39:59 +00:00
|
|
|
<lookup name="title" type="GtkDemo">
|
|
|
|
<lookup name="item">expander</lookup>
|
|
|
|
</lookup>
|
|
|
|
</binding>
|
|
|
|
</object>
|
|
|
|
</property>
|
|
|
|
</object>
|
|
|
|
</property>
|
|
|
|
</template>
|
|
|
|
</interface>
|