summaryrefslogtreecommitdiff
path: root/src/tree.c
diff options
context:
space:
mode:
authorJeremy Bícha <jeremy.bicha@canonical.com>2023-08-10 14:14:35 -0400
committerJeremy Bícha <jeremy.bicha@canonical.com>2023-08-10 14:14:35 -0400
commitf8597587629cea96a21fcd058323799f44f3b3e5 (patch)
treef4d7cf09db438c8296b846e62c2cb623ddbf098d /src/tree.c
parentRelease to unstable (diff)
parentNew upstream version 3.44.2 (diff)
downloadzenity-f8597587629cea96a21fcd058323799f44f3b3e5.tar.gz
zenity-f8597587629cea96a21fcd058323799f44f3b3e5.tar.bz2
zenity-f8597587629cea96a21fcd058323799f44f3b3e5.zip
Update upstream source from tag 'upstream/3.44.2'
Update to upstream version '3.44.2' with Debian dir 441cbc815fbb0ab86203cb218004e9d8ba6708f5
Diffstat (limited to 'src/tree.c')
-rw-r--r--src/tree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tree.c b/src/tree.c
index 7d98ad2d..d3efe573 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -642,10 +642,10 @@ zenity_tree (ZenityData *data, ZenityTreeData *tree_data) {
tree_data->editable);
}
- /* GTK will automatically pick the image column as the search column
- * despite it not containing any user readable text.
- * Set it to second column instead if it exists. */
- if (tree_data->imagebox && n_columns > 1) {
+ /* GTK will automatically pick the image/checkbox/radiobox column as the
+ * search column despite it not containing any user readable text.
+ * Set it to second column instead if any of the above exists. */
+ if ((tree_data->imagebox || tree_data->radiobox || tree_data->checkbox) && n_columns > 1) {
gtk_tree_view_set_search_column (GTK_TREE_VIEW (tree_view),
1);
}
bgstack15