mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 07:04:29 +00:00
ce531ce280
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
24 lines
722 B
XML
24 lines
722 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="GtkListItem">
|
|
<property name="focusable">0</property>
|
|
<property name="child">
|
|
<object class="GtkTreeExpander" id="expander">
|
|
<binding name="list-row">
|
|
<lookup name="item">GtkListItem</lookup>
|
|
</binding>
|
|
<property name="child">
|
|
<object class="GtkInscription">
|
|
<property name="hexpand">1</property>
|
|
<binding name="text">
|
|
<lookup name="title" type="GtkDemo">
|
|
<lookup name="item">expander</lookup>
|
|
</lookup>
|
|
</binding>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</property>
|
|
</template>
|
|
</interface>
|