From 5dffcee4a1f87e809f91c8570760b74ece3e64e6 Mon Sep 17 00:00:00 2001 From: neox Date: Mon, 12 Feb 2024 12:52:38 +0100 Subject: [PATCH] Indentation ok! --- gtk_treeview_example | Bin 27816 -> 28072 bytes main.c | 19 +++++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/gtk_treeview_example b/gtk_treeview_example index 4f010f515db0e5c8f2dab755b3492f33b3f147aa..b156cd39edcbcc0c729484db45088c76d1835a1f 100755 GIT binary patch delta 8911 zcmZ{K2RzjO|M=aRcL-%1*|H+D>^S?VNcQYxZy80UBdfE*J1bcYS!Je@84>yPDN>Y* zGEOLDX8m68L*MVW|KtC9JYLV|>$#t=b)NS+#e>M=kH{44-WDMo0&d$7fhcxKJ$Mhz zPT?VN?5Q85F-e$hDhUJaMM|UFskX^>$Pg)m#!+umC!t8>GAluDnbk2gm~y_!SmG1iSOGGDW5gWIhx+lw!d~8S7ET%oObvsESSo83gm8 z*VQ0^Qds z(B0GTbWpHUU@(+{?uO1^my86}FVKR}>PeXPZ7uSGbkD6JAJ=D+!^C3u_ zWe;?ig+l>}pxRkGB-qX~;B>&74Y%6V3|a(``t0yRxIMvwqY&qzFcwMV!J4})*QgA^ zZvAO^QygVX2OxYxcH7DS;{W#vu>LQ;WQ`WvOH8#u3hL07NVPNq;Q^nC$%u`utu2vK zn1&-w22ki*FbzkTBtS_*+;lf3aEL8-PUwMY4e7I@Ma`2vXFLGul=5k5#L z+1%Q~lb+!d^j7escX(1KIdgq$tE&xG#79lD;7Q>t?$ zNgd7fvN!}~=H$J*P7-kRcoK*d6~2N9KGqD|k)OjtlHM#NAi~DYwXF$qp}0`^|Ag%mQ3PoOCRmz5G_C+$g~2pj0{1cDtjDFM$gGZipnT0)qB zo!^e#lr=>|eMiH8TZ0v7Adf@eMYtIaw>j*9BMPyIN;37XQqlsu(MgVg@S^-ew13vr z0$$hQoqekKy|vXG3LKMiiU*=gL2I(2;b?Yz+2?G)(rR^{cz%^`7 z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bzMp%{epQbs@6;T}}ry!4UaLYL?* zgWkO_#Y6Sp%IMu&VH*f}S`%F4;sD+YT|BLc#u{(020<;SmC=1x+nh6m_EAP-ZMHdf z$N+FQpzMX)VTkCXf^>pj`)JTc;kIRU)DZ0%C0Ztext); child = parent->child; + + if (child) { + list = gtk_string_list_new(NULL); + } while(child) { gtk_string_list_append(list, child->text); printf("%s ", child->text); @@ -133,8 +137,18 @@ void bind_factory (GtkListItemFactory *factory, GtkListItem *list_item, gpointer text = gtk_string_object_get_string(GTK_STRING_OBJECT(gtk_tree_list_row_get_item(row))); GtkWidget *expander = gtk_list_item_get_child(list_item); gtk_expander_set_label(GTK_EXPANDER(expander), text); - printf("[bind_factory] here is %s content\n", text); + + gtk_tree_list_row_set_expanded(row, !is_expanded); + + if (gtk_tree_list_row_get_children(row)) { + printf("[bind_factory] here is %s content (childs)\n", text); + } else { + printf("[bind_factory] here is %s content (no childs)\n", text); + } + + gtk_widget_set_margin_start(expander, gtk_tree_list_row_get_depth(row)*20); + //g_object_unref(row); // Decrease the reference count when done } else { printf("[bind_factory] here is NON %s content\n", text); @@ -182,6 +196,7 @@ int main (int argc, char **argv) root = create_tree_node("Root"); add_child_node(root, create_tree_node("Child 1")); add_child_node(root, create_tree_node("Child 2")); + GtkApplication *app = gtk_application_new("org.gtk.example", G_APPLICATION_FLAGS_NONE); g_signal_connect(app, "activate", G_CALLBACK(app_activate), NULL); int status = g_application_run(G_APPLICATION(app), argc, argv);